読者です 読者をやめる 読者になる 読者になる

Data Services Stress Testing Framework

LCDS2.6対応のストレステストフレームワークがAdobeLobsで公開されたようです。
http://labs.adobe.com/wiki/index.php/Data_Services_Stress_Testing_Framework


Data
Services
Stress
Testing
Framework


BlazeDS対応されたら弄ろう。

ブラウザ指定 browserServer.propeties file.

ie="C:\\Program Files\\Internet Explorer\\iexplore.exe"
firefox="C:\\Program Files\\Mozilla Firefox\\firefox.exe"
default=ie
serverPort=7777

テスト

import adobe.dsstress.client.LoadTestResult;
import adobe.dsstress.client.LCDSTestManager;
import adobe.dsstress.client.ITestManager;
import flash.utils.Timer;
import flash.events.TimerEvent;

private var requestTimer:Timer;
//counter to capture number of messages received
private var messageCount:int = 0;
//every stress test will need to create a TestManager
private var testManager:ITestManager;

public function run():void {	       
    requestTimer = new Timer(1000, 0);
    requestTimer.addEventListener("timer", requestHandler);
    //the framework passes in the unique id of the TestManager at runtime 
    var id:String = Application.application.parameters.id;
    //create a TestManager instance passing in the unique id.
    testManager = new LCDSTestManager(id);
    //setup event listeners for starting and stopping the test
    testManager.addEventListener("startTest",startTest);
    testManager.addEventListener("stopTest", stopTest); 
}

//this is called by the test framework to start the test                 
private function startTest(e:Event):void {            
    requestTimer.start();
}

//this is called by the test framework to stop the test
private function stopTest(e:Event):void {            
    requestTimer.stop();
    //Create a new LoadTestResult object for the test results
    var results:LoadTestResult = new LoadTestResult();             
    
    //set the messageCount to the number of messages received
    results.messageCount = messageCount; 
    
    //call addResults on the TestManager to send the results to the server
    testManager.addResults(results);              
}
private function requestHandler(event:TimerEvent):void {
    //when the timer gets invoked increment the counter. if this test were using messaging would 
    //increment the counter when the message handler got invoked 
    messageCount++;             
}    

Adobeやりますな。

via : http://weblogs.macromedia.com/akamijo/archives/2008/04/lcds_26.html