Home
Getting started with http://clif.objectweb.org/
Contents
1. CLIF user manual and programmer s guide And finally we want to decrease the number of simultaneous Time scenarii from 100 to O during 60 240 seconds Enter 60 in the Time text field Population Enter 60 in the Population text field Ramp style e OF o Choose the ramp style To save these settings click on the Add point button gt Load profile Add points for this profile Heavy load Population Ramp style 240 n e on O L Force stop Points Time Population Ramp style 60 60 pH 150 id Modify point 40 F Remove 26 October 10th 2007 Click on the Finish button P Load profiles 2 3 mL Time 0 Value 0 100 Profiles Hea load au 40 You can see the load profile form watching the Load profiles view Don t forget to save your work or Ctrl s 3 5 Launch load test 3 5 1 Start the Registry Click on the start registry button in the task button bar Then you can set the e the host name which identify the server where the registry will be launch e the code server port e and the classpath which is the path to access to the ctp xis csv etc files 27 CLIF user manual and programmer s guide CLIF Console configuration Please confiqure the Clif console This wizard creates the cliF props File Hostname Code server port 10 194 3 95 Broadcom MetXtreme 57xx Gigabit Controller Deterministic Network Enhancer Minip
2. 21 CLIF user manual and programmer s guide Add a new action for behavior ConstantTimer 0 4p Httpinjector_ 1 0 0 D if Httpinjector_1 0 head 69 while Httpinjector_1 0 post s nchoice Httpinjector_1 0 delete t preemptive Httplnjector 1 0 multipartpost Once you added this method you have to set the GET method properties Behavior Page Edition page for behavior description Properties Manage plug ins properties Behavior id sample Httpinjector_1 0 get New Duplicate Load profile id Httplnjector 1 0 0 Behavior tree Configure the Sample URI required http localhost 1235 Set automatic redirection optional O enabled G Httpinjector_1 0_0 get Set specific headers header value Enter Parameters scheme name value optional The response body may be stored in a variable optional variable name HttpResponse impor Behavior In our case we will only set e the URI Configure the Sample URI required http filocalhost 1235 e the Response Body The response body may be stored in a variable optional variable name HttpResponse 22 October 10th 2007 And finally we add the period end method of the ConstantTimer plug in Add a new action for behavior ConstantTimer O ConstantTimer reset Httpinjector 1 0 0 ConstantTimer set if i amp 9 while 0 ConstantTimer period begin sii nchoice 0 ConstantTi
3. with arg javal Fractal seed MyPirstClifServer is ready Now you have to modify your test plan to change the default server name local host by your server name give by the line java Fractal seed MyFirstClifServer is ready Go back to the CLIF console For on each probe or injector that you created you have to modify the default Server value Select the name that you gave to your server when you launch your clif server rai 52 Test Plan Editor Injectors and probes All injectors and probes in the test plan memory cpu injector Id er ver 2 local host Remove Remove All Edit Test 45 HellowworldWebServerTest_scenar E Properties Manage injector and probe properties Id 2 Server local host v re Ralg Class memory Arguments 1000 600 Comment Memory probe 31 CLIF user manual and programmer s guide 3 5 3 Launch load test e x e Test Plan Editor Injectors and probes Al injectors and probes in the test plan memory cpu injector Server When you launched your registry cf chapter 3 5 1 local host a new Test tabulation appeared at the bottom of the Test Plan Editor view Click on this new tabulation The Test Commands view appears gb HelloWorldWwebServer_testplan ctp 2 3 mom mL Test Commands undeployed Injectors and probes All injectors and probes in the test plan memory c
4. 5 Appendix B Install mandatory requirements 5 1 Download requirements 5 1 1 Sun J2SDK 1 5 1 5 version or greater is mandatory Click on the following link http java sun com javase downloads intcmp 1281 Click on the download button of the current version of the JDK JDK 6 Update 3 The Java SE Development Kit JDK includes the Java Runtime Environment IRE and command line development tools that are useful far developing applets and applications Download JD Accept the licence agreement Required ou must acceptthe license agreementto download the product pe License Agreement Review License Agreement ecline License Agreement Select the platform where CLIF will be used Windows Platform Java TM SE Development Hit 6 Update 3 c Download the full version as a single file l Bo be n Windows RU Installation Multi language jdk Bus windaows iIab p exe bos 373 39 Windows Online Installation Multi language jdk Bus windows iS8b p iftw exe y Or Linux Platform Java TM SE Development Kit 6 Update 3 61 64 Linux RPM in seltextracting file jdk bu3 linux ISab rpm hbin 4 65 40 Linux self extracting file jdk Eu3 linux i585 hbin and save the downloading file on your computer Once the download done you can launch the installation on the environment you want to install it 38 October 10th 2007 5 1 2 Apache ant utility version 1 5 4 or greater Click on the
5. Load injectors e send requests wait for replies measure response times e according to a given scenario e for example emulating the load of a number of real users Execution control and monitoring of load injectors Analysis tools for these measurements will be provided as soon as possible For the time being all measurements are available as CSV comma separated values formated text files Thanks to its component based framework approach CLIF is easily customizable and extensible to particular needs for example in terms of specific injectors and probes definition of load generation scenarios storage of measurements user tester skills integration to a test management platform etc For instance user interfaces are available as command line tools Java Swing based GUI and Eclipse based GUI 1 2 Technical requirements The CLIF framework and provided load injectors are 100 Java CLIF requires a Java runtime environment JRE or development kit JDK and the Java based ant utility from Apache org The Current CLIF version is known to be working with CLIF user manual and programmer s guide e Sun JDK 5 0 also known as J2SDKTM 1 5 Download from http java sun com javase downloads index jdk5 jsp Apache ant utility version 1 5 4 or greater download from http ant apache org bindownload cgi Make sure ant is using the right JDK e Linux 2 4 and 2 6 kernels e Mac OS X tiger e Microsoft
6. System out println A client is connecting to the server web Hello Wor Ike te toClient prime Mete Eos esllo one Lo Cring Sjeecieour crie mnt Voto a S pan enclin depuisClient readLine Pp Gatch 1lOException 2 4 try clicnt ce lose MCAaLCh TITOR prion ee alse Si domes ero ee oem ae a a i e c sun new Thread this start public void run e SEOL public void stop 1 Ery client clos P eatch MOErCepE 1omMe IN System Oue prinulm Exceptiom when try to close socket Tre Now you have to compile this Java file In the directory where you create this file enter the following command line javac WebServer java This will create to class files Connection class and WebServer class Now to run the Hello World web Server you just have to enter this command line 36 October 10th 2007 java WebServer The following line appears Web Server running To check if your Hello Web server is running correctly you can open your internet browser and tape into the address bar the following url http localhost 1235 You will see the next page Mozilla Afetox File Edit View History Bookmarks Tools Help e gt e Jbuntu Pad fb Getting Started ElLatest BBC Headlines Hello World Done And the console where you launch your Web server will display this Web Server launched A client is connecting to the server web Hello World 37 CLIF user manual and programmer s guide
7. and Reporting Tools E E CLIF E gt Connection Profiles H E ISAC a Java H E Flug in Development H E XML Examoles Choose General repertory and Project Click on the next button Now set your project name and the location of your project if you don t want to use the default one a Mew Project Project Create a new project resource Project name Hello world webServerTest Use default location Location Travailfclif 1 3 0 console workspace HelloWorldWebserver Test Browse 10 October 10th 2007 Then click on the finish button Now you can see your project in the CLIF console i ClifConsole File Edit CLIF Search Run Window Help Qi ir eis t Mavigator Z3 Em dm HelloworldWebServerTest x project 3 2 Test plan To create your test plan you have to do a right click on your project name Then choose New gt CLIF Test Plan ClifConsole File Edit CLIF Search Run Window Help Q i iG ci TS Navigator 23 p amp HelloWorldWebServerTest IX project Mew k 7 Project i30 Into Open in Mew Window amp amp CLIF Test Plan k if CLIF Report Copy if CLIF Report Template 2 Mew sac scenario mie L ISAC Plug in Project Move Rename t Example px Import F Other py Export Now you have to choose the project container let the default one and your test plan name 11 CLIF user manual and programmer s guide amp New C
8. on an Hello world web server you will have to create a simple web server See the Appendix Hello world web server to create your web server 2 2 Define your load test plan To be able to test the web server we need a cpu probe which gets cpu usage of the web server a memory probe which gets memory usage of the web server a CLIF injector which injects requests on the web server In this tutorial the web server the load injector and the probes will be on your local host But it is possible to deploy load injectors and probes on remote host and to monitor them with your local host using the CLIF console Here you can see the schema of our CLIF user manual and programmer s guide In this load test we want to determine the maximum of user that can be connected to the web server at the same time o0 to do it we will define a scenario that all virtual users will follow It is a simple scenario a virtual user will connect to the web server and then disconnect from it A scenario will take 1 second To rise the requests load we will define a load profile which will create virtual users which will execute the scenario Simultaneously o0 if we have 50 virtual users at the time we can say that the web server treat 50 request by seconds Scenario Chrono Start Http Request i Chrono Stop October 10th 2007 3 Define your test plan scenario and load profile 3 1 C
9. the console archive file depending of your OS http forge objectweb org project showfiles php group id 57 console Linux 1 2 2 2007 08 09 clif console 1 2 2 Linuxi386 z 60 043 98 i386 zip console MacOSX 2007 08 09 59 712 7 PPC zip 2007 06 09 60 300 3 i386 Zip Once downloaded you may unzip the archive file wherever you like Avoid installing a distribution in a directory containing a whitespace character in its path set up problems have been reported in some conditions To make CLIF work you have to install apache JDK 5 0 and define path for ANT HOME and JAVA_HOME refer to Appendix A to do it Once you did you are able to launch your CLIF console Go to the directory where you unzip your archive file and launch the CLIF console On windows double click on the clif console exe file On Linux and Mac OS X go to the directory where you unzip the archive file and enter the command line clif console myLinux user cd clif 1 3 8 console mylinuxguser 7 Cclif 1 3 0 console clif console f You will see the next screenshot CLIF user manual and programmer s guide TERR Y TE n Low mW Ex n COP 5 amp ClifTreeview 22 October 10th 2007 2 Define your System under Test SUT Now the next step is to define what is the system that we want to test what kind of measure we need to validate the load behavior 2 1 Hello world web server To be able to inject http request
10. Gonsole Plug in 3 5 2 Run CLIF server To be able to run CLIF server you have to get the clif server lt clifversion gt zip archive and unzip it on your computer lt will create a repertory name clif lt clifversion gt Go into it using a command window and tape ant config it will ask you to enter your host name or ip address and the port number that you setted in the code server port field when you launched the registry GY C WINDOWS system3 cmd exe M m X C Travail clif 1 3 iant config Buildfile build xml m ask console config Linput please enter the host where the console will be run localhost ask codeserver conf ig Linput please enter the port number for the console embedded code server 135 config copy Copying 1 file to G Travailsclif 1 3 etc Lecho C TrauailNclif 1 3 8 etc clif props has been generated BUILD SUCCESSFUL Total time Y seconds FER ETE M CC M IE dn E Now if your registry is running you can launch your Clif server otherwise you have to launch your registry refer to chapter 3 5 1 To launch your CLIF server use this command line ant server Or 30 October 10th 2007 ant Dserver name MyFirstClifServer server if you to identify your server Ge C WINDOWS system32 cmd exe ant Dserver name MyFirstClifServer server lof x C Travail clif 1 3 ant Dserver name MyFirstClifSeruver server E Buildfile build xml checkOsfamily Server
11. Indeed the constant timer will add a sleep time period after sending the request This sleep time will be variable it will depend on the duration of the request action but the total duration of the scenario will be 1000 ms Properties Manage plug ins properties use Constant Timer ConsEanETimer id ConstantTimer _0 duration ms 1000 From now all the needed plug ins are imported Plug ins List of plug ins used in this scenario lt Httplnjector 1 0 0 Httpinjector 1 0 ConstantTimer OQ ConstantTimer Now we have to define the behavior of our scenario So click on the Behavior tabulation Pests Source Import s Ce We arrive then on the Behavior page 20 October 10th 2007 Hello world webServer_testplan ctp ic HelloworldwebServerTest scenario xis 5 mL Behavior Page H E Edition page for behavior description Behavior id k Lnad profile Behavior tree Design Source Import Behavior By the same way we will import plug ins methods to define our scenario Click on the add button At the beginning of our scenario we initialize the constant timer by adding the period begin method Add a new action for behavior f ConstantTimer 0 E ConstantTimer reset Httpinjector 1 0 0 E ConstantTimer set 2 if 0 ConstantTimer period end eE nchoice 0 ConstantTimer sleep t preemptive Then we add the Get method of Httplnjector 1 0 by clicking on the add button
12. LIF Test Plan Create a new CLIF Test Plan This wizard creates a new CLIF Test Plan with rtp extension that can be opened bv a Test Plan editor Container HelloWorldWwebServerTest File name HelloWorldWebServer testolan cto Once you did it you can click on the finish button Then your testplan file HelloWorldWebServer testplan ctp and the test plan editor appears in the clif console respectively in the navigator a the left of the console and in a new tabulation at the right of the console E ClifConsole File Edit CLIF Search Run Window Help Ai Piri a Hit TS Navigator 2 ae IE SE OT HelleworldwebServer bestplan ctp E3 E ES HUE CMGGSSINBLTBSE Test Plan Editor X project 6 HelloWorldWebServer_btestplan ctp Injectors and probes All injectors and probes in the test plan Remove Remove All amp ClifTreeview 23 A Edit Monitor Z3 Sex Now we have to define the injectors and the probes that we want to use in the load test of our web server To add a probe or an injector click on the add button Now you can set some parameters which will define you probes or injectors 12 October 10th 2007 e HelleWorldwebServer testplan cktp LE a Test Plan Editor Injectors and probes Properties All injectors and probes in the test plan Manage injector and probe properties Id Server Role Class Arguments Comment 0 localhost probe Server localhost Y Remove All Rol
13. October 10th 2007 Getting started with http clif objectweb org Copyright 2006 2007 France Telecom License information http creativecommons org licenses by nc sa 3 0 CLIF user manual and programmer s guide Table of contents T Introduction to ISAC Plus Ins ss rss En ERES EN ExERE ERE PELA USES ERRAT Oa PA VR EE EE RE EAR a ESTEE NS 3 LE Whats am lA C PUS 608 oo MERO be bp MAE na MM adda ME a eto ed MM ni tulen us 3 1 2 Technical Tequire meni S oues oom Oe timo A ae des uses aede nie 3 De Ready 10 usedi DULL OTDISu a a a a rire alice led 3 RSA OO a Oma dM mM ae Ne EUM 4 2 Define an Ldap injector writing an isac plug ins eee e eee eee e eee eee ee eee e e ees osose 8 2 Me Ldap directory OV CL VICW siesesanceaacun castes sn be ie nent ee etre eme 8 2 2 Write a LD AP Injector sae PIUS Msenga nie nina 9 22 Ll Creare am suc FLU ANS DIO CCL eme RO MeontoM etm T a ee 10 2 2 2 WHILE JOUR T SQCEUDIID IS ste nintendo tee 14 3 ISAC is a Scenario Architecture for CLIE iioi ea rana emanare eaa a aao Redon ae ERE aano sua oda so eoa aas u aaa osua ee aeUe 32 2 1 Defne an ISAC scenario Tor Ldap aie iieri te sand sms etant 32 35 2 JSecord your DS AC SOOO IO 22 odis dresser tarde e b butcddeus due rc medecin 33 4 4 Denne yo r test DANS Dette ere even e o rendue esee d tente ler de eive etat 49 Al Description OLde COllle Xs EUR SR ehe M stants edere ni demie 49 TX Te Ate OU We S
14. Start e Stop e Parameters EE Halle warld WwebServer testplan ctp 2 Test Commands Injectors and probes All injectors and probes in the test plan memory cpu injector Select All Id Server Class Arguments 2 MyFirstClifServer memory 1000 600 Deselect All Global state initialized Parameters Edit Test Once the initialization done a new view Monitor appear down to the Test Commands view On this view you can see the monitoring of all your deployed probes and injectors Monitor Z3 mE HelloWorldWebServer bestolan 18 octobre 2007 1h45msd s 25 memory cpu injector Alarms Display Collect Blade Time ITERUM 2 39 O10 30 eee ee SCs 20 _ C Ol COOP TLS _ i gt l M 10 9 used ram ati 100111 150 200 250 Drawing timeFrame 300 sec Poling Period 1 Sec Now you just have to start the load test by clicking on the Start button and look at the monitor view to inspect the behavior of your probes and injectors 34 October 10th 2007 4 Appendix A Hello world web server Here is the Java code of the Hello world web server To create this web server copy this code and paste it into a Java file named WebServer java import Java ner import Jo va io Logie ana el dmg o Eb sun ner www prorcco hi i AEE PURE C ORIS e ction 1 Main Class of the server manage global informat
15. U DI Biss iecore tencnas td top cetus EE E apnd creata aud 49 4 3 Add Probes and Injectors to your test plans nm eie Eee Pea Nm iNnestta 50 4 4 Deploying and executing your test plaines oet ete eed uos aot or veloces E 53 JE ugar M 56 I RC LOUE LS EH DES RS t M icta ate a aston et Mot ots Spi E a Etapa 56 JRONE ostiis d sat mice e d ee indie en ie oi ton don Id 56 259 RUNM COIS EN eiue ed osx Men nee essa pese ut hose te sn Us 56 Sud COL Ure dC TE SeEVO Buone ptis Sao i td pa qui d ches nitens e OE 58 2 95 ISUDBIHD 2 6 HI SCEVOI C de MEC MM MM CM M E iM ME 50 October 10th 2007 1 Introduction to CLIF 1 1 What is CLIF CLIF is a component oriented software framework written in Java designed for load testing purposes of any kind of target system By load testing we mean generating traffic on a System Under Test in order to measure its performance typically in terms of request response time or throughput and assess its scalability and limits while observing the computing resources usage Basically CLIF offers the following features deployment remote control and monitoring of distributed load injectors deployment remote control and monitoring of distributed probes e final collection of measurements produced by these distributed probes and load injectors Probes measure usage of arbitrary L ioadiniector2 Me ETE resource robes and resource resource probes probes
16. Windows XP TM System probes for Linux are also 100 Java while system probes for Windows and Mac OS X are native C code embedded in Java code via the Java Native Interface Since CLIF is written in Java the only constraint about the SUT is that it must be reachable from a Java Virtual Machine JVM either directly or indirectly through some wrapping gateway or native library There are two ways of getting a CLIF runtime environment either by getting the whole source from the CVS repository or by getting a ready to use binary distribution 1 3 Clif installation CLIF s site at OW2 Forge offers several binary distributions available as zip files see http forge objectweb org project showfiles php group id 57 e Clif full runtime environment with a Java Swing based GUI and support for CLIF servers Server reduced runtime environment just for running CLIF servers e console Linux Eclipse RCP based standalone console for Linux Intel e console Windows Eclipse RCP based standalone console for Windows Intel e console Macosx Eclipse RCP based standalone console for Windows Intel e clif plugin CLIF console as an Eclipse plug in Refer to section for plug in installation e isac plugin ISAC editor as an Eclipse plug in requires CLIF console plug in Refer to section for plug in installation October 10th 2007 In this tutorial we will only use the Eclipse RCP console console Windows console Linux console MacOSX Download
17. ammer s guide System variables variable value o5 Windows MNT PATH ciorawinbin c Yoracleiorasllibinl Cie PATHEXT COM EXE BAT CMD VBS VBE J5 PROCESSOR A x66 PROCESSOR ID x86 Family 6 Model 13 Stepping 6 Senu w J Now add the reference to the ANT HOME bin and JAVA_HOME bin repertory at the end of the PATH line Edit System Variable Variable name PATH Variable value SANT HOMES bin 1448 HOMES bir Now you just have to check if the good java version and ant version are used by your system o E je Run M a p Type the name of a program Folder document or Log Off Faweaz31 Internet resource and Windows will open iE For you S y LIndack Computer cmd Shut Down Aa CS 42 October 10th 2007 Microsoft Windows KP UYersion 5 1 6861 Gy C WINDOWS system32 cmd exe Pm X CC Copyright 1985 2081 Microsoft Corp E H 5 gt ant version 1 6 6_43 b45 Java Hot Spot TM Client UM Chuild 1 6 6_863 b85 mixed mode 5 2 2 Linux OS Now you have to set the following environement variable e JAVA HOME usr lib jdk1 6 0 03 e ANT HOME usr lib apache ant 1 7 0 And to modify e PATH PATH S HOME bin SANT HOME bin JAVA HOME bin Go to the root directory of your user account Modify the bash profile file with the following command line vi bash profile If this file doesn t exist you can create it Put in it the follo
18. ctor CSVProvider Now you can see the list of the imported plug ins with your Httplnjector 1 0 plug in and if you click on it its properties appear in the right side of the view 18 October 10th 2007 Import Page Plug ins Properties List of plug ins used in this scenario Manage plug ins properties l Add use Httpinjector 1 0 Httpinjector_ 1 0 Remove Remove All id Httpinjector 1 0 0 Help Load images and frames enabled Config the Default Proxy Config the default login password for proxy authentication Preemptive authentication enabled Design Source Import Behavior Now add the Httplnjector 1 0 plugin For this plug in you have some parameters to set if you want to use it and to send requests on your web server As our web server is running on our local host we don t need to set these properties but if you test web server on your network you may need to set some of these plug in properties And now you can import the last plug in ConstantTimer Import Page Plug ins Properties List of plug ins used in this scenario Manage plug ins properties Sn RTE N use ConstantTimer ConstantTimer Remove All id ConstantTimer 0 Add behavior Design Source Import Behavior 19 CLIF user manual and programmer s guide To be able to manage the virtual user simultaneous requesting the web server the duration properties will be set to 1000 ms 1 second
19. ctor cpu memory R ale Class Arguments Comment e Forthe memory probe Injectors and probes All injectors and probes in the test plan Injector cpu memory Role Class Arguments Comment Don t forget to save your work Ctrl s or i 3 3 Scenario To create your scenario you should use the ISAC scenario wizard Click on File gt New gt New Isac Scenario 14 amp ClifConsole File Edi CLIF Search Run Window Mew Open File Close Close All lal Save 45 mix kta il Convert Line Delimibers To DL e rr Isac Scenario File Help Ctrl Ctrl Shirt Ww October 10th 2007 d CLIF Test Plan g CLIF Report n 4 CLIF Report Template riz Mew Isac scenario s LE ISAC Plug in Project t Other B meca CEU TTITETITOT V This wizard creates a new File with xis extension that can be opened Isac Scenario Editor Container Helle Vorld WwebServerTest File name Hello World WwebServerTest scenario xis Then you can click on the finish button In the navigator at the left of your CLIF console you can see now your scenario file 15 Browse CLIF user manual and programmer s guide ClifConsole File Edit CLIF Search Run Window Help Qr id ls TS Mavigator c3 H T al HelloWorldWebServerTest x project d HelloworldWebServer_bestplan ctp ie Hello world webServerTest scenaria xis 5 mL 72 xml version 1 0 la DOCTYPE scenario PUBLIC HObi
20. d not the time in seconds of the ramp we are defining Now we want a ramp that increases the number of simultaneous scenarii It begins at time O during 60 seconds and increases the number of simultaneous scenarii from O to 60 Enter 60 in the Time text field Population Enter 60 in the Population text field ED Ramp style Choose the ramp style 5 Of OI 24 October 10th 2007 To save these settings click on the Add point button add point a Load profile Add points for this profile 0 Population Ramp style Or Oz I Force stop Points Time Population r style mm 60 60 After we want a stable number of simultaneous scenarii during 2 minutes 120 seconds so the profile duration will be about 180 seconds And at the end of the 2 minutes the number of simultaneous scenarii will rise to 100 scenarii Now we want a ramp that increase the number of simultaneous scenarii It begins at time O during 60 seconds and increase the number of simultaneous scenarii from O to 60 Time 150 Enter 60 in the Time text field Population Enter 60 in the Population text field Tm Ramp style O OF oJ Choose the ramp style To save these settings click on the Add point button Load profile Add points for this profile Heavy load Population Ramp style 100 Oo OF Farce stop Points Time Population Ramp style 60 60 Pd 180 100 Enen 25
21. e probe Class Arguments Comment Edit You can choose to change the default value of the id but be careful with it because the id must be unique As we want to deploy probes and injectors on our local host we let the default value of the server name Then we have to choose the kind of Role we want to add We have the choice between e probe e injector The value of the Class text field will depends of the Role that we have chosen before e If you chose injector the Class value is IsacRunner e f you chose probe you can choose several values depending of the kind of probe you want to deploy o cpu o memory o jvm In the argument text field you have to set the arguments that the probes or the injectors need 13 CLIF user manual and programmer s guide For the injectors it is the name of the isac scenario filename xis For the probes cpu memory jvm it is first the polling period ms and then the execution duration Finally you can add a comment for each probe or injector added Notice that for each type of probes and for injectors you have a different tabulation So concerning the load test of our web server we will have e Forthe injector memory cpu injector Id Server Fole Class Arguments Comment 0 local host injector IsacRunner HelloworldwebServerTest_scenario xis Injecteur e For the cpu probe Injectors and probes All injectors and probes in the test plan Inje
22. ect web org MOTO CLIF ISAC scenario 1 0 7EN classpath org objectweb clifscenariosisacidtd scenario dtd e scenario Design Source Import Behavior At the right of your CLIF console the content of scenario file appears In the left bottom corner of this view which displayed the file content there are some tabulations Design Source Import Behavior To define your scenario we need to use two existing ISAC plug in e Hlttplnjector 1 0 this plug in provides methods to send http request e ConstantTimer this plug in provides methods to fix the scenario duration Now click on the Import tabulation Design Source Imprart Behavior The following view appears 16 October 10th 2007 E HeloWorldWebServer te Add HellowarldwebServerTest scenario xis 2 5 Import Page EE Plug ins List of plug ins used in this scenario Add behavior Design Source Import Behavior Load profiles Z3 mL Seances Time 0 Value 0 Now click on the add button to import the needed plug ins Select the Httplnjector 1 0 plug in and click on the finish button 17 CLIF user manual and programmer s guide SAC Plug ins Add a new plug in Common amp Socketinjector FileReader lt HttpMatrix 1 0 lt ConstantTimer lt Dnsinjector amp Chrono amp SIPinjector_ 1 0 HelloWorld t Context amp UDPinjector amp StringHandler lt Random dbe 1 0 t Counter amp Ldapinje
23. enu Je Run Log OFF LIndack Computer Windows XP Professional Double click on the system icon Systet Choose advanced tab and click on the environment Variables button System Properties Sistem Restore Automatic Updates General Computer Mame Hardware ou must be logged on as an Administrator to make most of these changes Performance Visual effects processor scheduling memory usage and virtual memory Settings User Profiles Desktop settings related to your lagon Settings Startup and Recovery System startup system Failure and debugging information Settings Environment Variables Error Reporting 40 October 10th 2007 Now click on the New button of the System variables parameters group Environment Variables User variables Far kaweza variable System variables variable value MLIMBER OF P 1 15 Windows NT Path ci iorawintbin C yoracleyaraaiibin CP PATHEXT COM EXE BAT CMD VBS BEST 00 PROCESSOR A x86 m ES Then enter the variable name and its value Hew System Variable variable name JAVA HOME variable value C Program Files avatjdk1 6 0_ 03 Do the same thing for ANT HOME variable Now modify the PATH variable Select the PATH variable and click on the Edit button Edit System Variable variable name ANT HOME variable value C Program Files apache ant 1 7 0 4 CLIF user manual and progr
24. following link http ant apache org bindownload cgi Click on the current release of apache ant utility depending of the platform where CLIF will be used For windows select the zip file and for linux the tar gz file Current Release of Ant Currently Apache Ant 1 7 0 is the best available version see the release notes Mote Ant 1 7 0 has been released on 19 Dec 2006 and may not be available an all mirrors for a few days Tar files may require qnu tar to extract Tar files in the distribution contain lang file names and may require gnu tar to do the extraction sip archive iapachg ant 1 7 0 bin zip PGP SHA1 MDS car gs archive ap e ant 1 7 0 bin tar gz PGP SH amp 1 MDS car bse archive apache ant 1 7 0 bin tar bz2 PGP SHA1 MDS Then save the downloading file on your computer Once the download done you can unzip the archive file where you want on your platform 5 2 Environement variables setting 5 2 1 Windows OS Now you have to set the following environement variable e JAVA_HOME C Program Files Java jdk1 6 0_03 e ANT _HOME C Program Files apache ant 1 7 0 And to modify e PATH lt value already in path gt JAVA_HOME bin ANT HOME bin Go to Start gt Settings gt Control Panel 39 CLIF user manual and programmer s guide e Settings E Control Panel u Network Connections Search Th Printers and Faxes o Help and Support a Taskbar and Start M
25. ion public class WebServer static int porc static int nbOConnection 0 public static mord emo Ni ServerSocket server puel fT DIS GUNT tery port Integer parseInt args 0 Catch Exccption e E port 1235 default value V los etui seed Co server new ServerSocket port Sues es Ove posent lig X Weser Se 1e Eten G while true creation of a new connection socket s server accept Indo XC Oud en ub OM aa new Connections euscommuect omm Pecateh IOException 6 System out printin Error when trying to create a socket object te getMessage System exit 1 class Connection implements Runnable Socket client link with the client BufferedReader fromClient reception of requests PrintWreiter toClient send of responses public Connecrion Ssockem client int nbo Connection this client client Ery Gr ea Scd dace a E cc e SE 35 CLIF user manual and programmer s guide fromClient new BufferedReader new InputStreamReader client getInputStream toClient new PrintWriter new OutputStreamWriter client getOutputStream true Creation of the http response Sceau ILelex Cero ResOOIse ie Sues ole Orr heter ROS rOn sexe yopecmen al lEy dE OL ABIT TONS all ie httpResponse append Date Calendar getInstance getTime n attoResponse appencieoneene ly poe eee TIMES n httpResponse append n httpResponse append Hello World
26. mer sleep preemptive Then click on the ConstantTimer O period end of The behavior tree Behavior tree 1 ConstantTimer_O period begin B Httpinjector_1 0_0 get And then set his duration properties to 1000 ms Properties Manage plug ins properties timer ConstantTimer sleep E id CaonstantTimer 0 duration ms 1000 You can save your scenario file if you didn t do it before 25 CLIF user manual and programmer s guide File Edit CLIF Search Run Window Help Mew k 6 Open File Close Ctrl 7 Close Al Ctri Shift w Li Save hs CEri 5 lal Save AS 5 Save All Ctri Shift s Convert Line Delimibers To k 1 Hellawarldweb5erverTesk scenario xis 2 HelloWorldWwebSeryver testplan ctp H Exit 3 4 Load profile Load profiles enable predefining how the population of each behavior will evolve by setting the number of active instances according to time A load profile is a sequence of lines or squares For each load profile a flag states if active instances shall be stopped to enforce a decrease of the population or if the extra behaviors shall complete in a kind of a lazy approach To create a load profile you should be on the Behavior Page and click on the Load profile link Behavior tree Load profile and after it on the Set profile button Be carefull the time box contains the time in seconds since the start of the test an
27. ort m 1357 Classpath IC Travail cliF 1 2 2 consale plugins org objeckweb cliF console plugin_1 2 2fexamples classes You can add or delete paths using these buttons e to add projects path e to add externals path e E to delete the selected path In our case we will delete the default path and add our project path Select the default classpath and click on the delete button ai CLIF Console configuration Please configure the Clif console This wizard creates the clif praps File Hostname 10 194 3 95 Broadcom Metktreme 57xx Gigabit Controller Deterministic Network Enhancer Miniport rm Code server port 1357 Classpath IC Travail cliF 1 2 2 consale plugins org abjeckweb cliF consale plugin 1 2 2 e amp examples classes 28 Please confiqure the Clif console This wizard creates the cliF props File Select Folder to add to classpath Hostname localhost Code server port 1357 Classpath E October 10th 2007 x Jenn Then click on the add project path button Select the HelloWorldWebServerTest project and click on the OK button And finally click on finish to start the registry This pop up will appear during the launching of the registry Progress Information Trying existing registry 29 Cancel CLIF user manual and programmer s guide When the registry will be launched a pop up will appear Click on the OK button CLIF
28. pu injector Id Server Role Class Arguments Comment State 2 MyFirstCliPServer probe memory 1000 600 Memory probe undeploved Global state undeplaved Edit Test Now you can see e the global state of your test plan e the state of all your probe and injector 32 October 10th 2007 memory cpu injector Id Server Role Class Arguments Comment 2 MyPirstOlifS rver probe memory 1000 600 Memory prom Now you deploy your testplan by clicking on the Deploy Depor button The global state and the probes and injector state changed from undeployed to deployed And now you can access to others actions e Initialize e Stop e Parameters g HelloworldwebServer_testplan ctp E3 m Test Commands Injectors and probes All injectors and probes in the test plan memory cpu injector Select All Id Server Role Class Arguments Comment State 1000 600 Memory probe deployed Deselect All 2 MyFirstClifServer probe memory Global skate deployed Edit Test Then initialize your testplan by clicking on the Initialize button You have to set Test id name by default it is the name off your test plan and click on the OK button amp Test id Enter test id name HellowWorldWwebServer_testplan The global state and the probes and injector state changed from deployed to initialized And now you can access to others actions 33 CLIF user manual and programmer s guide e
29. reate a project First of all launch your CLIF console clicking on clif console exe for windows file 3 clif 1 2 3 console Fichier Edition Affichage Favoris Outils 7 C9 Pr c dente A Rechercher fy Dossiers dy b gt lt Me Gr Adresse C Travailiclif 1 2 3 console Dossiers Mom Taille Type E ic clf 1 2 0 console Ca configuration File Folder y clif 1 2 2 console Lj doc File Falder E clif 1 7 3 console license File Folder 9 dif 1 3 0 console plugins File Folder configuration O workspace File Folder z 3 doc e dif cansale exe Application 73 license E derby log Document texte IL En amp plugins ai startup jar Date de cr ation 24 05 2007 10 03 Executable Jar File workspace se lt Welle AE Date de cr ation 24 05 2007 10 03 Taille 176 Ko E My Computer Once your CLIF console launched you have to create a project Click on File gt New Other dM ClifConsole File Edit CLIF Search Run Window Help Mew a CLIF Test Plan Open File e CLIF Report f CLIF Report Template rs Mew Isac scenario dE ISAC Plug in Project r t Other Ls Convert Line Delimiters To d Exit CLIF user manual and programmer s guide Then the following window appears Select a wizard Create a new project resource Wizards type filter text E i General File 51 Folder Ef Untitled Text File H E Business Intelligence
30. wing line bash profile Get the aliases and functions if f bashrc then l bashrc fi User specific environment and startup programs ANT HOME usr lib apache ant 1 7 0 JAVA HOME usr lib jdk1 6 0 03 PATH PATH HOME bin ANT_HOME bin JAVA_HOME bin export ANT_HOME export JAVA_HOME export PATH 43 CLIF user manual and programmer s guide unset USERNAME Now you have to logg off from your platform and then logg on to reload the bash profile file Now you just have to check if the good java version and ant version are used by your system clit ant wersion Ant version 1 7 0 compiled on December 13 2006 java wersion java version 1 6 0 02 SE Runtime Environment build 1 5 0 Dz b 035 server VM build 1 5 0 O0z b05 mixed 5 2 3 Mac OS X TOI 44 Mode
Download Pdf Manuals
Related Search
Related Contents
IP監視カメラシステム XProtect Digital Terrestrischer Free-To Manual de usuario カタログ Manual de ensamblaje POWER-MATEs - Appliance Factory Parts Copyright © All rights reserved.
Failed to retrieve file