Home
QA WIZARD - eG Innovations
Contents
1. amela Ren Ge i mst Msk Mco cir 2 Flight Number SQ Ready kos Num Figure 2 50 Saving the image of the Flight Number field 63 Prior to keying in the flight number the cursor should be positioned in the Flight Number text box To achieve this associate a click event with the Flightnumber bmp image see Figure 2 51 Click Image Image Names Image Preview fe Button Left Middle Right Click Search Area NONE C None Searching Timeout in Secs Single STANDARD_TIMEOUT Toggle Timeouts C Double IV If multiple images are found click on the one nearest original location e Advanced tons Figure 2 51 Clicking on the Flightnumber omp 37 Integrating eG Enterprise with CitraTest 64 To key in the flight number click on the key button on the tool bar of the script window and then specify a flight number in the Text String text box of Figure 2 52 In our example 409 is the flight number Once the text is specified click on the Add to Script Code gt gt button corresponding to the text box to generate the relevant script code for the keystrokes see Figure 2 52 This script code will be added to the Keystroke Script Code list of Figure 2 52 Type Keystrokes oe Baie x Record Keystrokes Keystroke Script Code KeystrokeString 409 Text String Add to Script Code gt gt Add to Script Code gt gt Lett m Keystroke Action for Special Keys
2. Left xj Keystroke Action for Special Keys e Key Press C KeyDown KeyUp Remove Script Code lt lt J Type Keys as to Trace Log Cancel Figure 2 96 Specifying the password egurkha 18 As chn is the Domain to which the Citrix user john belongs the script will have to click on the Tab key yet again to move to the Domain text box and then specify chn in it After which the script will have to click on the Login button to login to the Citrix server 192 168 10 28 To click on the Login button instruct the script to press the Tab key from the Domain text box and then press Enter see Figure 2 97 Integrating eG Enterprise with CitraTest Type Keystrokes x Record Keystrokes Keystroke Script Code returnStatus Keystroke K VK_TAB KEY_PRESS Text String KeystrokeString chn returnStatus KeystrokeVK VK_TAB KE Y_PRESS Add to Script Code gt gt returnStatus KeystrokeV K VK_RETURN KEY_PRESS Special Keys Add to Script Code gt gt Keystroke Action for Special Keys Key Press C KeyDown KeyUp Remove Script Code lt lt I Type Keys as to Trace Log Cancel Figure 2 97 Providing the domain name and clicking on the Login button 19 The script window will thus be updated with the login script see Figure 2 98 _ CitraTest D citratest Citra CitrixEx bas File Edit wiew Playback Scripting Results Window Help X clk w key log dly
3. Browse Password Confirm password fou can enable or disable this service for the hardware profiles listed below This account Hardware Profile Profile 1 Enabled Enable Disable Figure 2 78 Allowing the service to interact with the desktop 4 Finally click on the Apply button and then the OK button 56 Integrating eG Enterprise with CitraTest 2 2 4 Viewing the Measures To view the measures reported by the CitraClientEmulation test do the following 1 2 Login to the eG monitor interface as supermonitor with password supermonitor From the Components menu select the Servers option Once the COMPONENT LIST page appears select the Emulated Client option from the Type list therein so as to view the current state of all components of type Emulated Client Then click the Submit button see Figure 2 79 Jan 71 2008 1241525 Home Zones Services Segments Components Measures Alarms Graphs Options COMPONENT LIST State All states Mick Name Type Emulated client Search Types o o F Show All Components Submit Emulated Client E 192 163 10 32 80 Figure 2 79 The Independent Components page The Emulated Client component that we had configured previously will then be listed see Figure 2 79 Click on the component to view its layer model tests and measurements see Figure 2 80
4. Program Sroaup Existing Groups Occessories Administrative Tools HTML Help workshop Irfanview Startup nes Figure 2 143 Adding a new group to the Programs group f Upon completion of setup Figure 2 144 will appear Click the OK button to close the message box Citri E Setup Figure 2 144 Message on completion of setup g With that setup is complete You can later verify whether the packaged dll s and exe s have been installed to the locations specified while packaging 3 Since the location of a few key directories would have changed while copying them from the source to the destination system you need to update the CitrixEx script file with the corresponding changes To achieve this open the CitrixEx script directory that was manually copied to the destination system and make the required changes to the imagepath searchpath and fontpath parameters see Figure 2 145 95 Integrating eG Enterprise with CitraTest Gj Citrixkx script Notepad E LB x fie Edt Foma tjap c lt lt This 14 a Cit The parameters that need to be changed i o a J ScriptLogiceIf returnstatus lt gt SUCCESS Then r n Abortscriptex CSCRIPT_FAIL r n Exit sub r nend If r n r n Figure 2 145 Change the image search and font paths The Fonts directory will typically exist in the install directory of the CitraTest Runtime environment 4 Finally execute the CitrixEx application that was manua
5. ao Links n Search Web IZE GJ Mail My Yahoo Games S Personals LAUNCH Sign In Pie seas KrisFlyer Number or User ID PIN a Menier a lt SINGAPORE AIRLINES Login Enrol Now PIN Hel Niet mel Ceol i eee oe eo el Ce oral Promotions Country Sites asai ree a gg Online Flight Services Bp u eae J Check in Flight Status Baggage Tracing Do you need real time y CEA BENE E E a pe access to information on our a gt AtUS FOr Cnosen flight status Use our Flight DaUuc i Status facility Click here to f Flight Number SQ 409 ce Services find out more 12th J Mobile Services Aircraft Boeing Online Flight Services ght Scheduled Actual Estimated Bisbee Promotions First Class Time Time Time Raffles Class Departure from Chennai MAA 23 45 Economy Class On The Ground Arrival at Singapore SIN 06 20 1 Surprising Singapore home to many exciting On Board Services attractions Fly on Inflight Entertainment Singapore Airlines and amp Communications experience Singapore from For Your Travel Comfort US 27 Check it out here all timings shown are in local times KrisShop hae me Symbols for arrival and departure timings 1 Arrival next day KrisFlyer Feature 2 Arrival two days later 1 Departure previous day 2 Departure two days before Schedules are subject to change without prior notice Flights shown do not necessarily represent all possi
6. et Package and Deployment Wizard Shared Files When this package is installed the Following Filefs can be installed as shared Files Shared Files may be used by more than one program They are only removed if every program which uses them is removed Check the files you want to install as shared Shared Files Install Location DC citrixEx exe D icitratest Citra 4ppPath Help Cancel lt Back Finish Figure 2 137 Indicating whether files are to be installed as shared files or not m Once the wizard is through with the process of collecting the information to build the package it will request you to provide a name under which the specified configurations need to be saved see Figure 2 138 Then click the Finish button 91 Integrating eG Enterprise with CitraTest et Package and Deployment Wizard Finished The wizard has Finished collecting information needed to build this package Enter the name under which to sawe the settings For this session then click Finish to create the package Script name Standard Setup Package 1 Help Cancel lt Back ext gt q Figure 2 138 Saving the session n Upon clicking the Finish button Figure 2 139 will appear wherein you will have to click the Close button to complete the process Package and Deployment Wizard y citrakest Citra citrixEx vo Browse Bundle this project into a distributable package such as an nternet c
7. Jan 34 2008 42 51 Proe Heip signout Aarma Graphs Options Client Service l E CitraClientEmulation E FlightStatus Check E FlightStatusPage E SAHome E SAWebSite_Total fa CitrixClientEmulatian SAWebSite_Total 4 DETAILS REMOTE CONTROL 4 HELP E Availability hates E Response time Secs 22 700 La 3 Figure 2 80 Viewing the layer model tests and measurements of the Emulated Client 57 Integrating eG Enterprise with CitraTest 4 A timer maps to a step in a multi step service interaction eG monitors steps using timers From Figure 2 80 it is evident that all the steps that were monitored using the SAWebSite script appear as descriptors of the CitraClientEmulation test 5 Besides the steps that we had explicitly added to the script Figure 2 80 also displays an additional step namely SAWebSite_Tota This step tracks the time taken by every activity performed by the script calculates the sum of the duration of the activities and provides this sum as the response time of the monitored application Figure 2 80 reveals the response time value returned by the SAWebSite_Tota step This is the total time taken to access the Flight Status page request for Flight Status information and receive a response from the web server 6 To verify the correctness of the reported value switch to the system hosting the CitraTest
8. Software Prerequisites Windows NT or Windows 2000 or Windows XP server workstation Microsoft Internet Explorer IE version 5 0 or higher Microsoft Visual Basic 6 0 This is required only for installing and using the CitraTest development environment For the CitraTest Runtime environment though the VB runtime files that are bundled with the Windows operating system will suffice in such a case Microsoft VB is not required Integrating eG Enterprise with CitraTest Others Screensavers should be disabled on the system executing CitraTest Use the LockMachine exe available in the lt CITRATEST_INSTALL_DIR gt to disable the keyboard and mouse of the workstation on which CitraTest is executing For more details pertaining to the LockMachine utility refer to the CitraTest Manuals Once the development environment is installed proceed to record a test script A test script is a sequence of actions that are recorded as a user accesses one of the services in the target infrastructure The recorded script can then be played back to emulate user accesses to the service Image and text recognition techniques are used during playback to determine whether playback of a script succeeded or not After building the script file use the eG administrative interface to configure the script playback Next start the external agent which will playback the script and finally view the measures returned by CitraTest in the eG monitor interface
9. from 28 June Click here to Anival City Select a City v ae explore the premium features of our latest Date 25 06 2004 v God dd mm yyyy aircraft and a chance to win Raffles Class tickets on board the 4340 500 light Sta oie Schedules are subject to change without prior notice Flights shown do not necessarily represent all possible and available additional flights Please contact the Singapore KrisFlyer Member s Area Airlines office or your nearest travel agent for updates g F x X 473 Y 218 E E Internet wo BR TOS on Figure 2 60 Capturing an anchor image Next save the image as Anchor bmp see Figure 2 61 43 Integrating eG Enterprise with CitraTest _ CitraTest D citratest Citra Images Anchor bmp File Edit Image Capture view Window Help Bj jejej afek oaee e ml eff zin zou smplart Ren FEI Mor iMak Mco cir _ Online Ready ne ate Renee ee ee rc ae Ga See ie ce Ore es RM os Figure 2 61 Saving the image as Anchor bmp 78 Next proceed to capture an image of the search area as depicted by Figure 2 62 Singapore Airlines Microsoft Internet Explorer ww singaporeair com saa app saa ISESSIONID_WLCS_PORTAL AFkK9mkG2L2XLH39gR 34 junbS7w4jwsJEy ToD JFhevExMqo4253 49526472 1407778313 7501 750 Y Go Links Search web EB mail my Yahoo Wej Games we Yahoo SY Personals b LAUNCH Signin KrisFlyer Number or User ID PIN re Member aan Go
10. 2 on egyssserver Z Select an item to view its description S Control Panel See also GE My Network Places My Documents 2 Entire Network My Network Places i a F Microsoft Windows Network My Computer E a Chn m Eginnovations01 H Egitlabo1 Egitlab04 3 Egitlabos 3 Egitlaboo H Egitlabi1 ml Eglap01 m Egserver01 m Egserver02 Al Egsetup win2k By Egtest02 3 Egtestos Egtest14 H Egtesti5 Egtest18 m Egurkha04 H Egurkhaos m Egurkha07 E a citratest H baazee E Citra Images 4 objectis 2 23 MB fas Local intranet Figure 2 140 The contents of the Package folder p The CitrixEx winzip file of Figure 158 consists of all the important dll s and exe s that will have to be copied to the destination system The setup application is the executable that will have to be run on the destination system to facilitate the copying 1 Next you need to manually copy a few files from the VB project directory in the source system to some location in the destination system For our example the following files have to be copied The Images folder The Package folder The CitrixEx Application CitrixEx bas CitrixEx vbp Y VV VV WV CitrixEx script 2 Then proceed to execute the Setup exe on the destination system to copy the bundled exe s and dll s To achieve this do the following a Open the Windows Explorer in the destination system and navigate to the system
11. 6 Fal Ge Zin Zou Jmp ALL Ren Msk Msk MCol Cir fee D citratest Citra CitrixEx bas End If StopTimer CitrixLogin returnsStatus ClickOnImage username bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnsStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If KeystrokeString john returnStatus KeystrokeVK VK_TAB KEY PRESS KeystrokeString egqurkha returnStatus KeystrokeVK VK_TAB KEY PRESS KeystrokeString chn returnStatus KeystrokeVK VK_TAB KEY PRESS returnsStatus KeystrokeVK VK _RETURN KEY_PRES5 Figure 2 98 Script for logging into the Citrix server 192 168 10 28 20 If the login is successful the resultant page will display an Applications section and of course a Done message on the status bar The script should therefore be instructed to wait for the appearance of the aforesaid to confirm successful login To achieve this first capture a small portion of the title of the Applications section see Figure 2 99 67 Integrating eG Enterprise with CitraTest A MetaFrame XP Microsoft Internet Explorer File Edit View Favorites Tools Help Back gt ix a fat A Search aa Fevorkes media EME Address amp http 192 168 10 28 Citrix MetaFrameXxP default frameset asp Y r 2 Search web mal my vahoo W Games SY Personals LAUNCH Signin Welcome MetaFrame XP Applications Welcome to y
12. Bookings Round Trip One Way j Special Deals From Departure City To Destination City gt gt Flight Status pover C ce Class Econom Class 7 Check the status of your flight Make a stopover yos ue u gt Check in Online Departure 25 gt Jun 2004 gt Select Time gt Available from 48 to 2hrs prior to departure Return 25 Jun 2004 Select Time i gt KrisShop Singapore Airlines online duty free shop No of Passengers Adults fi 7 Children o pa gt Join Singapore Airlines Frequent Flyer Programme Home ContactUs Feedback amp Enquiry Help amp FAQs Site Map Search Conditions of Use Privacy zj Baie i eee S Mic SCDRSS 1m Figure 2 32 Capturing the image of the Singapore Airlines logo 44 The image has been saved as SAHome bmp see Figure 2 33 CitraTest D citratest Citra Images SAHome bmp laj x Z Eile Edit Image Capture View Window Help laix fa Ba amp e ck key ioo aly ea Zin Zoul Jmp ALL Ren Fe Msk Msk MCo Cir EE Ready pona Num A Figure 2 33 Saving the Singapore Airlines logo as SAHome bmp 45 Then capture the Done message on the status bar by following the procedure explained earlier Save the new image as DoneSAHome bmp 28 Integrating eG Enterprise with CitraTest 46 Once both the images are ready you need to ensure that the script waits for the appearance of the logo and the Don
13. Thea Enabling Service Excellence The eG Client Emulation Guide Restricted Rights Legend The information contained in this document is confidential and subject to change without notice No part of this document may be reproduced or disclosed to others without the prior permission of eG Innovations Inc eG Innovations Inc makes no warranty of any kind with regard to the software and documentation including but not limited to the implied warranties of merchantability and fitness for a particular purpose Trademarks Microsoft Windows Windows NT Windows 2000 and Windows 2003 are either registered trademarks or trademarks of Microsoft Corporation in United States and or other countries The names of actual companies and products mentioned herein may be the trademarks of their respective owners Copyright 2012 eG Innovations Inc All rights reserved The copyright in this document belongs to eG Innovations Inc Complying with all applicable copyright laws is the responsibility of the user Table of Contents INTRODUCTION meirino a ae a E A AER a R NEEE EESE EER AS AERE Ri 1 1 1 BENEFITS OF THE EG CLIENT EMULATOR isis cescuiccesstekatadve vaansine ce tett ttttttet setst ett ttt tetes e 2t EEEE EEES PP EEE EEEEEEEEES ESER EEEEEEEEEEES ESEE EEEEEEEEEEEE ESEE EE Eeee 2 k2 ARCHITECTURE aa creche tea E AE laa E E O E e E O E E E A E e Maite E E 3 13 EA CENSING et seize aA ES E EST ae E S gta E aah aa ae A S 4 INTEGRA
14. 1 After adding the Emulated Client 192 168 10 28 1494 attempt to sign out of the eG administrative interface 2 From the list of unconfigured tests that appears click on CitraClientEmulation test 3 In the test configuration page that appears specify the following see Figure 2 118 CitraClientEmulation parameters to be configured for 192 168 10 26 1494 Emulated Client 192 168 10 28 TEST PERIOD 5 mins H ST 1 192 160 1029 PORT Dao SCRIPTFILES GYCitraTestCitraycitr OUTPUTFILES gt None SCITRIX es APPLY TO OTHER COMPONENTS i Figure 2 118 Configuring CitraClientEmulation test for 192 168 10 28 1494 77 Integrating eG Enterprise with CitraTest a TEST PERIOD How often should the test be executed b HOST The host on which the test will run In our example the test will attempt to extract measures from the host 192 168 10 28 c PORT The port at which the specified HOST listens In our example this is port 1494 the port at which the Citrix client listens d SCRIPTFILES Specify the full path to the script file that is to be played back for emulating a request to and extracting metrics from the monitored application Multiple script files can be provided as a comma separated list but all script files should monitor the same application only In our example the path to the CitrixEx script has to be specified here Note If the script file resides on another host then ensure
15. 2 Ready ror Num Figure 2 54 The default click spot of the CitySelect omp 68 To be on the safer side let us position the click spot on the down arrow at the end of the CitySelect bmp image To achieve this click on the button on the tool bar of Figure 39 Integrating eG Enterprise with CitraTest 2 55 and then click on the down arrow at the left corner of the CitySelect image Figure 2 55 indicates the new click spot CitraTest D citratest Citra Images CitySelect bmp Z File Edit Image Capture View Window Help Bl me ck wy key toa ay gt lf zin zou Jmp att Ren Fe Msk Msk Mco cir _ Ready kor Num Figure 2 55 The new click spot for the CitySelect omp 69 Now instruct the script to click on the CitySelect bmp To do this click on the clk button on the tool bar of the script window select CitySelect bmp from the Image Names list of Figure 2 56 and then click the OK button therein Click Image Image Names Image Preview CitySelectList bmp f Done bmp T Button Left Middle Right Search Area Searching Timeout in Secs STANDARD_TIMEQUT Toggle Timeouts IV If multiple images are found click on the one nearest original location cmos Figure 2 56 Clicking on CitySelect bmp 70 Upon clicking the CitySelect bmp a drop down list of cities will appear The quickest way of getting to the Chennai option in this list would be to pre
16. Development environment and open the SAWebSite script in the script window Then open the Timer log by following the menu sequence View gt View Timer Log 7 The SAWebSite timer log file of Figure 2 81 reveals the start time end time and the duration of every activity performed by the SAWebSite script According to Figure 2 81 the duration of the timer SAWebSite_Total is 82 7 seconds Note that the eG monitor interface of Figure 2 80 reveals the same value D citratest Citra SA WebSite tiner og l l x inder imamen at ime Shame Scnpt Action _Sienpt Ikem 1 13 4 es 6 ja TE 0132008 1232539 StatT imer Saw ebSite meio 01731 2008 12 33 01 2 StatTimer SAHome S11 OQVAI2008 1733469 StopTime SAH ermne 12 OVS 2008 1237469 SAHome Duraton te 4T gece E 0113112008 12 33 49 6 StetTime FightStalusPage 14 OVSW2008 1234028 StopTimer FightStalusPage F 15 012008 12 3402 6 FightStatusPage Duration 130 secs EHG OUSW2008 17 34 25 9 StalTimei Availebiltlessage if OVS2008 12 34 35 8 StopT imer Availebiityhlessage aia OF02 4004 11 25166 Avalabiiyklessage Durabon is 9 9 secs 19 01731 2006 12 34 35 9 StapTimer SAwebSite 120 01200 1734356 SaWebdoie Duration i B27 sapt lt q ____ Figure 2 81 The timer log file of the SAWebSite script The table below briefly explains the Availability and Response time measures returned by the CitraClientEmulation test Measure Name Description Ava
17. Note If CitraTest is installed and the script created on a remote host using a normal Remote Desktop session then the eGurkhaAgent service will not be able to execute the CitraTest script due to lack of the requisite permissions On the contrary if all the above mentioned processes had been implemented using the console session of the Remote Desktop then the eGurkhaAgent service will execute the script and report measures to the eG manager The sections to come will take the help of two illustrated examples to explain how eG client emulation works While the first example deals with a web application the second example targets a Citrix application 2 2 Client Emulation for a Web Application The script file that will be built in the first example will emulate a user request to the Flight Status page of the Singapore Airlines web site hosted by the web server 192 168 10 32 on port 80 Using the Flight Status page the availability information of a specified flight is retrieved The example will be used to monitor critical transactions along the way 2 2 1 Building a Script File To build the script file do the following 1 Open the CitraTest Development environment using the menu sequence depicted by Figure 2 1 Integrating eG Enterprise with CitraTest P al Recycle Bin fF Administrative Tools fF HP LaserJet 2200 NetTerm a Internet Explorer ie Outlook Express ES CitraTest A E CitraTest Quick Start
18. To achieve this first click on the clk button on the script window Then proceed as shown by Figure 2 105 Click Image Image Names Image Preview Flightnumber bmp FlightStatus bmp FlightStatus1 bmp GObutton bmp google bmp IE bmp newyorkjfk bmp RestoreDesktop bmp Resultsdone bmp resultspage bmp SAHome bmp SAH yperlink bmp bmp Button Left Middle Right username bmp Click Search Area Searching Timeout in Secs STANDARD_TIMEOUT Toggle Timeouts V If multiple images are found click on the one nearest original location Aviad C Double Figure 2 105 Clicking on the Textpadicon bmp 27 Figure 2 106 displays the script code that corresponds to the association of a click event with the Textpadicon bmp _ CitraTest D citratest Citra CitrixEx bas File Edit wiew Playback Scripting Results Window Help amp clk W lkey log dly 6 amp Ea Ge Zin Zou Imp An Ren Msk Msk Maol Cir 2 E D citratest Citra CitrixEx bas A returnStatus WaitForMultipleImages Applicationstext bmp Done bmp ALL IMAGES STANDARD_TIMEOU If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If StopTimer CitrixcConnect returnStatus ClickOnImage Textpadicon bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If Figure 2 106 Script fo
19. also If the script does not find the same entry it will fail To avoid this confusion it is imperative that the script be built in such a way that the default contents of the Address box are ignored To achieve this the text area of the Address box needs to be masked For that first click on the Msk button fifth from the right on the tool bar of Figure 2 24 Then move to the image below and mark the text box area that is to be masked see Figure 2 24 Once the text area is masked the color of the whole image will change as indicated by Figure 2 24 This color change is not permanent The original color of the image and its new color will flash alternately Save the image once again CitraTest D citratest Citra Images addressbar bmp Z File Edit Image Capture View Window Help Gl Bs we ck wy key oa aly e gt a A zin Zou smp ALt Ren Fe MsklMsk MCo Cir _ Figure 2 24 Masking the text area of the Address box 37 Next associate a click event with the addressbar bmp image Once again minimize the image window see Figure 2 24 to open the script window Figure 2 21 click on the clk button on the tool bar of the script window select addressbar bmp from the Image Names list of Figure 2 25 select the Left option from the Button section and the Single option from the Click section Finally click on the OK button 23 Integrating eG Enterprise with CitraTest Click Image Spice Image Hames I
20. newporkjtk bmp RestoreDesktop bmp Resuitsdone brp resultspage bmp 5AHome bmp 5AHpperlink bmp Schedules bmp Status bmp Snehorbmp men ae a eer ee ene Cancel Figure 2 64 Binding a relative search area to the anchor image 81 Finally click the OK button in Figure 2 64 82 Then proceed to click on the GO button by first capturing an image of the GO button see Figure 2 65 Singapore Airlines Microsoft Internet Explorer _ 18x Favorites Tools Help 5 Search Favorites Meda lt 4 D 3 ww singaporeair com saa app saa ISESSIONID_WLCS_PORTAL AcWweuBGk216LS5qngDDyCtOES 706waqgMJ CskofFOSu7 yqQ4G0S3 49526472 1407778313 750117 Y Go Links Jalke Ea B x __ 553 463 We 36 H 22 SINGAPORE AIRLINES About SIA KrisFhyer Products amp Services Bookings Schedules Travelinfo News Releases s Online Flight Services Flight Status Please provide the necessary information to one of the options below Online Flight Services If you know the Flight No and the Departure or Arrival City First Class Raffles Class Flight Number SQ 409 Economy Class Departing from Aniving at On The Ground j City Chennai 7 On Board Services aan Date 25 06 2004 4 Go Inflight Entertainment el teaches dd mm yyyy lt a amp padanan aa 2 For Your Travel Comfort KrisShop Alternatively if you know the Departure and
21. print the eTicket that you Flight Status have booked using our r 5 online booking facility Een provide the necessary information to one of the options e t below If you know the Flight No and the Departure or Arrival City Promotions Flight Number SQ C Departing from O Aniving at City Select aCity 7 Date 25 06 2004 Y dd mm yyyy Singapore Airlines fw 0088 H 0017 x 0418 Y 0432 er ocd Experience fantastic hotel deals at Raffles International Hotels amp Resorts Click here to find Departure City Select a City 7 out how you can use your boarding pass to get more Amival City Select a City 7 than 50 discount at participating hotels Date 25 06 2004 dd mm yyyy Alternatively if you know the Departure and Arrival City only Schedules are subject to change without prior notice Flights shown do not necessarily represent all possible and available additional flights Please contact the Singapore Airlines office or your nearest travel agent for updates fs oa ER ies A S Sra Figure 2 53 Capturing an image of the City list box 67 The captured image has been named as CitySelect bmp see Figure 2 54 Figure 2 54 also indicates the default click spot of the image CitraTest D citratest Citra Images CitySelect bmp Z File Edit Image Capture View Window Help eje e ck wr key e aly 6 gt el Zin Zou Jmp ALt Ren Ge Msk Msk Mco cir
22. should in appearance shape size label etc be the same as the ones that were captured Only then will the script be able to recognize the images and act as instructed For example say that a script has been built to connect to the Internet Explorer by clicking on the Internet Explorer shortcut on the Windows Desktop Assume that the whole of this shortcut was captured as an image during script development If the label of this shortcut is changed to IE in the system on which the script is to be played back then playback will fail 85 Integrating eG Enterprise with CitraTest The first step towards playing back scripts from other systems is to bundle the script s dll and exe files into a distributable package This can be done using the Package and Deployment Wizard on the system on which the script was developed To bundle the required files for the CitrixEx project in our example do the following a Start the Package amp Deployment Wizard using the menu sequence depicted by Figure 2 127 tor t t E N Bs E D 5 Figure 2 127 Starting the Package and Deployment Wizard b Next select or specify the complete path to the project vbp file that needs to be packaged Figure 2 128 reveals that the CitrixEx project is being packaged Integrating eG Enterprise with CitraTest ar Package and Deployment Wizard Me citrabest CitralCitrixEx vb Browse sh Bundle this project into a distributable pa
23. 2 118 and then signout of the administrative interface 78 Integrating eG Enterprise with CitraTest 2 3 3 Starting the External Agent Refer to the Section 2 4 for details on what is to be done before starting the external agent associated with an Emulated Client component 2 3 4 Viewing the Measures To view the measures reported by the CitraClientEmulation test do the following 1 Login to the eG monitor interface as supermonitor with password supermonitor 2 From the Components menu select the Servers option Once the COMPONENT LIST page appears select the Emulated Client option from the Type list therein so as to view the current state of all components of type Emulated Client Then click the Submit button see Figure 2 79 Jan 31 2008 121627 Hone Zones Services Segments Components Measures Alarma Graphs Options COMPONENT LIST State all States Mick Name Type Emulated Client Search Types l Fo Show All Components P Submit l Available Components Emulated Client 132 16 10 28 1424 Figure 2 119 The COMPONENT LIST page 3 The Emulated Client component that we had configured previously will then be listed see Figure 2 79 Click on the component to view its layer model tests and measurements see Figure 2 80 79 Integrating eG Enterprise with CitraTest Jan 34 2008 12100A erotic reip signout Monitor Home Zones Services Segments Components Me
24. 36 Num Figure 2 26 Script for clicking on the Address box 24 Integrating eG Enterprise with CitraTest 39 In the Text String text box of Figure 2 27 that appears specify the complete URL of the Singapore Airlines site This would be http www singaporeair com saa app saa Then click on the Add to Script Code gt gt button corresponding to the Text String text box This will generate a script code to the above effect and display it in the Keystroke Script Code box see Figure 2 28 Type Keystrokes Cea Be ele i x Record Keystrokes Keystroke Script Code Text String http www singaporeair com saa app saa Add to Script Code gt gt Special Keys Add to Script Code gt gt Left gt r Keystroke Action for Special Keys Key Press C KeyDown KeyUp Type Keys as to Trace Log Cancel Remove Script Code lt lt Figure 2 27 Typing the web site s URL Type Keystrokes a Be Bee N x Record Keystrokes Keystroke Script Code KeystrokeString http www singaporeair com saa app saa Text String Add to Script Code gt gt Add to Script Code gt gt Left Keystroke Action for Special Keys e Key Press C KeyDown KeyUp Remove Script Code lt lt J Type Keys as to Trace Log Cancel Figure 2 28 Generating the script code for typing the URL 40 Once the URL is typed the Enter key on the keyboard should be pressed to initiate the web site
25. Exit Sub End If StartTimer TextpadOpen returnStatus WaitForImage TextpadTitle bmp STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If StopTimer TextpadOpen KeystrokeString This is the Textpad application that has been published on the Citrix server Figure 2 112 Script for typing a line of text on Textpad 34 Finally the script will have to close the Textpad application without saving the changes made to it The simplest way to initiate application closure is to press the AIt F4 key combination To achieve this once again click on the key button in Figure 2 112 From the Special Keys list of Figure 2 113 select Alt Since the F4 key is to be pressed while 74 Integrating eG Enterprise with CitraTest holding down the Alt key choose the Key Down option from the Keystroke Action for Special Keys section Then click on the Add to Script Code gt gt button Next select F4 from the Special Keys list choose the Key Press option and then click on the Add to Script Code gt gt see Figure 2 114 Type Keystrokes Re OE saa x Record Keystrokes Keystroke Script Code returnStatus Keystroke K YK_MENU KEY_DOWN Text String Add to Script Code gt gt Add to Script Code gt gt Left Keystroke Action for Special Keys e Key Press KeyDown KeyUp Remove Script Code lt lt I Type Keys as to Trace Log
26. Handling tab as discussed before and add the manually captured image to the Image Names list see Figure 2 125 84 Integrating eG Enterprise with CitraTest Playback Options Z Mee WE x General Results Think Time Virtual User Settings App Monitoring Integration Screen Event Handling Alerts Log OF and On Image Names vitusscan Bmp gt gt Remove E vent Acton M Click on Hotspot l Stop Script OF Cancel Apply Figure 2 126 Adding the progress tracker s image to the Image Names list 2 Next select the Click on Hotspot check box in Figure 2 126 Finally click on the Apply and OK buttons 2 4 2 Executing scripts from Other Systems A script can be copied to and played back from systems other than the one on which it was developed Prior to copying ensure the following gt gt CitraTest s Runtime environment will have to be installed on the system from which the script is to be played back The script when executed should be able to connect to the application to be monitored For example if the CitrixEx script that we built earlier is to be copied and run from another system then such a system should host the Citrix ICA Client and a shortcut to it should be available on the system s desktop As mentioned previously CitraTest employs image recognition and text recognition techniques to perform script playback Therefore the images that will be used by the script during playback
27. K YVK_RETURN KEY_PRESS Text String I Add to Script Code gt gt Special Keys Add to Script Code gt gt Keystroke Action for Special Keys Key Press C KeyDown KeyUp Remove Script Code lt I Type Keys as to Trace Log Cancel Figure 2 83 Pressing the Enter key after typing the URL 5 The script will get updated accordingly see Figure 2 84 _ CitraTest D citratest Citra CitrixEx bas OY 3 E lef x File Edit View Playback Scripting Results Window Help 18 x X cik w Y key log diy amp H P B S Zin Zu Jmp LL Ren MsklMsklMCol Cir Sub StartScript Initscript returnstatus ClickOnImage RestoreDesktop bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If returnStatus KeystrokeVK VK_F5 KEY PRESS returnStatus ClickOnImage IE bmp LEFT_BUTTON 2 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If returnstatus ClickOnImage addressbar bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If KeystrokeString http 192 168 10 28 returnstatus KeystrokeVK VK_RETURN KEY PRESS End Sub Ready inzs Num Figure 2 84 Script for typing the URL and pressing the Enter key 6 The Citrix client login page will
28. Ready TE S Figure 2 66 Saving the GO button image as GObutton bmp 84 Then return to the script window and click on the clk button on its tool bar From Figure 2 67 that appears select the GObutton bmp from the Image Names list and specify the full path to its relative search area in the Search Area text box By default relative search areas will be saved to the Images directory only Finally click on the OK button in Figure 2 67 47 Integrating eG Enterprise with CitraTest Click Image Image Names Image Preview addressbar bmp 25 Anchor bmp _ CitySelect bmp CitySelectList bmp Done bmp DoneSAHome bmp Flightnumber bmp FlightStatus bmp FlightStatus1 brn IE bmp newyorkjfk bmp RestoreDesktop bmp Resultsdone bmp resultspage bmp SAHome bmp x Search rea D citratest Citra Images itstatus rel relative ini a Searching Timeout in Secs STAN DARD_TIMEQUT Toggle Timeouts V If multiple images are found click on the one nearest original location aise Single C Double Cancel Figure 2 67 Clicking on the GO button 85 The script window will then display the corresponding script see Figure 2 68 f CitraTest D citratest Citra SAWebSite bas T ATES File Edit View Playback Scripting Results Window Help 18 x A clk W key log dly O G gy P eh SA ae Zin Zou Jmp ALL Ren MskIMskIMCGo Cir b returnStatus Cli
29. S I NE E NINO N ERA 64 Ponte 2 97 Che kine Oi tisematle DID savuna aa a aa aa a a aaa 64 Poput 209 5 SCG forchickine on username DO isa lash t Pees tsete pans anced AA E A A E AA amines A 65 POTS 2 94 Keynsin the username Johnen terp aa aA e ENE ai Ee aA EEEE e AAAs AREE Eea NAT EEEa Aa AAPAN ESEA SATER 65 Foure 299 Pressine the Lab key to switchi to the Password Held irtirati i kinan R butters aac don RAA EKARA E R a a a a Taa 66 Figure 290 Specii ne the password eoir k orrara yaa xc wei ttn day T A TNE llth easier E NTE E TAONA AT AT 66 Fipure 2 97 Providing the domain name and clicking on the Losin button sissesisiianevtoaisneesr idiss avnebahawsnsentin suevandasaslesions KEREKET EENE 67 Fome 2 Jor Sen PETO Ea nE e Wii SE LITO I UZO a E E OT Aad aa I O 67 Figure 299 Captutino the tiie of the Applications SECON nire aa Er i E EA TSE ETA O AAA AE aT EEE EON 68 Pipure 2100 Savino the tmiageas APPANNA EED P ocara a a a net aii hint a aa a 68 Fioute 2101 Watine tor Appleationstex bmp and Done bmp sesira na aeaa i aAA aun ears tds AAEE AA ls 69 Figure 2 102 Script for calculating the lobin Ome sonreir erias ine eat iE ASA ES DAN ESEE AERA LENE ANERE A KIER a ETENA tanh faaleacaet eetsaa novia 69 Poore 2 TOC apun as mac On Me TEPA AC Ospu iae E E OEE Ee TA AE ETEA NE E AER RE E SARN 70 Pioute 2 104 Saving the E PA OD E T EEE ET E OTE T 70 Pisure 2105 Clicking onthe Texipadicon DMD siacicvstsovssenernscachucachsey sansishatntis eapieat AO E TETE RE
30. TING EG WITH CID RRA IS Ui aineensa A E EA EREA RA ENES AEA EEA A ENEE 5 2 1 STEPS FOR INTEGRATING EG WITH CITRA TEST crape oaa EE AE E TEE E E a e 5 Die CEIENT EMULATION TORA WEB APPLICATION apn tata TE AT E Ale Mies A 6 22 Bulam a Serii Files cc ea ea tk ke ee ct edt E 6 2 2 2 Configuring the eG manager to Work with CitraTest cccccccccccccccscccccccccesseeeeececsseeeeeeeceesseeeeeeesesssseeeeeseeseeeeeeeeesseeeeeeseessaeeeeees 52 2 2 3 Slar ne th Externa Agente er E E E e E T EE 55 2 2 4 Viewing the MeasureS ooennneennnnenennssssesrrssssssiisssserirssssssinttntsstttttssttt ttan sst tt tets Sstt tt An xe divad decsdlentloeamusaabeeusea gad xed ade wade tiaeannaes 57 2 2 CEIENTEMULATION FOR A CITRIX APPLICATION missionerne A E A E N A 59 23A Buildin Serip Tilers e hth ace E A T A N EE E h ovat autead rcs ied 59 2 3 2 Configuring the eG manager to Work with CitraTeSt eeassseeesseseensssseeesssssseserssssesrrsssserirrsssserirsesssinrinssserrinssserrrssssnrens T4 2 33 Staring the External A GONE veces hreint Let EEEa tees EEE EE a A EE es E E A EEE E a E EEE 79 234 Viewing the NA CUSUNES sios anissa ni oni E EAEE E EE A E EE AE RAE E AAE R A E E E N L 79 2 4 TIPS FOR EFFECTIVE CLIENT EMU A T N a a a dea a aE Aaa a aoa Ta n 82 2 4 1 Handling Random Popups and Dialogs 000000anaaeeeennnnenennnssssennnssssesrnrssssererssssssinessssserrrsssserrrssssnrriesssssinrensssrerirssserrresssnrens 82 2 4 2 Executing s
31. a particular location Scripting Options vas En aU is x Paths Script Logic ee eI Set Font Directory JE AProgram Files CitraT est Fonts ne Use Image Cache Directory Set Image Search Area Cache Director A a Figure 2 5 Specifying the path to the images and search areas 6 Clicking on the Script Logic tab of Figure 2 5 will display the default termination logic see Figure 2 6 for the VB script During playback if any of the conditions specified in the VB script fails then the displayed script will automatically run and abort the script execution If desired you can modify this script Scripting Options nie Bue E x Paths Script Logic Script Logic IF returnStatus lt gt SUCCESS Then AbortScnptEs SCRIPT_FAIL Exit Sub End If Insert Tab OF Cancel Apply Figure 2 6 The default termination logic 7 Once the path and script changes are made click on the OK button in Figure 6 to proceed with the script creation 8 The script window will then open see Figure 2 7 Integrating eG Enterprise with CitraTest 10 11 _ CitraTest D citratest Citra SAWebSite bas eae an ee l x File Edit View Playback Scripting Results Window Help l x D amp ak w key log diy amp 6 By P AI Sl S Zin Zou gt Jmp ALL Ren GeJ Msk MskiMGol Ciri Sub StartScript InitScript Use this selection
32. com saa app saa ISESSIONID_WLCS_PORTAL Ay2042i5WisvW4Mry3OVSOKxDKSBFIUremAkY 18dJXHAePRpJ241 1179874624 1407778314 7501 P is Search Web eS Gmail My Yahoo Games S Personals gt LAUNCH X 386 Y 532 We gA H 12 KrisFlyer Number or User ID PIN a E SINGAPORE AIRLINES Login ae EnrolNow PIN Help Ne Ce eee eC Cc Promotions Country Sites y7 a Online Flight Services wih Wandices D baggage tracing system to l Check in Flight Status Baggage Tracing f y x E Flight Status help you trace your lost oau baggage Click here to find ce Services out more You can use our worldwide Please provide the necessary information to one of the options below Mobile Services Online Flight Services If you know the Flight No and the Departure or Arrival City Promotions First Class Raffles Class Flight Number SQ 409 Economy Class O Departing from Arriving at On The Ground City Chennai F On Board Services Inflight Entertainment Date yyy Singapore Airlines amp Communications Boarding Pass Privileges For Your Travel Comfort Experience fantastic hotel KrisShop deals at Raffles Arrival City only International Hotels amp Resorts Click here to find out how you can use your boarding pass to get more than 50 discount at participating hotels Date 12107 2004 F dd mm yyyy KrisFlyer Promotions Schedules are subject to change without prior notice Flights sh
33. connection In order to make sure that the script does the same select the Enter option from the Special Keys list box and click on the Add to Script Code gt gt button adjacent to it see Figure 2 29 The corresponding script code will then be displayed in the Keystroke Script Code box see Figure 2 30 25 Integrating eG Enterprise with CitraTest Type Keystrokes Ct i Shift a Ctrl Alt Esc Back Space Figure 2 29 Selecting the Enter key Type Keystrokes KeystrokeString http www singaporeair com saa app saa returnStatus KeystrokeVK VK_RETURN KEY_PRESS Figure 2 30 Script code for the Enter key press 41 Finally click on the OK button in Figure 2 30 42 The Keystroke Script Codes that were generated earlier see Figure 2 30 will then be appended to the script window of Figure 2 31 26 Integrating eG Enterprise with CitraTest f CitraTest D citratest Citra SAWebSite bas SS tC LB XI Eile Edit View Playback Scripting Results Window Help a x cik w Y key log diy P E Zin Zou Jmp LL Ren MsklMskiMol Ciri Sub SEArCSCEIPE a EnNitsceipt returnsStatus ClickOnImage RestoreDesktop bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT_FAIL Exit Sub End If returnStatus KeystrokeVK VK_F5 KEY PRESS returnStatus ClickOnImage IE bmp LEFT_BUTTON
34. for the PHONE Status pace iscscsvesinsussesisesiessassstvosesuseshacaeathstevedeass E E A A A A AA A 36 Pioure 250 Saying the maoe ot the Flicht Nambet field spenrestiriirethiniiriat i a aari a E a EA AA A a A 37 Pivtite 7 2 MC ines tHe Flis nunen DD aaa a AE EAE A E EE S EAEE Ta E OT Figure 2 0275 1 ype the Tene Gui Ber t9 GGUS CS opinie aana peng cs ETRE fan iaa ONEA EEEE E PRAE ast RINE T K Aaa ETET T 38 Pioure 2 59 Capunar an mace Of the City St DOR rie an Ta A AA T A ANE EA E O T A 39 Pioure 294 The detault cick spot or the City Select DIIP soior aaa E EREE AEE EA DN R EEEE AEEA 39 Bistro 5 oy Vie Tew c iek spor Tor MECS ceea ero E E E T O Deaconess 40 Pioute 200 Clickitio on City Sel Sci I o a E EO A A ET E O euuletS 40 Figure 237 Bnterine A to navieate tothe tities becinnmne with the letter Nacnaureanioniiro i o E A a a 41 Fipute 256 Gapruting an imase Of the Chennai OPUN esiisa irin aha aa a EEA A A aA EAE AAE 42 Peur 2o Scupi Torc UC KING on thie chenm Omp siaina iania naa NE A AEE EELSE T ATI URATA 42 FOULS 200 Captutno an anchor images ieii ths hg stad enie ere TEE S ETE OEE ETEA E RT TETEE RE EAE a TEA TE Eai testes 43 Pioure 20 ls Savne the imaceas ANCO DNP aer E E ATA E A AT ETAT A AAO Teas 44 Pistire Z202 Capturing an imase ofthe Relative Search ATEA nara inae TERE TE EE AEAT EEO ETERA TAEA TEE E TONERA 44 Pisute 2 657 Saving the Captured image as a Relative Sear ea Aiea tinerei ienai e ANNEE EE A EA E 45 Powe 264 Bindina felative se
35. lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If Figure 2 93 Script for clicking on username bmp 15 Next type the username john in the Username text box as depicted by Figure 2 94 Record Keystrokes Keystroke Script Code KeystrokeString iohn Text String Add to Script Code gt gt Special Keys Add to Script Code gt gt Keystroke Action for Special Keys Key Press C KepDown C KeyUp Remove Script Code lt lt Type Keys as to Trace Log Cancel Figure 2 94 Keying in the user name john 16 Now to navigate to the Password field in the login page the script will have to press the Tab key on the key board Build this capability into the script by following the procedure depicted by Figure 2 95 below 65 Integrating eG Enterprise with CitraTest Type Keystrokes Bee Bee x Record Keystrokes Keystroke Script Code returnStatus Keystroke K VK_TAB KEY_PRESS Text String Add to Script Code gt gt Special Keys Add to Script Code gt gt Remove Script Code lt lt Figure 2 95 Pressing the Tab key to switch to the Password field 17 Once in the Password text box the script needs to type egurkha as the password see Figure 2 96 Type Keystrokes EEEN x Record Keystrokes Keystroke Script Code KeystrokeStringPassword egurkha Text String Add to Script Code gt gt Special Keys Add to Script Code gt gt
36. of the image will suffice This is more so in the case of images that need not be clicked on Therefore before attempting to capture an image ascertain its purpose and then proceed CitraTest TempImageName01223334 File Edit Image Capture View Window Help Use this sele i Ready fiofo 30d ER NM ES Figure 2 9 The captured Restore Desktop image 14 Save the image by clicking on the Save button on the tool bar of Figure 2 9 As already mentioned by default images captured will be stored as BMPs in the Images directory Hence by default the Images directory will open in the Save As dialog box Specify a name for the image in our example this is RestoreDesktop in the Filename text box and click the Save button in Figure 2 10 to save the image to the Images directory 12 Integrating eG Enterprise with CitraTest File name RestoreD esktop bmp Save as type Image Files bmp Cancel Zi Figure 2 10 Saving the Restore Desktop image 15 Now that the image has been saved it is now time to instruct the VB script to click on the Restore Desktop button To achieve this first minimize the image window of Figure 2 9 This will reveal the script window depicted by Figure 2 7 Now click on the clk button on the tool bar of Figure 2 7 Figure 2 11 will then appear wherein you need to select the image to be clicked on from the Image Names list box This list box will display all the images that are currentl
37. the OK button in Figure 2 147 to apply the changes and then save the newly created script With that a Login script has been created d Now create another new script for disabling screen savers In the script window that appears provide the script depicted by Figure 2 148 below and save the changes This script will now ensure that the screen savers on the system are disabled Integrating eG Enterprise with CitraTest Cial mat C cittaterst en eer eecreavet bes y i 7 vet returnStatus MoveMouse if ceturnStatus lt 29 10 gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exic Sub gt End if Roady Figure 2 148 Script for disabling screen savers Next open the main script i e the script that actually emulates a request to a client and once again select Playback Options from the Playback menu on its menu bar As before select the Log Off and On tab in the Playback Options dialog box see Figure 2 149 Then choose the Logoff Only with no Logon option click on the Apply button therein and then the OK button This will make sure that once the script execution ends the system logs off Playback Options General Results Think Time Virtual User Settings App Monitoring Integration Screen Event Handling Alerts Log Off and On Logon at Script Start Logoff Action at script end No Logoff Logoff Logon Script Fail C Logoff Logon Script Pass and Fail User ID and
38. then appear To verify whether the page has downloaded completely instruct the script to wait for the appearance of the Citrix logo on top of the 60 Integrating eG Enterprise with CitraTest page and the Done message on its status bar Since the Done image has already been captured in Example 1 proceed to capture the Citrix logo alone as depicted by Figure 2 85 Fie Edt View Favorites Took Help wtk OAA Breath roes Bred J Yh oO Address E herp 192 160 10 20 CarosMatak r amex def aut login sep Yr 2 Search web E Quit Qmyvabwot Cj canes SM Persceats Hian Sonn 7 F Welcome MetaF jetaFrame XP ora aang ics Please log in To log im to MetaFrame XP enter the credentials required and then cick Log In If you do not know your login information please contact your help desk or system BOrrerustrator MetaFrame XP Message Center The MetaFrame XP Message Center displays any informational or error messages that may occur citrix lt a a T Figure 2 85 Capturing the Citrix log image 7 Save the image as Citrixlogo bmp see Figure 2 86 CitratTest Temp bagea Jj Ee Ed phe Capture ew Wke Hep B aje e fre eey fion ar e e cm ES a eaul i ampja rien Emar mca cir 2 Roady kas he Figure 2 86 Saving the Citrix logo 8 Associate a wait for event with both the Done and Citrixlogo bitmaps using the procedure depicted by Figure 2 87 61 Integratin
39. to enable End Sub image capturing Figure 2 7 The script window When a VB script file is created an output file with the same name as the script file will also be created by default in the script file directory This output file has the extension timer csv Therefore the default output file that corresponds to the script file in our example will be SAWebSite timer csv This output file will store the availability and response time values which will later be extracted by the eG agent and reported to the eG manager Next begin capturing the images clicks and key strokes that form part of the user transactions that are to be emulated Before commencing image capturing it would help if you prepare a list of broad steps that need to be followed to access the application to be monitored These broad steps can then be broken down into individual clicks and key strokes This exercise will help you identify the shortest and the most efficient sequence of steps that will result in a valid user request Since our example involves accessing the Singapore Airlines web site the first step would be to open the Internet Explorer This in turn involves restoring the Windows desktop and then clicking on the Internet Explorer icon on it To restore the Windows desktop you need to click on the Restore Desktop button on the Windows taskbar To record this click first capture the Restore Desktop button image To achieve this first enable image captur
40. 13 Then associate a click event with the username bmp see Figure 2 92 and click the OK button therein Click Image Image Names Image Preview Flightnumber bmp FlightStatus bmp FlightStatus1 bmp GObutton bmp RestoreDesktop bmp Resultsdone bmp resultspage bmp SAHome bmp SAHyperlink bmp Schedules bmp Button Status bmp StatusResult bm Left Middle C Right Search Area Searching Timeout in Secs STANDARD_TIMEOUT Toggle Timeouts IV If multiple images are found click on the one nearest original location FlightNA bmp ni Username tos Figure 2 92 Clicking on username bmp 64 Integrating eG Enterprise with CitraTest 14 Once you return to the script window you will find that the script code corresponding to the click event has been appended to it see Figure 2 93 CitraTest D citratest Citra CitrixEx bas File Edit View Playback Scripting Results Window Help clk key log dly E D citratest Citra CitrixEx bas End If KeystrokeString http 192 168 10 28 returnstatus KeystrokeVK VK_RETURN KEY PRESS StartTimer CitrixLogin returnsStatus WaitForMultiplelImages CitrixLogo bmp Done bmp ALL IMAGES STANDARD TIMEOUT NO If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT_FAIL Exit Sub End If StopTimer CitrixLogin returnstatus ClickOnImage username bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnsStatus
41. 17 Next select the mouse button to be used for clicking on the selected image The RestoreDesktop bmp image in our example is to be clicked on using the default Left mouse button see Figure 2 11 Therefore select the Left option from the Button section Similarly since the RestoreDesktop bmp image is to be clicked only once select the Single option from the Click section see Figure 2 11 18 Finally click on the OK button in Figure 2 11 14 Integrating eG Enterprise with CitraTest 19 Upon clicking CitraTest will automatically create a script corresponding to the click event that was just configured This script will automatically appear in the script window see Figure 2 12 _ CitraTest D citratest Citra SAWebSite bas Pe lej x Eile Edit View Playback Scripting Results Window Help 8 x fl cs 8 le aklwylkey log ay a gt Wes zin Zoul Jmpl ALL Ren MsklMsklMcol ciri Sub StartScript Initsceipe returnsStatus ClickOnImage RestoreDesktop bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnsStatus lt gt SUCCESS Then AbortSeriptEx SCRIPT FAIL Exit Sub End If End Sub Ready Ln 10 NUM Figure 2 12 VB script for clicking on the RestoreDesktop bmp 20 Also note that the default termination logic of Figure 2 6 has been appended to the script see Figure 2 12 This means that if the click event fails the termination script will be invoked and scrip
42. 2 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If returnsStatus ClickOnImage addressbar bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT_FAIL Exit Sub End If KeystrokeString http www singaporeair com saa app saa returnStatus KeystrokeVK VK_RETURN KEY PRESS v 4 b Ready ho um Figure 2 31 Script for typing the URL and pressing the Enter key 43 Once the URL is typed the Singapore Airlines home page will be downloaded The next step therefore is to ensure that the page has downloaded successfully Here two images indicate the successful page download a The Singapore Airlines logo b The Done message on the status bar As we need to keep the images small capture a small part of the Singapore Airlines logo as depicted by Figure 2 32 27 Integrating eG Enterprise with CitraTest J Singapore Airlines Microsoft Internet Explorer x File Edit View Favorites Tools Help Back gt O A Al Asearch Favorites media lt 4 B 4 e Address http www singaporeair com saa app saa YI 2 2 anen GERA KrisFlyer Number or User ID PIN Member SINGAPORE AIRLINES Login a Enrol Now PIN Help About SIA KrisFhyer Products amp Services Bookings Schedules Travel info News Releases Fly NON STOP betwee Singapore and New Ye from 28 June 2004
43. Arrival City only Departure City Select a City x Arrival City Select a City Date 25 06 2004 Y dd mmyyyyy Schedules are subject to change without prior notice Flights shown do not necessarily represent all possible and available additional flights Please contact the Singapore Airlines office or your nearest travel agent for updates PIN Help Promotions Country Sites Check in Flight Status Baggage Tracing Search Web EA Gamal Q myyahoo Fj Games wr yahoo SP Personals LAUNCH sign in KrisFlyer Number or User ID PIN Member G ne Enrol Now SIA Services Wine and dine in style with a delightful selection of wines and delicious tempting treats on board Raffles Class Check it out here For the first time ever fly non stop between Singapore and New York Save up to 4 hours off travelling time from 28 June Click here to explore the premium features of our latest aircraft and a chance to win Raffles Class tickets on board the 4340 500 KrisFlyer Member s Area i gigg internet Figure 2 65 Capturing an image of the GO button 46 Integrating eG Enterprise with CitraTest 83 Save the image as GObutton bmp see Figure 2 66 _ CitraTest D citratest Citra Images GObutton bmp Z Eile Edit Image Capture view Window Help Bl me cklw key loa aly S S a gt EJS zin Zow Jmp ALL Ren Fel Msk Mak MCo Cir _
44. Cancel Figure 2 113 Pressing down the Alt key Type Keystrokes Pec eh x Record Keystrokes Keystroke Script Code returnStatus Keystroke K YK_MENU KEY_DOWN Text String returnStatus KeystrokeVK VK_F4 KE Y_PRESS Add to Script Code gt gt Special Keys Add to Script Code gt gt Print Screen ey amla g Keystroke Action for Special Keys e Key Press C KeyDown KeyUp Remove Script Code lt lt J Type Keys as to Trace Log Cancel Figure 2 114 Pressing the F4 key 35 As soon as AIt F4 is pressed a message box requesting the user s confirmation to save the changes made to the Textpad application will appear The script will have to click on the No button here By default control will rest on the Yes button in the message box To move to the No button the Tab key is to be pressed To click on the No button the Enter key is to be pressed Before performing either of these steps the Alt key that was pressed down earlier should be released To ensure this click on the key button on the 75 Integrating eG Enterprise with CitraTest script window s tool bar select Alt from the Special Keys list of Figure 2 115 select the Key Up option from the Keystroke Action for Special Keys section and then click the Add to Script Code gt gt button Type Keystrokes Record Keystrokes Text String Add to Script Code gt gt Special Keys Add to Script Code gt g
45. EOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End I StopTimer SiHome returnstatus ClickOnImage Schedules bmp LEFT BUTTON 0 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If returnstatus ClickOnImage FlightStatus bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE USE_COLOR VARIATION USE_COLOR_T If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If StartTimer FlightStatusPage returnstatus WaitForMultipleImages Done bmp Status bmp ALL IMAGES STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If StopTimer FlightStatusPage he Ready tnez Num Figure 2 49 Setting a timer for the Flight Status page 62 The script should then attempt to query the availability information pertaining to a specific flight using the Flight Status page For that the script should first enter a specific 36 Integrating eG Enterprise with CitraTest Flight Number in this page To achieve this first capture an image of a small portion of the Flight Number field Figure 2 50 reveals that the image has been captured and has been saved as Flightnumber bmp _f CitraTest D citratest Citra Images Flightnumber bmp 18 x Z File Edit Image Capture View Window Help la x a jaje ovek joje fof caf mY eTa zin zou
46. Emulate real user interactions to Web non Web services and record service availability and end to end response times gt Identify which step s of a service interaction are causing slowdowns gt Provide instantaneous alerts on service outages and slowdowns gt Faciliate root cause diagnosis and infrastructure optimization through correlation with other network server application performance indicators gt Offers a reliable cost effective way of automating routine service health checks Introduction 1 2 Architecture Typically the first step in using the eG client emulator is to record a sequence of user activities when accessing the service s to be monitored The end result of the recording process is a script that can be later played back to emulate user activity The recorded script not only includes the sequence of clicks necessary to emulate the user activity but also has information on checkpoints each checkpoint corresponds to a step in the multi step user interaction e g logging in adding to shopping cart etc To record the script eG integrates with one of the two client emulation tools Tevron s CitraTest and Seapine Software s QA Wizard A development environment for the client emulation tool is necessary to perform the recording The recorded script can be played back on a dedicated system and the results are reported as availability and response time measures for the overall playback activity In addi
47. Guide Windows Update Tn Microsoft Visual Studio 6 0 gt a CitraTest Release Notes fF Seapine Software gt Z CitraTest User Guide Winzip eG Monitoring Suite A CitraTest Fn Yahoo gt 5 Terminal Services Client MSI Yahoo Mail BB teron Agent we Yahoo Messenger cc Tevron Controller Programs ogra y Internet i Ex p lorer Citra Yahoo Messenger Documents Settings Search Windows 2000 Server Aetart e OI Figure 2 1 Opening the CitraTest console 2 To create a new script next select the New option from the File menu of Figure 2 2 _ CitraTest done l x Z File Edit Image Capture view Window Help 1al xj New clk 187 key log dly amp a gt Ea a i Zin Zou end Jmp ALL Ren Fe Msk Msk MCo Cir Open Close Save Ctrl 5 Save As gt Rename Exit Figure 2 2 Creating a new script 3 In the next screen see Figure 2 3 a Script Type and Development Type need to be selected The VU Load Test script is used for stress testing applications For measuring the availability and responsiveness of an application the default Standard Script has to be used Therefore select the Standard Script option from Figure 2 3 Then select VisualBasic 6 0 Project as the Development Type and finally click the OK button in Figure 2 3 Integrating eG Enterprise with CitraTest VU Load Test Script Select this ONLY for Virtual User load generation scripts that run i
48. Integrating eG Enterprise with CitraTest E My Documents QA Wizard My Computer Citrix Program Neighborhood Citra Ed citraTest Places Recycle Bin Cr a Vong Internet Explorer X 0064 0366 fw 0053 H 0065 start 2 E Mcira Figure 2 16 Capturing the Internet Explorer Icon 25 Upon releasing the left mouse button Figure 2 17 will appear using which the captured image is to be saved to the Images directory From Figure 2 17 it is evident that the Internet Explorer icon in our example has been saved as IE bmp see Figure 2 17 Figure 2 17 The saved Internet Explorer icon 18 Integrating eG Enterprise with CitraTest 26 Every image that is captured using CitraTest will consist of a default Click spot If a click event is associated with an image then during playback the VB script will attempt to click only on the image s Click spot If this spot is not clearly defined the VB script will be unable to click on the corresponding image and eventually the script will fail Therefore if you even slightly suspect the correctness of the default Click spot then it is recommended that you change it immediately The default Click spot associated with the IE bmp in our example has been indicated by Figure 2 18 CitraTest s il Ciba teres TE r J Ble Ek Image Capture Yew Wrk Help Mh ajem ct wiv fey fio atv eo e mp ES S tin l zou impale en Ess aaco Cir The Default Cli
49. Key Press C KeyDown KeyUp Remove Script Code lt lt Type Keys as to Trace Log Cancel Figure 2 52 Typing the flight number to be queried 65 Then click the OK button in Figure 2 52 66 Our example seeks to figure out at what time the flight number 409 leaves Chennai on the current date Therefore the Departing from radio button has to be selected next Since this option is selected by default proceed to select the city from which the flight 409 departs In other words ensure that the script selects Chennai from the City list box To click on the City list box first capture the whole part of its image as depicted by Figure 2 53 38 Integrating eG Enterprise with CitraTest 218 x Singapore Airlines Microsoft Internet Explorer A Qsearch Gyravorites media 4 D SS ww singaporeair com saa app saa ISESSIONID_WLCS_PORTAL AcM510enktb2 XdDQNPd1 NBgP2s8nIKMBIIJ7s7COEOIUKIITScBW 1412238830 1407778314 750117 Go Links Search web E Gamal my Yahoo Wk Games wr Yahoo SY Personals gt LAUNCH sionin KrisFlyer Number or User ID PIN SINGAPORE AIRLINES Login Enrol Now PIN Help yyy 412lala 8 Ze 1i J About SIA KrisFhyer Products amp Services Bookings Schedules Travel info News Releases Online Flight Services Check in Flight Status Baggage Tracing SIA Services You can easily display or
50. OA AAN OOO 71 Powe Ato Senpt torcickine om the RPAC OEDD a ee O O 71 Foure 2 t07 Captus animace of tie te Tot LSA s UUS Daiano naa OE E ONO TENN T2 Pioute 2 tOo Savino the tmage as lextpad Lide bin prrsiirinane a N r E a a ee aati R AAT 72 Poe 2 LOO W anor TODA e BIP T TA R O E OA 13 Foure 2 Or Calemlatine the time taken OC Ope niine Terp arrr ist a seca EENE T nce ota sd a cadet A ites ti 73 Foute tri pae Ane n Text a a ain a A R nine a a E E imine a a 74 Foure 2112 Senpetor type a line of Text on Txt a orrara iniaa a vox ER AE EA A A A A 74 Peraro ata PS e donnae EEES a aa A E E A T A S O R 75 Ea ANE A S ys S A E E E E A E E Serre eee ye err ter eee D Foure 2115s Rea tlie AA KET ysis sutra AEA secon ot ce bata owe E T T gala Wat wk E OE EATE O E TTE 76 Figure 2 116 Pressing the Tab key and then the Enter key to click on the No button in the message bOX esssesessesrssisrisieresrreresresrrrreresreseesees 76 Pioure 2 AI hecompleteSErpin irinen AE A E set etree E E rr ern ee ton rete TI Figure 2 118 Configuring CitraClientEmulation test for 192 168 10 28 1494 sssesssssssessesrsrssesrsrssesteresrentsresentrertsststetestsntntstentntsstntstrsesteststeresesrresent 77 Pioure 2 79 The COMPONENT EISI pate sescissctscuscestesencunstettie assy otacdansuagesteues EREE E E TE E OA O R A ONS 79 Figure 2 80 Viewing the layer model tests and measurements of the Emulated Chent sessessiseessssreseeresrssrerrsrrresresresierrsntstestenterrsresrerrereereseese
51. Password File User Name Password Figure 2 149 Logging off the system 99 Integrating eG Enterprise with CitraTest f Next at the top of the main script invoke the script which disables screen savers Finally save the main script g Then while configuring CitraTest using the eG manager s admin interface provide the path to the main script and the login script against the SCRIPT parameter separated by a comma Remember to mention the path of the main script first followed by the login script so that the scripts execute in the same order Finally save the configuration When the main script begins executing on the target server it first disables the Screen saver on the target server and then proceeds to perform its other functions Upon completion of execution the system logs off as programmed Next the login script will start running Using the specified user name and password see Figure 2 147 this script will log back into the system 100 Integrating eG Enterprise with CitraTest Conclusion The eG suite of products has been specially designed keeping in mind the unique requirements of IT infrastructure operators For more information on the eG family of products please visit our web site at www eginnovations com This document has described the purpose benefits and procedures involved in the usage of the eG Client Emulator For more details regarding the eG architecture and the details of the metrics co
52. R TE ONEA intenet Figure 2 62 Capturing an image of the Relative Search Area KrisFlyer Member s Area 44 Integrating eG Enterprise with CitraTest Note While capturing a relative search area ensure that the image to be clicked on is also captured as part of the area see Figure 2 62 In our example this is the GO button 79 Once the image is captured on to the image window instead of saving it as a bitmap select the File gt Save As gt Relative Area option to save it as a relative search area see Figure 2 63 CitraTest TempImageName012233347 8 x SI File Edit Image Capture view Window Help Sa ES PEA S i 181x i Jakke log diy EE ei EZ E Zin Zout 4 Jmp ALL Ren Msk Msk MCo Cir Image Fixed Area ce Departing from 6 Arriving at City Chennai v Date 25 06 2004 YW ddsmmiyyyy tors um Figure 2 63 Saving the captured image as a Relative Search Area 80 Figure 2 64 will then appear wherein you need to specify a name for the relative search area and bind it to the anchor image Anchor bmp see Figure 2 64 45 Integrating eG Enterprise with CitraTest Save as Relative Search Area Relative Search 4rea Name itstatus rel relative iri his Anchor Image addressbar bmp CityS elect brp Citp5 electListi bmp Done bmp DoneS4Home bmp Flightrumber bmp Flight tatus brp FlightS tatus bmp GO button bmp google bmp IE bmp
53. RSEAcuS ClickOnlmage addressbar bmp LEFT_BOTTON 1 STANDARD TINEQUT MONET Tf PeeurnSeatus t SUCCESS Then AboreScripeks SCR IPT FATL Exit Sub Ena if KeystrokeStcing HEEB SM SIndaporesir coms sees apps faa retucnuStatus Reystoomevr VE_RE TURN KEY FRESS Felurnttatias HaitForNult ipleImageaa Doneaitome bap SAHcme bmp ALL IMAGES 3ITANDAR b TE REOOT HONE Tf Pelurnsbetus lt gt SUCCESS Then AGGEESGE SPEEA SCRIPT FALL Exit Sub End If Figure 2 35 Script that will wait for the display of the Singapore Airlines logo and Done message 48 Next let us try to build into the script the capability to track the time taken by the Singapore Airlines home page to download The Timer component of CitraTest facilitates this tracking To insert a timer component first place the cursor just above the wait for 29 Integrating eG Enterprise with CitraTest script in the script window see Figure 2 35 Then click on the amp button on the tool bar of Figure 2 35 Figure 2 36 appears prompting you to provide a name for the timer that is being inserted Let us call the timer in our example SAHome Clicking on the OK button in Figure 2 36 will open the script window which will now display the code StartTimer SAHome just above the wait for script see Figure 2 37 Start Timer Timer Hame s Home Cancel Figure 2 36 Inserting the SAHome timer for tracking the download
54. SINGAPORE AIRLINES Login ea Enrol Now PIN Help About SIA KrisFlyer Products amp Services Bookings Schedules Travel info News Releases Online Flight Services Sik Saai Check in Flight Status Baggage Tracing Our Global Flight Alert Service automatically Flight Status notifies you of our daily A A 3 flight arrivals and Please provide the necessary information to one of the options R departures via email SMS below or pager anywhere around the world Click here to find If you know the Flight No and the Departure or Arrival City out more own ee l II III Promotions Departing from Aniving at eer s 1q PA City Chennai x by ANUS a Date 25 06 2004 Y dd mmyyyy t Singapore Airtines 3 w 0401 H 0083x 0580 v 0468 Boarding Pass Privileges Alternatively if you know the Departure and Arriv Experience fantastic hotel Departure City Select a City x deals at Raffles International Hotels amp Arrival City Select a City x Resorts Click here to find out how you can use your n 28 06 2004 Y dd mm yyyy boarding pass to get more than 50 discount at participating hotels Schedules are subject to change without prior notice Flights shown do not necessarily represent all possible and available additional flights Please contact the Singapore Airlines office or your nearest travel agent for updates arrescs vnier xl
55. TIMEOUT Toggle Timeouts C Double JV If multiple images are found click on the one nearest original location Denei Cancel Figure 2 40 Generating the script for moving the mouse pointer over the Schedules link 54 The generated script will be appended to the script window see Figure 2 41 CitraTest D citratest Citra SAWebSite bas File Edit View Playback Scripting Results Window Help fa Bs amp ej cik w key 109 dly amp amp had gt eE i zalu Impa Ren m Mst Msk MCol Cir E D citratest Citra SAWebSite bas 0 x Exit Sub a End If StartTimer SiHome returnstatus WaitForMultipleImages DoneSaAHome bmp SAHome bmp ALL IMAGES STANDARD TIMEOUT If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If StopTimer SiHome returnstatus ClickOnImage Schedules bmp LEFT_BUTTON 0 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortSeriptEx SCRIPT FAIL Exit Sub End If Figure 2 41 Script for for moving the mouse pointer over the Schedules link 55 Next capture the image of the Flight Status option in the Schedules menu see Figure 2 42 32 Integrating eG Enterprise with CitraTest A Singapore Airlines Microsoft Internet Explorer jw singaporeair com saa app saa Search web Ea Gamal my yahoo WS Games wahoo SY Personals LAUNCH sionin KrisFlyer Number o
56. Test 2 2 2 Configuring the eG manager to Work with CitraTest The next step is to configure the eG manager to work with CitraTest The eG manager Supports an Emulated Client component type that has been specifically designed to extract performance metrics from request emulators such as CitraTest To configure the eG manager to work with CitraTest do the following 1 2 Login to the eG manager as admin with password admin Next add the component to be monitored as an Emulated Client Therefore first select the Add Modify Servers option from the Infrastructure menu and select the Emulated Client option from the Component type list box see Figure 2 73 Jan 34 2008 12 11 41 E promie Heip signon Admin Home Configure Infrastructure Agents ADDIMODIFY EMULATED CLIENT COMPONENTS E This page enables the administrator to add a new component or modify an existing component of a chosen type Search amp Add Hew Component Component type Emulated Client There is no component available Figure 2 73 Selecting the Emulated Client component type Then click on the Add New Component button in Figure 2 73 to add a new component of type Emulated Client Provide the IP address and host name of the component in Figure 2 74 that appears In our example the component to be monitored is the web server 192 168 10 32 80 which hosts the Singapore Airlines web site Therefore provide 192 168 10 32 against th
57. ab or a setup program Send one of this project s packages to a distribution site such as an Internet server a Rename duplicate and delete your packaging and deployment 7 scripts For this project l i Close Help Figure 2 139 Closing the packaging process o If you can recall in our example a folder called Package was created where the package will be assembled at the end of the packaging process step f Figure 2 140 allows you a peek into the Package folder soon after the completion of the packaging process 92 Integrating eG Enterprise with CitraTest By Egurkha07 citratest Citra Package PAA p D EE IR lej x File Edit View Favorites Tools Help Back gt Qsearch FyFolders 4 MS GE X A Ese Address WEgurkhaO citratest CitralPackage Go Folders x a e a i ee Oc newHelp on Equrkhaserver01 e 4 SS Support File Folder 7 6 2004 5 48 PM eS Songs on Egurkha0s G CD citrixex 2 144 KB WinZip File 7 6 2004 5 48 PM Apps on egurkhaserver01 H Package g setup 138KB Application 6 18 1998 12 00 4M H E office97 on egurkhaserverO1 SETUP LST 4KB LST File 7 6 2004 5 48 PM user on egurkhaserverO1 Us This folder is Online v on egserver02 rae on
58. ar ArcA TO tie ANC MOL MIA arr ana ser nance Auten dead Nance I OTTO Sie nameuaitss 46 Pipute 209 Caputine animace Or tie GO DUON a aaa asap dasha sania casted is OESE adh acs aus ote ct E A E AE tha cate cn ta ee a arena 46 Pioure 260 Savie the GO button imase as GO buon DIP mi cts ndestninnieiahitu aaa a a winnie a aaa 47 Fioute 207 Clicking of thie GO 0 U lar ej aera ore ty tren CNR ree EETA AAAA ENT rertnT eee rT 48 Figure 2605 Script forclickine onthe GO button nieres riakina ana aesaat soni saweaunasua son Geusiunnaae ceva saatacuavda EEEa ES EE Eaa ENTERAR VEASE ENERE 48 Pere 20 k Captum amima e Ol eSI PADE sea anaa ara iE ERSE EE EEEE E OATS E TAE ESE EESE 49 Pieire 210 Waiting for the StatusKesul t bimp to appear soani nE ENTEN E A TA O 50 Pistite 2 7 1s Script fOr tecording he guci execution HITS venirii aa e EEATT EATA TEO 50 Poue 2r SP Aya OO a a O E O E O O E 51 Foote 273 Scdecimie the Biulated Cunt Component VPE aaay a Ea N N ENANTO N TA O 52 Fiure 2 74 Adding a component of type EMUlated Cen tsesen a a ade Ce 53 Foute 7 or ETOS E tO DOA NOU rd fa E E N N TTNET ONEN NEE O NON 53 Figure 2 760 Configuring the GitraClient Emulation testesneccsinsnuninni n a EE A RA A E AA R R E 54 Figure 2 7 7 Selecting the Properties Optiofisecguieineinariisniia ia a a a a e i E a a aitan 56 Fears 2 73 Allowing the service 16 Interact With FIC AES KOD sation sic andousdiuatantixesGuisopaatdoitnfoiasscndnoesaak si taevnabhcnlaneadergenandabinaaade nihea
59. ataueanay eda adectentatiotesieas TAE EEEE ANE ENARA 22 Fowe2 25 ne captuteddimave Nas ween saved as audress bar DnD anisori a E A tubeetel ed aimee rai 22 Figure 2 24 Masking the textarea ot teqvddtess Ox scsaieusen nr auch A ae antares Gt N 23 Foute 2 25 Clickine on tie Address DO kusni a a a a nie aan naa 24 Fipute 2 20 Sem pterOr CUCKIIG on the Address OX acess eat nsides cet ents atu E A A ATAA AA AA AAAA 24 Penre 227 Dy pine Cie web te s URE erisia anaE EASES R EA ARANE ATS T 25 Hiptife 7 203 Cheraumerthic SEMpe COS Otome Ce URE aana ea tapas cee EEE E EAA AEE RA ETE SANT AA 23 Foure 2 2 9 Selecting the Pinter Ee a O E ET E ha OTE nad dials alo taaieer eh ieee teas lance ene 26 Pistre 2 50 Sen pt code Toei he Enter Key Press orir ierien ira TAE EEEE EEEE n EAE EEAO OEA ATAR 26 Rictte 2 Ol Scaptor n Ana he URL and press ae E ENC Keern e T N O ZY Foure Captutine thelmace OP ihe SIO ApO Le AINES LO aca ts asst acs cio a ssa Sada ce ncaa ite dasa A ean ane GCs 28 Figure 2 59 Saving the sineapore Aitlines oso as SA OMe Din Pronus aaa inns alamo E 28 Figure 2 34 Generating a wait tor script for the SA Home and DoneSAHome Iams veisssiscsvscetesedeadorecscessexpuisdsndestevsbsrnivingeteenasuadioceeaiesnlecs 29 Figure 2 35 Script that will wait for the display of the Singapore Airlines logo and Done message esesssssissesrestssrsreresresreressrerisresrerreresreseesres 29 Figure 2 36 Inserting the SAHome timer for tracking the download time
60. ble and available additional flights Please contact the Singapore Airlines office or your nearest travel agent for updates EARN KRISFLYER MILES FASTER Only the American Express Singapore Airlines KrisFlyer Gold Crodit Card ainas unu Sn zi E eee Figure 2 69 Capturing an image of the results page 87 Save the image as StatusResult bmp Next navigate to the script window to build a script that will wait for the results page to appear To do this click on the W V button on the tool bar select the StatusResult bmp from the Image Names list of Figure 2 70 select the Wait For ANY Image option and finally click the OK button 49 Integrating eG Enterprise with CitraTest Wait For erify Image Image Names Image Preview FlightStatus bmp a FlightStatus1 bmp GObutton bmp google bmp IE bmp newyorkifk bmp StatusResult bmp Textpadicon bmo f Search Area Logic Operation NONE P E Wait For ALL Images Searching Timeout in Secs STAN DARD_TIMEOUT Toggle Timeouts Wait For ANY Image Advanced Cancel Figure 2 70 Waiting for the StatusResult bmp to appear 88 The script to the above effect will then appear in the script window Then start and stop a timer named FlightStatusCheck to record the query execution time The StartTimer code should be inserted before this wait for script and the StopTimer code should be inserted after the wait for script see Figure 2 71 C
61. ck Spot Figure 2 18 The default click on spot of IE omp 27 In Figure 2 18 the default Click spot appears as a small red dot just above the phrase Internet Explorer Say that this spot needs to be redefined To do so first click on the button on the tool bar of Figure 2 18 28 Then bring your cursor down to the IE bmp image and click on the spot that needs to be set as the new Click spot Figure 2 19 reveals the new click spot for the IE bmp in our example 19 Integrating eG Enterprise with CitraTest Bie Ed mage Cape Wee ieder Hinds mjaa afoje eoa je eJ caf me S EE E zaja farejar jeen jassa jac cir 7 The new Click Spot Figure 2 19 Defining a new click spot for IE bmp 29 Next associate a click event with the IE bmp To do so first minimize Figure 2 17 to open Figure 2 15 Then click on the clk button on the tool bar of Figure 2 15 From the Image Names list box of Figure 2 20 that comes up select IE bmp and then select the Left option from the Button section Since the IE bmp has to be double clicked choose the Double option from the Click section and finally click the OK button to generate the corresponding VB script Click Image Image Preview Image Names RestoreDesktop bmp Inkernet Explorer Button f Left Midde Right Click Search Area Searching Timeout in Secs STANDARD_TIMEQUT Toggle Timeouts ansi 7 ey a I If multiple images are found click on th
62. ck on Hotspot W Capture Screen Stop Script OF Cancel Apply Figure 2 123 The Screen Event Handling tab 2 Select the Capture Screen checkbox in Figure 2 123 click the Apply button therein and finally the OK button 82 Integrating eG Enterprise with CitraTest 3 Enabling screen capturing ensures that all messages that randomly popup during script execution are automatically captured by CitraTest Every screen so captured by CitraTest will be named as PopupScreeni PopupScreen2 etc By default the screens will be stored in the Images directory associated with the project under consideration 4 The next step is to instruct CitraTest on how to handle the captured popups For that open the captured image using the CitraTest script window see Figure 2 124 CitraT est PopupScreent l x bi a akw key iog diy 6E iy E21 w Zalu Imp ALL Ren EMs MskiMaol Cir Scan Computer started on 09 09 2004 03 35 35 PH gt nm e 08182004 Log C Documents and Settings Norton Antivirus Corporate Edition 5 Logs ia a a A rs ee Files scanned 128 viruses found 0 Elapsed time 00 08 7 Figure 2 124 Opening a captured popup 5 In the example depicted by Figure 2 124 an automatically captured popup named PopupScreenihas been opened PopupScreen1 in this example is the image of a virus scan s progress tracker In order to ensure that the virus scan does not affect script ex
63. ckOnImage Flightnumber bmp LEFT_BUTTON 1 STANDARD_TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If KeystrokeString 409 returnStatus ClickOnImage CitySelect bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnsStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If KeystrokeString c returnStatus KeystrokeVK VK_NEXT KEY PRESS returnStatus ClickOnImage chennai bmp LEFT _BUTTON 1 STANDARD TIMEOUT NONE USE COLOR VARIATION USE _COLOR_TRANSIT If returnsStatus lt gt SUCCESS Then AbortScriptEx SCRIPT_FAIL Exit Sub End If returnStatus ClickOnImage GObutton bmp LEFT BUTTON 1 STANDARD TIMEOUT fltstatus rel relative If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If End Sub hd 4 b Ready Lnz f hoe Figure 2 68 Script for clicking on the GO button 48 Integrating eG Enterprise with CitraTest 86 Once the GO button is clicked on the status of the specified flight will be made available to you To calculate the time taken for the query to execute first instruct the script to wait for the title of the results page to appear Therefore proceed to capture the page title as depicted by Figure 2 69 E 7 2 ORARIS E Singapore Airlines Microsoft Internet Explorer Bee es Favorites Tools Help x 4 Qsearch Favorites meda 4 D 3 GS ww singaporeair com saa app saa
64. ckage such as an Internet cab or a setup program Send one of this project s packages to a distribution site such as an Internet server fay ome i Rename duplicate and delete your packaging and deployment scripts For this project Close Help Figure 2 128 Specifying the path to the project to be packaged c Next click on the Package button in Figure 2 128 to bundle the CitrixEx into a distributable package d The default Packaging script is Standard Setup Package 1 see Figure 2 129 Leave it as is and click the Next gt button to proceed with the packaging Ja Package and Deployment Wizard Packaging Script Choose a packaging script From the list below Help Cancel Back Finish Figure 2 129 Choosing a packaging script 87 Integrating eG Enterprise with CitraTest e Next select Standard Setup Package see Figure 2 130 as the type of package to be created and click on the Next gt button to proceed et Package and Deployment Wizard Package Type Help Cancel Choose the type of package you want to create Package type Standard Setup Package Dependency File Description Use to create a package that will be installed by a setup exe program l 2 Finish Figure 2 130 Selecting the type of package f Specify the path to the folder where the package will be assembled see Figure 2 131 Note that for our example a folder named Packa
65. comparing the response times across each of the steps of a multi step service access administrators can detect the exact step s that could be causing user visible slowdowns Furthermore using its patented auto triage capability the eG suite is able to correlate the end to end service performance indicators provided by the eG client emulator with critical indicators of network system and application availability performance and usage to pin point where the root cause of a slow down lies Customers can use the integrated solution to improve the quality of their service offerings thereby enhancing their competitive positioning lowering their operations costs and optimizing the usage of their infrastructure tt E OPERATION REPORTS APPLICATION fl Q nara am a Application operaaccess 9000 Emulated_ client Report Type Measure Timeline Fixed Any From 09 15 2004 Hr o To 09 16 2004 Hr jo R SUBMIT CitraTest Availability CitraTest Response_time Secs m Login Page Opera_HomePage W Reservation Page OS E Login_Page Opera_HomePage W Reservation Page OS Figure 1 2 Comparing the availability and response times for each step of a service interaction Since it is capable of supporting web based or native client applications the eG suite can handle web based as well as proprietary native client applications and even thin client Citrix applications equally well 1 1 Benefits of the eG Client Emulator gt
66. cript tracking the time taken by the Singapore Airlines page for downloading 50 The Timer component then calculates the difference between the start and stop times and returns the time that the Singapore Airlines Home page actually took to download This becomes the response time of that page The timers inserted in the script will appear as descriptors in the eG suite and will report the availability and responsiveness of the pages they track in this case the name of the descriptor will be SAHome and it will report the availability and response time of the Singapore Airlines Home web page 30 Integrating eG Enterprise with CitraTest 51 The script should now try to access the page which provides the Flight status For that the script needs to move the mouse pointer over the Schedules link on the panel at the top of the Singapore Airlines page and then click on the Flight Status option in its drop down menu To achieve this first capture the image of the Schedules link as depicted by Figure 2 38 3 Singapore Airlines Microsoft Internet Explorer Fie Edt View Favorites Toots Help Hek gt DB Ah Groes meds GD oS Address http www singaporesir com saalann saa Search Web E Mat Q MyYahoo Fj Games Yr vahoo SP Personas D LAUNCH sign tn ce ua r SINGAPORE AIRUNES Fly NON STOP betwe Singapore and New Yo from 28 June 2004 Bookings Round Trip On
67. cripts from Other Systems iy ake cence cee teas sah becca elated saad Me aac daa td etcetera eed wade dod sl tet de ieee oe 85 2 9 TROUBLESHOOTING omoia eae ree are oe er tre OR re tt EE PR a Ee eNO RR Te ee a ee rene een eT een 96 CONCE USTONiiivccscticccsteacslicds cactustoeathestocdantetucnsGiedvecalauu votaddccswadadubslestnc dusduustnobessousevetucuscuasvbeacavetatuckes desuuacaseucesusceccesuedstebnesbecedoustuauscesdessstys 101 Table of Figures Figure 1 1 A service topology representation comprising of an emulated client COMPONENE ccssoniacvadanserssncaianiaomvindeiiensericnranrnris 1 Figure 1 2 Comparing the availability and response times for each step Of a service interaction oes ee eeceseeeeeeeecesececssecsesesesssseeasasscsssenenes 2 Peire Los ty picaleGeChent lt mulanon 100 Inte seat Ont save r e attrac paris E VE ne Sn ete nice A eines anneal 4 Figure 2 1s Opening the Citra Test COnS OM sscsususensesvesinesaduecevaiessbususevespussnastges vusedsotegensinyevabey ea lua evalvtmete va yenubyasinnvellehsteseynseaanvestupssaseurobegundellben MenrsoWeioberaneuuaas 7 Figure 2 27 Creating Aric SCL Obs inireseta a o a e e a a a a a i a e R a a ias 7 Fiure Z sf oclectine a Spt pe ald a Deve Opie it y persi aaa anaa a A Aa EEA AA OEA TE 8 Foure 2 45 Provicine anane and location tot the new VB pPEOJECE oerpake iei EE AEE EAR AR Ekia a ETa RR E 8 Foure 2 5 Speettyine the path tothe maces and Search Areas iras r r A N N EE T OTA ETT na bases 9 Pet
68. croll Lack Pause E EE AE Keystroke Action for Special Keps f Key Press Key Down Key Up Remove Script Code lt Type Keys as to Trace Log Cancel Figure 2 14 Adding the F5 key to the script 16 Integrating eG Enterprise with CitraTest _ CitraTest D citratest Citra SAWebSite bas Ore ee i x File Edit View Playback Scripting Results Window Help ss gt Bie i Zin Zou gt Imp ACL Ren fa l Msk Msk Mol Cir aa db ell clk key tog aiy G Sub StartScript ENLESCELDEG returnsStatus ClickOnImage RestoreDesktop bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortSceriptEx SCRIPT FAIL Exit Sub End If returnStatus KeystrokeVK VK_F5 KEY PRESS End Sub Ready Ln 11 NUM Figure 2 15 Script for pressing the F5 key 23 The script will now ensure that the Windows desktop is restored and refreshed The step to be handled next by the script is double clicking on the Internet Explorer icon on the desktop to open the Internet Explorer To achieve this an image of the Internet Explorer icon needs to be first captured and then a click event needs to be associated with it 24 To capture the Internet Explorer icon s image first press the F11 key on the keyboard to enable image capturing Capture the required icon using the same procedure explained earlier see Figure 2 16 17
69. e If not specify No Our example does not attempt to extract measures from a Citrix client Therefore provide No here Next click on the Update button in Figure 2 76 to complete the configuration Now that CitraClientEmulation test has been configured eG Enterprise will playback the specified SCRIPTFILES according to the chosen TEST PERIOD Whenever the SAWebSite script is played back the CitraTest tool will collect the availability and response time metrics for every timer configured in the script and will store these details in the corresponding OUTPUTFILES eG Enterprise will then extract the measures from the OUTPUTFILES and display them in the monitor interface 10 To view the measures in the eG monitor interface first SIGNOUT of the administrative interface 2 2 3 Starting the External Agent Refer to the eG Installation Guide for an elaborate procedure on starting the eG agent on Windows environments In our example the external agent 192 168 10 41 which is associated with the EmulatedClient component 192 168 10 32 80 will have to be started Before starting the external agent assigned to an Emulated_client ensure that the eGurkhaAgent service is allowed to interact with the desktop To do this do the following 1 Open the Services window by following the menu sequence Start gt programs gt Administrative Tools gt Services in a Windows NT environment or Start gt Settings gt Control Panel gt Compone
70. e Host IP and the Host Nick name text boxes and 80 against Port number Then select the external agent that will execute the SAWebsite script and click the Add button therein to register the changes In our example the external agent monitoring the web server 192 168 10 32 80 is 192 168 10 41 52 Integrating eG Enterprise with CitraTest Jan 31 2003 1213 23 E rrotte retp signout Admin Configure Infrastructure Agents COMPONENTS E This page enables the administrator to provide the details of a new component MEW COMPONENT DETAILS Component type gt Emulated Client Host IP 192 168 10 32 Hosttick name 192 165 10 32 Port number External agents Figure 2 74 Adding a component of type Emulated Client Note Only those external agents for which the CLIENT EMULATION capability has been enabled will be displayed in the EXTERNAL AGENTS list of Figure 2 74 Such agents cannot monitor any other component type 5 Now try to sign out of the eG administrative interface by clicking on the SIGNOUT button at the top left corner of the screen Upon attempting to sign out a LIST OF UNCONFIGURED TESTS listing the tests that are still to be configured will appear see Figure 2 75 Jan 31 2008 1213 52 Prole Heip O signout Admin E Monitor Reporter Home Configure Infrastructure gns LIST OF UNCONFIGURED TESTS E This page enables the administrator to view unconfigured tests Search Refresh Proceed
71. e Way gt Special Deals f Frome Departure Cay Tec Oestinason Cay Flight Status Make a stopover C Yes No Class Economy Class Check me tiabat of your fight Check in Online Departure 25 3 sun 2008 3 E Select Time Avett Wem 45t Sws prior to deowmre Rae 5a pona Boer me KrisShop Seipapere Arines ire Oy lree op Ho of Passongars Adults 1 hidren fo Join Sirgapore Arines Fregat Pheer Progrartere Figure 2 38 Capturing the image of the Schedules link 52 This image has been saved as Schedules bmp see Figure 2 39 CitraTest D citratest Citra Images Schedules bmp Z File Edit Image Capture view Window Help a sje Schedules Ready frofa Num S Figure 2 39 Saving the Schedules images as Schedules bmp 31 Integrating eG Enterprise with CitraTest 53 To move the mouse pointer over the Schedules link first click on the clk button on the tool bar of the script window Select the Schedules image from the Image Names list of Figure 2 40 and select the None option from the Click section Finally click on the OK button in Figure 2 40 Click Image Image Names Image Preview addressbar bmp M Done bmp _ DoneSAHome bmp google bmp f P IE bmp RestoreDesktop bmp Resultsdone bmp resultspage bmp SAHome bmp SAH yperlink bmp Schedules bmp Button Left Middle Right Search Area Searching Timeout in Secs Single STAN DARD_
72. e message For that first switch to the script window and click on the W V button on its tool bar Then select the DoneSAHome and SAHome images from the Image Names list see Figure 2 34 choose the Wait For ALL Images option and click the OK button in Figure 2 34 Wait For Yerify Image Image Names addresebar bmp Done bmp DoneS 4Home bmp google bmp IE bmp RestoreDesktop bmp Resulsdone bmp resultspage bmp SAH ome bmp S4Hyperlink bmp Search Area NONE ee err a Searching Timeout in Secs STANDARD_TIMEOUT Toggle Timeouts C wait For ANY Image Logic Operation Advanced cae Figure 2 34 Generating a wait for script for the SAHome and DoneSAHome images 47 The wait for script will then appear in the script window see Figure 2 35 T CitraTest Dc cibratest Citra SAWebSitebas a A l x I Ble Edt Yew Playback Goity Remis Window Hele i l x HI e E tk ee key log diy Be E P ub FeaceSeripe Initieripe Tecucnsceacus ClickOnimage Restorebeskcop bap If FEeTurnfeeacus gt SUCCESS Then dnareler ipecy SCRIPT FAIL Exit Sub Endl If LEFT BOTTOM 1 STANDARD TIMEOUT HONE Pelurnttatus ReystrokeVEK VE_Fa EE _ PRES Peturmkbetue Clickinimage TIE Bmp LEFT MUTTON 2 STANDARD TIREGUT HOWE Zt Petucnsietus gt SUCCESS Then ABGPrESCEApPEEX SCRIFT FALL Exit Sub End If FETUE
73. e one nearest original location mean Figure 2 20 Clicking on the IE bmp 20 Integrating eG Enterprise with CitraTest 30 Figure 2 21 will then appear bearing the VB script that was automatically generated for the above mentioned condition 18 x 18 x fa Mer Msk Me Cir _ CitraTest D citratest Citra SAWebSite bas Fie Edit View Playback Scripting Results Window Help W eI a wjkey ioo ar 6 Sub StartScript InitSceript returnsStatus ClickOnImage RestoreDesktop bmp LEFT_BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If returnStatus KeystrokeVK VK_F5 KEY PRESS returnStatus ClickOnImage IE bmp LEFT BUTTON 2 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If End Sub Ready Ln 11 NUM Figure 2 21 Script for double clicking on the IE bmp 31 Here again note that the default termination logic has been appended to the script 32 The complete script now takes care of restoring the desktop refreshing it and double clicking on the Internet Explorer icon on the desktop When the IE icon is double clicked naturally the Internet Explorer window will open Once the IE window opens the URL of the Singapore Airlines web site should be entered in the Address box of the window so that the web site is accessed T
74. ea NONE He Searching Timeout in Secs STAN DARD_TIMEOUT Toggle Timeouts C Wait For ANY Image Advanced Cancel Figure 2 101 Waiting for Applicationstext bmp and Done bmp 23 Now the login time will have to be measured To ensure this start a timer named CitrixConnect before the wait for script and stop the timer after the wait for script The script will be updated accordingly see Figure 2 102 _ CitraTest D citratest Citra CitrixEx bas Z Eile Edit View Playback Scripting Results Window Help clk W key log dly amp End If StopTimer CitrixLogin returnstatus ClickOnImage username bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If KeystrokeString john returnstatus KeystrokeVK VK_TAB KEY PRESS KeystrokesString egurkha returnstatus KeystrokeVK VK_TAB KEY _PRES55 KeystrokesString chn returnstatus KeystrokeVK VK_TAB KEY PRESS returnsStatus KeystrokeVK VK_RETURN KEY PRESS StartTimer CitrixConnect returnstatus WaitForMultiplelImages Applicationstext bmp Done bmp ALL IMAGES STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If StopTimer CitrixConnect End Sub Ready ln 58 Figure 2 102 Script for calculating the login time 69 mum Integrating eG Enterpri
75. ecution CitraTest has to minimize the progress tracker To achieve this the Minimize button of the tracker has to be set as the click spot of PopupScreen1 To do this click on the button in the tool bar of Figure 2 124 and then click on l in PopupScreen1 Then save the PopupScreen1 image Next open the Screen Event Handling tab once again see Figure 2 125 Use the Add gt gt button in Figure 2 125 to add PopupScreen1 bmp to the Image Names list Then select the added image and click the Click on Hotspot check box in Figure 2 125 Finally click the Apply button and then the OK button to save the changes 83 Integrating eG Enterprise with CitraTest Playback Options eee ais x General Results Think Time Virtual User Settings App Monitoring Integration screen Event Handling Alerts Log Off and On Image Names gt gt Remove Event Action W Click on Hotspot M Capture Screen l Stop Script OF Cancel Apply Figure 2 125 Adding a captured image to the Image Names list Sometimes you might be aware of the messages that may popup in the course of script execution For example if a virus scan is scheduled to take place at 1 PM daily then you would be aware that the progress tracker will appear at 1 PM every day This is sure to disrupt script execution In such a case you can manually capture the image of the progress tracker and then proceed in the manner discussed below 1 Open the Screen Event
76. el Figure 2 116 Pressing the Tab key and then the Enter key to click on the No button in the message box 76 Integrating eG Enterprise with CitraTest _ CitraTest D citratest Citra CitrixEx bas File Edit Yiew Playback Scripting Results Window Help E D citratest Citra CitrixEx bas If returnStatus lt gt SUCCESS Then AbortsSceriptEx SCRIPT FAIL Exit Sub End If StopTimer TextpadOpen KeystrokeString This is the Textpad application that has been published on the Citrix server returnStatus KeystrokeVK VK_MENU KEY DOWN KeystrokeString f returnStatus KeystrokeVK VK_MENU KEY UP returnStatus KeystrokeVK VK_MENU KEY PRESS returnStatus returnsStatus KeystrokeVK VK_TAB KEY PRESS KeystrokeVK VK_RETURN KEY PRES5 Figure 2 117 The complete script 37 With that request emulation is complete Now compile the script by clicking the os button on the tool bar of Figure 2 117 Once compilation becomes successful run the script by clicking on the gt button 2 3 2 Configuring the eG manager to Work with CitraTest Since the component to be monitored in our second example is the Citrix server 192 168 10 28 1494 add this server as an Emulated Client The procedure for adding an Emulated Client has already been dealt with in Example 1 Therefore let us proceed to configure the CitraTest for the Citrix server 192 168 10 28 1494 To achieve this do the following
77. ephone network In such infrastructures it is imperative to determine in real time when service failures or slowdowns problems occur and to accurately pin point which step s in the service access are impacting the end user experience Speedy problem detection and accurate diagnosis can reduce service downtime and the consequent business impact of critical IT services eG s client emulation and monitoring capability goes well beyond basic protocol level up down testing IT administrators can record typical user accesses to mission critical infrastructure services and later have eG agents periodically playback the recorded accesses using the exact same client applications that users employ to access a service The eG client emulator effectively simulates multi step user interactions with a service e g login browse submit data fill in forms etc By collecting availability and response time statistics for the complete service interaction and comparing the metrics with time of day auto generated or administrator defined fixed thresholds the eG client emulator immediately alerts administrators during potential service outages or slowdowns lt lt micros opera SERVICES TRANSACTIONS 0 FR M a R ER a sainga operaaccess 9000 operawebserver 3 operaformsserver opera_app_server operadb 1521 ope 0 ra operareports Figure 1 1 A service topology representation comprising of an emulated client component Introduction By
78. es 80 Fiure 2121 Viewine the messures reported by te C tir x Toril TTC inira n A a a EEAS AAAA 81 Rioure 2 122 The umer log fileof the Citir Ex SCE sa sinaoni aina a a Eie T ETE A EEEE EREA ETE E ENEE RAAST iS 81 Pioute 2 125 he screen Event Hlanedllitne taB Aia aTa AA N E T ie Sera cavel nail AT AE AEA ATE 82 Fiure 2124 Openine a Cap ed PODU aeania EEEE OE E laut ileus sats TE E ETATO 83 Fieure 2125 Addnca captured imase 10 emae Names iS Ee a O O AOE Svaleinatiaarodsdeyanit 84 Figure 2 126 Adding the progress tracker smace to the Image Names istoriis aana RaT E ASNA E AT 85 Figure 2127 Starting Me Packaccand Deployment Wizard sais nisi entrails acini a a a a a aT 86 Fipure 2128 Speciyine the path to the project to be packaged westii inaia Ena a E EE EAE R a 87 Pivtite 2I Choo dea pae kao ne Sepi a a EA E E AE E EA AAEE aA 87 Ponet O02 Sekeni by ert PAC Ae cats utters tet bth beat dada eh sth attends ac de span eaten std eh E E EET 88 Ficure 2 lol Specitying the location where the package will be assembled waitin sss A eT mena tou sinatinad aul ined Anita A 88 POC 2132 Ettor Message nini einen E N EAEE E aE a E A a N eiea aiai e a E E E 89 Poire 2150 Diles that aor Patt On tie Pac AOC a T T E Aas eas nN neal ae red asa 89 Figure 2 134 Figure 2 135 Figure 2 136 Figure 2 137 Figure 2 138 Figure 2 139 Figure 2 140 Figure 2 141 Figure 2 142 Figure 2 143 Figure 2 144 Figure 2 145 Figure 2 146 Figure 2 147 Figure 2 148 Fi
79. g eG Enterprise with CitraTest Wait For Yerify Image Image Names i Image Preview addressbar bmp Anchor bmp chennai ornp Citiis Logo bmp CityS elect bmp CitySelectList bmp Done bmp DoneSAH ome bmp Flightl 4 bmp Flighthiumber brip FlightStatus bmp FlightS tatue brap GO button brp google bmp IE bre E Search Area NONE F Scat tS Mei E STANDARD_TIMEQUT Toggle Timeoute Wait For ANY Image Advanced Logic Operation cae Figure 2 87 Waiting for the Done and Citrixlogo images 9 The script will reflect the recent changes see Figure 2 88 _ CitraTest D citratest Citra CitrixEx bas File Edit view Playback Scripting Results Window Help clk W key log dly amp E D citratest Citra CitrixEx bas returnStatus ClickOnImage addressbar bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortSceriptEx SCRIPT FAIL Exit Sub End If KeystrokeString http 192 168 10 28 returnsStatus KeystrokeVK VK_RETURN KEY PRESS returnstatus WaitForMultiplelImages CitrixLogo bmp Done bmp ALL IMAGES STANDARD TIMEOUT No If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If Figure 2 88 Script for waiting for the Citrixlogo bmp and Done bmp 10 To calculate the time taken to connect to the Citrix login page place the cursor on top of the wait for script see Figure 2 88 and inser
80. ge Files CitraTest dll COMINNT systems CitrixEx exe De citratest Citra COMOLG32 OCH CAMWINNTisystem32 MSCOMCTL OCe CAMWINNTisystem32 SETUP EXE C Program een a rer Ima ae lIr rml Lew i a Figure 2 133 Files that form part of the package i You can create one large cab file or multiple cab files for a package For our example however choose the Single cab option and click the Next gt button to proceed see Figure 2 134 89 Integrating eG Enterprise with CitraTest Ja Package and Deployment Wizard Cab Options You can create one large cab file or multiple cab Files For your package IF you are going to distribute your application on Floppy disks vou must create multiple cabs and specify a cab size no larger than the disks you plan to use Choose the appropriate option below Cab options f Single cab i Multiple cabs ab size 1 44 mB Help Cancel Finish Figure 2 134 Indicating the number of cab files to be created j The package will consist of a Setup exe which when executed on the system on which the script needs to be played back copies the bundled dll s and exe s to that system In Figure 2 135 therefore specify the title to be displayed when the Setup exe is run on the destination system Then click the Next gt button to continue et Package and Deployment Wizard Installation Title Installation title CitrixEx Help Cancel Fin
81. ge has been created for this purpose The path to the Package folder has been provided in Figure 2 131 t Package and Deployment Wizard Package Folder Help Cancel lt Back Package Folder citratest CitralPackage AD 5d Daa r A citratest Citra Network Mew Folder Finish Figure 2 131 Specifying the location where the package will be assembled g While the packaging is in progress you might receive an error message depicted by Figure 2 132 This error will not hamper the packaging process or its output Therefore ignore it by clicking on the OK button see Figure 2 132 Integrating eG Enterprise with CitraTest Missing Files AN These files are needed For this package but cannot be Found Click Browse to locate the filets or OK to proceed without the filets Missing files Title CitrixE x cm tee Figure 2 132 Error message h Next Figure 2 133 will appear listing all the files dll s and exe s that have been included in the package To add more files to the list click on the Add button therein Since our CitrixEx package does not include additional files simply click the Next gt button to proceed e Package and Deployment Wizard Included Files The Files in the list below will be included in your package Click 4dd to include additional files Clear the checkbox to the left of the File name bo remove a File From the packa
82. gure 2 149 Indicate tie numberotcabtiles to De created innri sec tetied cues lap nadaalsnuyaultueSehuatiacsae EEA anette 90 Bhterinectne titleOr ie semi pr Oo TA vanity tor naan RTE in hot aah ATORO 90 Changing the mstalllocaton ot me dlls and CXE S seis esr ara n aE NEE TNE aang A EN alae aes 91 Indicating whether fil sare to be installed as shared tiles OF Notinniteinin a a A O 91 Savine the session rinisrinid ii ce ned esse vaste E A A a A a a T a a a aaa aaa iie 92 Closino the pakaot PLO CES ses asd coouacestiaseibana iv tnailacsds sad tenes ETTE R TREASA ROS ENEAN EA EADARRA EEEE EN AERA EER EAEE 92 The coneis ort the Packar olde Ennen Aa cd E E E ENEA E EE toners drssts ieb east oaatha te 93 Welcome screen ort the packave installation program nienia a NTT EOT A A ATTA es 94 COMMENCING installaton ot LAS SONWANE S EE NAE TAEAE 94 TRC ale Ww CLOUD OS Prora O er a O O 95 Message on COMIC CIO TOT set prsssror taninai y ai aA RA T A N A E R E 95 Chanve the image searchyand Tont Paths oea en aa aaa a aa a a O EN 96 CDCI Te SCE fob yA E A O N T A A ceaahoenees 97 Searbh Eon ON aad OTOPIO N S einai ieai naa A E ERTE E S A 98 DIC PIE E aE BINETA E S SANS Era AE N E E A aa E E herein 99 korone OA NES Ean aE T E T TATE AOE E E T E TO OE T NA 99 Introduction Introduction As IT infrastructures evolve into being business critical high availability and peak performance of the IT infrastructure is becoming as critical as reliability is to a tel
83. hanges Integrating eG Enterprise with CitraTest Jan 31 2008121904 protie heip signout Monitor E 192 168 10 28 1494 gt CitraClientE mulation E Cire Connect E CitrixEx_Total Client Service E CitrixLogin E Textpadapen EJ client service search JO E CitrixClientEmulation CitrixEx_Total 4 DETAILS 4 REMOTE CONTROL HELP E availability 3 bire amp E Response me Sece 37 100 pen amp Figure 2 121 Viewing the measures reported by the CitrixEx_Total timer 6 To verify the correctness of the reported values switch to the system hosting the CitraTest Development environment and open the CitrixEx script in the script window Then open the Timer log by following the menu sequence Results gt View Timer Log 7 The CitrixEx timer log file of Figure 2 122 reveals the start time end time and the duration of every activity performed by the CitrixEx script According to Figure 2 122 the duration of the timer CitrixConnect is 7 7 seconds Note that the eG monitor interface of Figure 2 120 reveals the same value De votrabest Citra Citrin Em timer tog Setipt Action 4 O491 2008 1233375 StatTimer CinEx 10 OUSV2008 1233416 StailTines CitizLogn 11 OVSV2008 1233494 StopTimer CinsLogin 12 NAV2008 1431494 ObrelogmDurbonis 7 8 secs ELE OVSW2008 1733 509 StatTime Ciis Connec 14 OVSV2008 12 33 5825 StopTimer CinxConnect 415 OVGV2008 1232 566 Olrelonnect Dursho
84. he URL is http www singaporeair com saa a 33 The first step towards typing the URL in the Address box of the Internet Explorer is to click on the Address box To achieve this first capture the image of the Address box by pressing F11 to enable image capturing and proceeding in the manner depicted by Figure 2 22 below 21 Integrating eG Enterprise with CitraTest A about blank Microsoft Internet Explorer l 8 x Fie Edit vew Favorites Tools ale Search web gt attempting to retrieve buttons from Yahoo Mstart I wo Figure 2 22 Capturing the image of the Address box 34 Figure 2 23 reveals that the image has been captured and has been saved as addressbar bmp CitraTest D citratest Citra Images addressbar bmp Z File Edit Image Capture View Window Help Address about blank Figure 2 23 The captured image has been saved as addressbar bmp 35 Typically the Address box will contain the default URL to connect to As soon as the Internet Explorer opens it will try and connect to the default URL only This default setting is system specific i e it will vary from one system to another In our example 22 Integrating eG Enterprise with CitraTest 36 the default URL is about blank see Figure 2 23 If the same script is executed on another system it will look for about blank in the Address box of the IE in that system
85. ilability This relates to the availability of the page i e whether a page has downloaded successfully or not In Windows Applications this relates to whether the step has executed properly or not It is expressed in terms of percentage 100 if the download is a Success and 0 if not A variation of this is for the availability of all the steps in total if even 1 step has failed the total availability is 0 Response time Secs This relates to the time taken for the page to download or the step to execute If the total availability is 0 then the response time 58 Integrating eG Enterprise with CitraTest SF is set as unknown else it is expressed in secs 2 3 Client Emulation for a Citrix Application The second example consists of a Citrix farm comprising of a Citrix server 192 168 10 28 1494 Assume that a Textpad application has been published on this Citrix server The script to be built should access the Citrix server through the web and should try to open the Textpad application on it In addition the script should key in a few words in the Textpad and close the application without saving the changes 2 3 1 Building a Script File Let us now begin script building 1 Create a new VB project named CitrixEx using steps 1 6 of Example 1 2 Since the Citrix server has to be accessed through the web once again the Internet Explorer needs to be opened Since these procedures have been dealt with e
86. ing by clicking on the button on the tool bar of Figure 2 7 Once image capturing is enabled the mouse cursor will change to resemble a plus sign Now switch to the Windows desktop place the cursor on the left top corner of the Restore Desktop button click there using your left mouse button and then with the left mouse button pressed drag the cursor until it covers the entire Restore Desktop button see Figure 2 8 As you drag a dashed line will appear indicating the area that has been covered 10 Integrating eG Enterprise with CitraTest ie ie Ed QA Wizard Citrix Program Neighborhood My Network CitraTest Places Recycle Bin a Internet Explorer The Restore Desktop button Figure 2 8 Capturing the image of the Restore Desktop button 12 While the image is being captured a small window will appear indicating the X and Y coordinates defining the current position of the image the width of the image and its height see Figure 2 8 13 Once you release the left mouse button you will return to Figure 2 which will now display the captured image see Figure 2 9 11 Integrating eG Enterprise with CitraTest Note Remember the following while capturing an image It is recommended that you keep the images small Larger the image longer the time taken for script execution It is not always necessary for you to capture an entire image Sometimes capturing a small portion
87. ish Figure 2 135 Entering the title of the setup program k You can change the location to which the bundled dll s and exe s are to be copied by modifying the macros displayed in the Install Location column of Figure 2 136 Then click the Next gt button to continue 90 Integrating eG Enterprise with CitraTest t Package and Deployment Wizard Install Locations You can modify the install location For each of the Files listed below by changing the macro assigned to the File in the table IF desired vou can add subfolder information to the end of a macro as in ProgramFilesiMySubFolder Choose the file you want to modify then change the information in the Install Location column Files Install Location CitraTest dll COMMINNT s stemse C WwinSysPath CitrixEx exe De citratest Citra 4ppPath COMBLGS2 0CK CAWINNT systems iWinSysPath MSCOMCTL OCY CH WINNTisystem32 tevron dll COMINNT s stemse WwinSysPath Help Cancel lt Back Finish Figure 2 136 Changing the install location of the dll s and exe s Using Figure 2 137 that appears next indicate whether the listed files are to be installed as shared files or not If a file is to be shared by another program indicate the same by selecting the check box against the file name in Figure 2 137 As the displayed CitrixEx exe file need not be installed as a shared file simply click the Next gt button to proceed with the setup
88. ite 20 Tine erat Cera tl On LOS Cie eia E RRA EE E da Uber ana bia aD 9 Ponte The CCG We OW a saipacnss x Saseesaasactctan aes T eatane a ed eae pata anon eae ee dm a ens Sait aca boca aas 10 Fiare 7 8 Capturing the mace of the Restore Desktop buton eienaars aini cata sis dao cha ENEE AAEE a ay aca E E nt 11 Foute 2a The captured Restore Desktop AA Onna a a e a AA A 12 Pioute 2 10 Savine the Restote Desktop Imine rinii innia ars ul san nda NN O TA A EAA OA 13 Feare 2 ti Clickine on tie Restore Desktop DUON asirin ra EN NiE ANEA EHAE EATE E EEA ai tare ease 14 Foute 2 122 D seipi tor clicking on the Restore Desktop bin piiwdcessunstiriveserseamiiicticiiediinntauilinrdiedenadlinat a a a a aa 15 Fioute 213 Selecun e the FoK arri araa i aA E EEEE TE NAE N TAEA 16 Feurc zA Adding the FI ky tothe Sepia taa ne eNe e a tions TREA OAE AEAEE AA E AE 16 Poe at SCAPE OE Pre SS aoe E Cy aa O NA E E 17 Figure 2 16 Capturing tie Internet Explorer Icon sscsssssaconisisiiieniiini a ci a R R EEEE T E RA aety 18 Foute Arr he saved EnC 2 xploreriCOn nisin a aA E A N Lite E A E eater atid 18 Piotire 219 Thederlt tick on spot ot IE DMP entanas aaa E O A A O AEN A RAN 19 Fene 2I Donme a new tick Spot For UF Dpue OEE A a AA OAE EAE RESE AAAA 20 Powe 2a Gicknr onthe TE Dpr EE E T a ret TE A erry tr 20 Pour 2 21 Script tor doubleselickime orr the TE Birer iara aan ETA AE NATATAE AEN ATOA 21 Pioure 2 22 Capito the mec or the Address DOR hits ctw os cones chysns Yanbuanscie
89. itraTest Dc citratest Citra SAWebSite bas la End Ig KeystrokeString 409 returnSctatus ClickOniImage CitySelect bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then 7 a AbortScriptEx SCRIPT_FRIL Exit Sub End If KeyetrokeString c returnStaetus ReystcokeVkK VK_NEXT KEY PRESS returnStetus ClickOnimage chennal bmp LEFT BUTTON 1 STANDARD_TINEOUT NONE USE COLOR VARIATION USE_COLOR_TRANSIT If re eturndteatus lt gt SUCCESS Then AbortiScrapt amp x SCRIPT FAIL Exit Sub End If r eturnStatus ClickOnimage GObutton bmp LEFT BUTTON 1 STANDARD TIMEOUT fitstatus rel relative If returnSctatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If StartTiser AvaslabilityMNessage returnStatus UaictForImage Startuskesult bep STANDARD TIMEOUT NONE If returnScacus lt gt SUCCESS Then z AbortScriptEx SCRIPT_FRIL Exit Sub End If StopTimer AvailabilityNesszage End Sub Le Ready laz NM Figure 2 71 Script for recording the query execution time 89 With that request emulation is complete Now compile the script by clicking the ES button on the tool bar of Figure 2 71 Once compilation becomes successful run the script by clicking on the gt button Note You are advised to compile and execute the test script at various stages of development so that issue
90. laborately in Example 1 let us look at what needs to be done once the IE window opens 3 Now that the IE window is open key in the URL of the Citrix client to connect to 192 168 10 28 in the Address box Prior to that the cursor must be positioned inside the Address box To instruct the script to do the same capture an image of the Address box and associate a click event with it This again has been explained in great detail in Example 1 The next step therefore is to type the URL For that open the script window click on the key button on its tool bar and enter http 192 168 10 28 in the Text String text box see Figure 2 82 Then click on the Add to Script Code gt gt button adjacent to the text box to add the equivalent script code to the Keystroke Script Code box Then click the OK button in Figure 2 82 Type Keystrokes Oe x Record Keystrokes Keystroke Script Code KeystrokeS tring http 7 192 168 10 28 Text String Add to Script Code gt gt Add to Script Code gt gt Left Keystroke Action for Special Keys Key Press C Ke Down KeyUp Type Keys as to Trace Log Cancel Remove Script Code lt lt Figure 2 82 Keying in the URL of the Citrix client 4 Next ensure that the script presses the Enter key on the keyboard see Figure 2 83 59 Integrating eG Enterprise with CitraTest Type Keystrokes Record Keystrokes Keystroke Script Code returnStatus Keystroke
91. llected by the eG agents please refer to the following documents gt A Virtual Private Monitoring Solution for Multi Domain IT Infrastructures gt The eG Installation Guide gt The eG User Manual gt The eG Measurements Manual gt The eG Customization Manual We recognize that the success of any product depends on its ability to address real customer needs and are eager to hear from you regarding requests for enhancements to the products suggestions for modifications to the product and feedback regarding what works and what does not Please provide all your inputs as well as any bug reports via email to Support eginnovations com 101
92. lly copied to the destination system to playback the script 2 9 Troubleshooting If a script fails even after successful compilation then check whether NET Framework 1 1 was installed on the host using which the script was developed If so then check whether the Service Pack 1 for NET Framework 1 1 was also installed on the host Without this service pack the script will not work properly despite getting compiled successfully Therefore ensure that Service Pack 1 is also installed When a script involving ICA sessions fails due to an unexpected error in the session then subsequent executions of the script will also fail This is because when a script on ICA sessions fails for the first time the point of failure of the script is retained During subsequent executions of the script therefore the ICA session opens at exactly the point of failure causing the script to fail yet again To solve this issue ensure that once a script abnormally terminates it logs off from the ICA session Logging off closes all the applications so that the next time the script executes it opens the ICA session at the right place If recording and playback both are attempted on the Terminal Client a session should remain open for the proper execution of the script To make sure that script execution is not disturbed it is recommended that the system on which the script executes is left unlocked and the screensavers disabled Alternatively you can co
93. mage Preview hee esktop bmp bi ih Button f Left Middle Right Click None Single Search Area Searching Timeout in Secs STANDARD_TIMEQUT Toggle Timeouts rae a IY f multiple images are found click on the one nearest original location Advanced Double rea Figure 2 25 Clicking on the Address box 38 A script to the above effect and the default termination logic will then appear in the script window Now proceed to type the URL of web site in the Address box To do so first click on the key button on the tool bar of Figure 2 26 _ CitraTest D citratest Citra SAWebSite bas ew ial xi Z Eile Edit View Playback Scripting Results Window Help 18 x E Ba db ell clk W key log dly gt fo amp Zin Zou j gt imp ALL Ren m Mekmek Go Cir InTECoOcEL pt returnsStatus ClickOnImage RestoreDesktop bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If returnStatus KeystrokeVK VK_F5 KEY PRESS returnstatus ClickOnImage IE bmp LEFT BUTTON 2 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then 4bortSeriptEx SCRIPT FAIL Exit Sub End If returnsStatus ClickOnImage addressbar bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then 4bortScriptEx SCRIPT FAIL Exit Sub End If n A Ready Ln
94. n Board Services inflight Entertainment Date 25 06 2004 Y dd mm yyyy Go For the first time ever fly amp Communications non stop between Singapore For Your Travel Comfort and New York Save up to 4 hours off travelling time KrisShop from 28 June Click here to Alternatively if you know the Departure and Arrival City only caplarechainranniumn features of our latest Departure City Select a City x aircraft and a chance to win 2 Raffles Class tickets on Anival City Select a City z board the A340 500 Date 25 06 2004 Y dd mm yyyy cod Figure 2 46 Capturing the image of the page title Flight Status 59 Save the image as Status bmp Instead of capturing the Done image again let us use one of the existing Done images Now instruct the script to wait for both these images by first clicking on the W V button on the script window s tool bar Then select the Status image and any of the Done images and click on the Wait For ALL Images option Finally click the OK button Wait For Yerify Image Image Hames Image Preview addressbar bmp Done bmp DoneS4H ome bmp FlightS tatus brp google bmp IE brp RestoreDesktop bmp Resulsdone bmp resuitspage bmp 54Home bmp S4Hyperlink bmp Schedules bmp Status bmp Search Area NONE an N N ae E ees STANDARD_TIMEOUT Toggle Timeouts Wait For ANY Image Advanced Logic Operation cae Figure 2 47 Waiti
95. n situations where a page element to be clicked on is very similar in both name and appearance to another element in the same page the probability of a script failure is very high as the test script might fail to differentiate between the two elements This is where the concept of a Relative Search Area comes into play Relative Search Areas are used to limit the image and text recognition logic to a specified region of the screen When a specific region in a page is set as a Relative Search Area and this area is assigned to an image to be clicked on then during playback the script will search only this region for the image In our example note that the Flight Status page consists of two GO buttons see Figure 2 58 In order to enable the script to tell one from the other let us define a Relative Search Area The on screen position of relative search areas during script playback is tied to a relative reference anchor image Therefore let us begin by capturing the anchor image An anchor image should be from the same page as the relative search area Any of the existing already captured images from that page can be used for this purpose For our example however let us capture a new anchor image in the manner depicted by Figure 2 60 Z Singapore Airlines Microsoft Internet Explorer EE File Edit View Favorites Tools Help Kal Back gt gt gt amp fat Qsearch Favorites PMedia lt 4 B S e Address g http www singaporeair c
96. nfigure the script to automatically log off the system when script execution completes and log back in before the script begins executing Screensavers can also be controlled in a similar manner To ensure this do the following Integrating eG Enterprise with CitraTest a Open anew script window see Figure 2 146 and then select Playback Options from the Playback menu on its menu bar Finely Ln 4 HUM Figure 2 146 Opening a new script window b Select the Log Off and On tab in the Playback Options dialog box see Figure 2 147 Next select the Logon at Script Start check box and proceed to provide a valid User Name and Password using which this script can login to the system Then specify a name for the User ID and Password file that will store the authentication information A file with the specified name and extension pwd will be created by default in the same directory as the script 97 Integrating eG Enterprise with CitraTest Playback Options Bee R x General Results Think Time Virtual User Settings App Monitoring Integration Screen Event Handling Alerts Log Off and On MV Logon at Script Start m Logoff Action at script end C Logoff Logon Script Fail Logoff Logon Script Pass and Fail C Logoff Only with no Logon User ID and Password File win2k pwd User Name Password john MRK Figure 2 147 Setting the Log Off and On options c Finally click the Apply button and then
97. ng a Script The chapters that follow will discuss how eG is integrated with each of the Client emulation tools i e CitraTest and QA Wizard Integrating eG Enterprise with CitraTest Integrating eG Enterprise with CitraTest CitraTest is an automated performance testing tool for Web and non web based Windows applications This tool emulates a user request to an application by recording the sequence of visuals mouse clicks and keystrokes that constitute a typical user access in a VB script file When this script is executed the recorded sequence is replayed and the availability and response time of the application are measured 2 1 Steps for Integrating eG with CitraTest The primary steps involved in the eG CitraTest integration are installing the CitraTest Development environment and building a script file using it To ensure a smooth and effective integration CitraTest v5 0 or v6 06 needs to be installed For downloading the CitraTest installable refer to the URL http www tevron com download asp For an elaborate installation procedure for CitraTest refer to the CitraTest manuals Note Since CitraTest emulates real user transactions by opening client applications and emulating user clicks on the client application CitraTest requires complete control of the desktop of the system on which it executes Therefore CitraTest should be installed on a dedicated system The key prerequisites for installation include
98. ng for the Done and Status images 35 Integrating eG Enterprise with CitraTest 60 Note that the script window of Figure 2 48 reveals the code for waiting for the Done and Status images _f CitraTest D citratest Citra SAWebSite bas File Edit wiew Playback Scripting Results Window Help m Msk Msk MCo Cir returnStatus ClickOnImage Schedules bmp LEFT_BUTTON 0 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If returnStatus ClickOnImage FlightStatus bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortSceriptEx SCRIPT _FAIL Exit Sub End If returnStatus WaitForMultipleImages Done bmp Status bmp ALL IMAGES STANDARD TIMEOUT NON If returnStatus lt gt SUCCESS Then AbortSceriptEx SCRIPT _FAIL Exit Sub End If Figure 2 48 Script for waiting for the Done and Status images 61 As before track the time taken by the Flight Status page to download by starting and stopping a timer named FlightStatusPage see Figure 2 49 7 CitraTest D citratest Citra SAWebSite bas Fie Edit view Playback Scripting Results Window Help W e ck wr fiey tos ay O 6 ii StartTimer SiHome 18 x gt Blo i Zi Zou Impan Ren Fa Mst Msk MCo cir 2 returnstatus WaitForMultipleImages DoneSAHome bmp SAHome bmp ALL IMAGES STANDARD TIM
99. nis 77 secs NE 01A1200g 1233540 StatT imer Tertpad pen i OVGW2008 12 34 90 3 StopTimer TexlpadOpen 418 OVSW2008 1234703 TextpadOpen Duration i 71 3 pecs 15 OUSs2008 1234346 StopTimer CrnxEx e OVAV2008 1234946 Clee x Duration is 57 1 sees lt q_ Figure 2 122 The timer log file of the CitrixEx script 81 Integrating eG Enterprise with CitraTest 8 Similarly note the value displayed against CitrixEx Duration in Figure 2 122 This is the same as the value of the Response time measure of the CitrixEx_Total timer 2 4 Tips for Effective Client Emulation 2 4 1 Handling Random Popups and Dialogs During script playback some messages popup suddenly causing script execution to terminate For example error messages virus scans etc In order to ensure that script execution is not disturbed these message popups need to be handled as Exceptions Typically it would be difficult for a developer to determine what these messages are and when they popup Under such circumstances adopt the methodology described below to handle the popups 1 From the CitraTest script window select Playback Options from the Playback menu From the Playback Options dialog box that appears select the Screen Event Handling tab see Figure 2 123 Playback Options es General Results Think Time Virtual User Settings App Monitoring Integration screen Event Handling Alerts Log Off and On Image Hames lt Add Event Action Cli
100. nside a WU Session Development Type Visual Basic 6 0 Project C Yisual Basic NET Project Visual Basic 2003 NET Cancel Figure 2 3 Selecting a Script type and a Development type 4 Next Figure 2 4 will appear prompting you to specify the name of the new VB script that is being created and the directory to which it should be saved Let us name the VB script in our example as SAWebSite Specify this name against the File name text box of Figure 4 and click the Open button therein Filename 5AWebSite vbp Files of type Aaea baat ma Cancel Figure 2 4 Providing a name and location for the new VB project 5 Next specify the directories to which the images to be captured and the search areas to be defined need to saved A Search Area is defined when a specific area in a page needs to be searched for the existence of an image By default the images and search areas will be stored in the same directory as the VB script file You can change the location for the images and search areas if need be using Figure 2 5 A default directory for fonts will also be displayed in Figure 2 5 All the fonts that are registered with the displayed directory will alone be recognized by CitraTest You can set a different font directory by Integrating eG Enterprise with CitraTest specifying a different path in the Set Font Directory text box The buttons adjacent to every text box can be utilized to browse for
101. nsures Aleems Graphe Options Ej 192 168 10 28 1494 gt f Client Service Search ie B CitraClientEmulation B CitrinConnect f E CittzEx_Total Client Service m CitrixLagin E Textpadapen E CitrixClientEmulation citrixConnect DETAILS 4 REMOTE CONTROL B availability 3 fu E Reiponse time Sece 7 700 Figure 2 120 Viewing the layer model tests and measurements of the Emulated Client 4 A timer maps to a step in a multi step service interaction eG monitors steps using timers Figure 2 120 displays the Availability and Response time of the CitrixConnect step built into the CitrixEx script This step calculates the time taken by a Citrix user to login to the Citrix application and reports this time as the Response time Also note that all the steps that have been included in the CitrixEx script appear as descriptors of the test see Figure 2 120 5 Besides the steps that we had explicitly monitored using the script Figure 2 120 also displays an additional step named CitrixEx_Total This step which is internally generated by the CitraTest tool reports the total time taken for script execution as the Response time Figure 2 121 reveals the response time value returned by the CitrixEx_Total step This is the total time taken to login to the Citrix server 192 168 10 28 1494 open the Textpad application published on it add a line of text to the Textpad and close the application without saving the c
102. nt Services in a Windows 2000 Professional environment 2 Right click on the eGurkhaAgent service therein and select the Properties option 55 Integrating eG Enterprise with CitraTest nii Component Services eae S xj 1 Console Window Help e x Action View gt om Ee ABA gt m m Tree Services Local J Console Root Component Services Alerter Notifies sel Manual LocalSystem H Event Yiewer Local Sa Application Manage Provides s Started Manual LocalSystem Sa Services Local Sy Automatic Updates Enables th Started Automatic LocalSystem Sa Background Intellig Transfers f Manual LocalSystem Bs ClipBook Supports C Manual LocalSystem By COM Event System Provides a Started Manual LocalSystem 8 Computer Browser Maintains a Started Automatic LocalSystem B4DeF Watch Started Automatic LocalSystem 4 DHCP Client Manages n Started Automatic LocalSystem Ss Distributed Link Tra Sends notif Started Automatic LocalSystem SRy Distributed Transac Coordinate Manual LocalSystem 4 DNS Client Resolves 4 Started Automatic LocalSystem Ry eGAgentMon Started Manual LocalSystem a eGurkhaAgent Start Automatic LocalSystem SB Event Log Logs Stop Automatic LocalSystem Ry Fax Service Help Benes Manual LocalSystem Sy Indexing Service ee Manual LocalSystem Sa Internet Connectio Pr
103. of the Singapore Airlines home Page eeeseeseseteeeteeeeeeseeneeeees 30 Figure 2 37 Script tracking the time taken by the Singapore Airlines page for downloading dusctinddntenavsinaives oulmmiinelunn waouain 30 Piste 7 59 Capmupinethie Imiaee Ol Cae Scnedules LINK sua dissossarsintonmnsssstdbasonsedatystasusvsdassaunea AEA E ARTEA ERARE 31 Fioure 239 Savine the Schedules images as Schedules Dri Pasii RT oe SiE Ea E NR E ATE RERO Ra NT 31 Figure 2 40 Generating the script for moving the mouse pointer over the Schedules link s ccasinatiuuusinnetacelimanddoui sedans 32 Figure 241 Script for ftor moving the mouse pointer oy r the Schedles MAK seereis iian riii enri ENE ARETE E Ni 32 Pigutre 242 Gaptutine th Flicht Sfat s Mmi en n Pac ceca E A Saga N RE E N E As 33 Figure 243 Savine the Flight Status Image onanerer ioeie cuted aia AEAEE a AA EENE E IRAE EEEE AEA ii 33 Pute 244 SA ssociatine a onal cick withthe Flie ht Stars MATE riri iina deans ena Sne ETAN EEE ERTEN SOARS eR AREKETAN AE ESAE 34 Picute 2 45 socripe tor clicking onthe Plight Stats binp iMate esirin NE E E E S TA 34 Figure 2 46 Capturing the image of the pace title Flight Status a sicsnsaesvstvetcachtslcvataavnd havuwtunenieevanidanadeasdecscatudbadhaucudeslchedustgtebdcha dhelsienibsdtaedseetoouacess 35 Piute 2A n Waltiie orhe Donrcand Statina CS a EA O A O 35 Foute 2407 Seip fot wane Tor the Dong aad Statis MACES sain Tana E a T N A ONNEN E A 36 Figure 249 Set ng a timert
104. om saajapp saa ISESSIONID_WLCS_PORTAL AcWweuBGkz16L5gngDDyCtOES706wqghJ CskofFOSu7 yqQ4GO53 49526472 1407778313 750117 Go Links Y7 2 search web Ea C Mail my Yahoo Fj Games ahoo S Personals LAUNCH r KrisFlyer Number or User ID PIN SINGAPORE AIRLINES Login Enrol Now About SIA KrisFlyer Products amp Services Bookings Schedules Travel Info News Releases N oa 8 n Online Flight Services E Check in Flight Status Baggage Tracing Flight Status w 0055 H 0020 X 0473 Y 0218 Vey Oa Please provide the necessary information to one of the options D amp Services eto N Mobile Services i Wine and dine in style with a delightful selection of wines Online Flight Services If you know the Flight No and the Departure or Arrival City and delicious tempting First Class treats on board Raffles Raffles Class Flight Number SQ 409 Class Check it out here Economy Class Departing from Aniving at On The Ground ae ren On Board Services Inflight Entertainment Date 25 06 2004 Y dd mm yyyy cod WIN amp Communications o fly non stop For Your Travel Comfort SINGAPORE AND NEW YORK For the first time ever fl Alternatively if you know the Departure and Arrival City only UL non stop between Singapore T SER and New York Save up to 4 eparture City Select a City hours off travelling time 3
105. one bmp DoneSAHome bm Schedules bmp Search Area Searching Timeout in Secs STANDAR D_TIMEOUT Toggle Timeouts V If multiple images are found click on the one nearest original location Cancel Image Preview Button Left Midde Right Click Single Double Advanced Figure 2 44 Associating a Single click with the Flight Status image 57 The script that handles the afore mentioned will then appear see Figure 2 45 in the script window _ CitraTest D citratest Citra SAWebSite bas File Edit View Playback Scripting Results Window Help Ba lel clk W key log dly amp E D citratest Citra SAWebSite bas If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If StopTimer SAHome returnstatus ClickOnImage Schedules bmp LEFT BUTTON 0 STANDARD TIMEOUT If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If returnsStatus ClickOnImage FlightStatus bmp LEFT BUTTON If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If Fad Mst Msk MCo Cir NONE r i 1 STANDARD TIMEOUT NONE Figure 2 45 Script for clicking on the FlightStatus bmp image 58 Upon clicking the Flight Status option the Flight Status page will appear Using this page the status of a particular flight will have to be retrieved To check whether the Flight Status page has com
106. our personalized view of MetaFrame XP applications The Applications box contains icons for the applications that you can use Click an icon to launch an application Click Refresh to view the latest applications Click Settings to change your settings Click a folder icon to display its contents If you have problems using an application please contact your help desk or system administrator for more information MetaFrame XP Message Center The MetaFrame XP Message Center displays any informational or error messages that may occur CITRIX gmg ip interme Figure 2 99 Capturing the title of the Applications section 21 Save the image as Applicationstext bmp see Figure 2 100 CitraTest D citratest Citra Images Applicationstext bmp Z File Edit Image Capture View Window Help tl llel ck w key loa aly 67 Ready ees ES Os Figure 2 100 Saving the image as Applicationstext omp Integrating eG Enterprise with CitraTest 22 Next follow the procedure depicted by Figure 2 101 to associate a wait for event with both the Applicationstext bmp and the already existing Done bmp Wait For erify Image Image Names Image Preview addressbar bmp 33 Anchor bmp Applicationstext bm chennai bmp ne CitrixLogo bmp CitySelect bmp CitySelectList1 bmp Done bm DoneS Home bmp FlightN amp bmp Flightnumber bmp FlightStatus bmp FlightStatus1 bmp GObutton bmp aooale bmo El Search Ar
107. ov REA Manual LocalSystem By IPSEC Policy Agent Man Automatic LocalSystem 84 Logical Disk Manager Logi All Tasks gt Automatic LocalSystem 8 Logical Disk Manage Adm Refresh Manual LocalSystem Messenger Seno Automatic LocalSystem By Net Logon Supp Automatic LocalSystem NetMeeting Remote Allo f Manual LocalSystem Sa Network Connections Man Hep Manual LocalSystem Sa Network DDE Provides n Manual LocalSystem Bs Network DDEDSDM Manages s Manual LocalSystem Sa NT LM Security Sup Provides s Manual LocalSystem Sy Performance Logs a Configures Manual LocalSystem Ba Plug and Play Manages d Started Automatic LocalSystem Bs Print Spooler Loads files Started Automatic LocalSystem Protected Storage Provides pr Started Automatic LocalSystem 4 Q05 RSYP Provides n Manual LocalSystem Sa Remote Access Aut Creates a Manual LocalSystem Sa Remote Access Con Createsa Started Manual LocalSystem Remote Procedure Provides th Started Automatic LocalSystem Remote Procedure Managest Manual LocalSystem Figure 2 77 Selecting the Properties option 3 Click on the Log On tab in the Properties dialog box see Figure 2 78 and select the Allow service to interact with desktop check box eGurkhaAgent Properties Local Computer General Log On Recovery Dependencies Log on as Local System account prreessesssesssesseesessssesesssesssesssesssssesssesssesssesesesssssssssssssssessseessens
108. own do not necessarily represent all possible and available additional flights Please contact the Singapore Airlines office or your nearest travel agent for updates Le a a a Internet Figure 2 58 Capturing an image of the Chennai option 73 Save the image as chennai bmp and associate a click event with it The VB script will get updated accordingly CitraTest De citratest Citra SAWebSite bas A a1 x returnstatus ClickOnimage Fiightnumber bmp LEFT BUTTON 1 STANDARD_TIMEOQUT NONE It returnStatus lt gt SUCCESS Then Aborticriapt amp x SCRIPT FAIL Exit Sub Ena It KeystrokeString 409 returnSctatus ClickOnImage CitySelect bmp LEFT BUTTON 1 STANDARD TIMEOUT NOWE If returnScatus lt gt SUCCESS Then AbortScraptEx SCRIPT_FAIL Exit Sub End Iz KeystrokeString ce returnStatus KeystrorevkK VK_NEXT KEY_PRESS returnStatus ClickOnImage chennai bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE USE COLOR VARIATION USE COLOR TRANSIT If returnStatus lt gt SUCCESS Then 7 Pi 7 z AbortScripetkx SCRIPT FAIL Exit Sub g End If End Sub Figure 2 59 Script for clicking on the chennai bmp 42 Integrating eG Enterprise with CitraTest 74 75 76 77 By default the current date will be displayed against the Date field in the Flight Status page This setting therefore need not be disturbed Hence let us proceed to click on the GO button I
109. path to the SAWebSite script has to be specified here Note If the script file resides on another host then ensure that the location of the script file is mapped to any drive on the measurement host e OUTPUTFILES Enter the full path to the output file that contains the metrics extracted by the specified script file Here again multiple output files can be provided as a comma separated list but only if multiple script files are also provided 54 Integrating eG Enterprise with CitraTest If None is specified here then the eG system will collect statistics from the default output files associated with each of the specified script files The default output files will be present in the same location as the respective script files and will have the same name as the script files In our example the value of the OUTPUTFILES parameter can remain as None While specifying multiple output files ensure that they are provided in the same order as their corresponding script files in the SCRIPTFILES text box If the SCRIPTFILES parameter consists of multiple entries and the OUTPUTFILES parameter consists of only one then eG will automatically associate the first script file entry in the SCRIPTFILES box with the OUTPUTFILES entry Measures pertaining to the other script files will therefore not be displayed in the eG monitor interface f ISCITRIX If the specified script emulates a request to a Citrix client then specify Yes her
110. pletely downloaded let us use the page title Flight Status as an indicator The Done image that appears on the status bar of the IE window can also be used as an indicator First capture the image of a small part of the page title as depicted by Figure 2 46 below 34 Integrating eG Enterprise with CitraTest E Singapore Airlines Microsoft Internet Explorer Oe Ree E re x F Favorites Tools Help 4 ECES p A Qsearch GyFavorites Emedia lt 4 BD 3 R ww singaporeair com saa app saa hidHeaderAction onHeaderMenuClick amp hidT opicArea FlightStatus amp currentSite global x Go Links a Search Web CA J mail my Yahoo Games Yahoo S Personals LAUNCH signin KrisFlyer Number or UserID PIN re ener rn co SINGAPORE AIRLINES Login __ EnrolNow PIN Help Pletal Geode ie a ele oe et lel Ce ee ore alta Promotions Country Sites wae Online Flight Services A eri Check in Flight Status Baggage Tracing If you re travelling with children and infants or Flight Status require special assistance we are more than pleased to Please provide the necessary information to one of the options gt assist you Click here to CEEE AEA Z Online Flight Services If you know the Flight No and the Departure or Arrival City First Class Raffles Class Flight Number SQ Economy Class Departing from Arriving at On she Drean City Select a City 5 O
111. r User ID PIN SINGAPORE AIRLINES Login Enrol Now PIN Help About SIA KrisFhyer Products amp Services Bookings Schedules Travel info News Releases Fly NON STOP betwee Singapore and New Yo from 28 june 2004 Bookings Round Trip One Way gt Special Deals From Departure City To Destination City 7 Flight Status 20 ce Class Economy Class Check the status of your flight Make a stopover Yes No y gt Check in Online Departure 25 Jun 2004 Select Time ba Available from 48 to 2hrs prior to departure Return psx Jun 2004 Select Time Ii gt KrisShop Singapore Airlines online duty free shop No of Passengers Adults fi 7 Children o pa gt Join Singapore Airlines Frequent Flyer Programme Home ContactUs Feedback amp Enquiry Help amp FAQs Site Map ss Conditions of Use Privacy id See Ue start A e Wo Figure 2 42 Capturing the Flight Status image 56 Name the file as FlightStatus bmp see Figure 2 43 and then associate a click event with it as depicted by Figure 2 44 CitraTest D citratest Citra Images FlightStatus bmp Z File Edit Image Capture view Window Help alsi E s e key toa aly EE gt EJS gin Zou es estat a Fe Msk Msk MCo cir 2 Ready frofa NM Figure 2 43 Saving the Flight Status image 33 Integrating eG Enterprise with CitraTest Click Image Image Names addressbar bmp D
112. r clicking on the Textpadicon bmp 71 Integrating eG Enterprise with CitraTest 28 Next the script will have to wait until the Textpad application fully opens A clear indicator to this is the appearance of the title bar text TextPad Document 1 Therefore open the Textpad application and capture an image of its title bar text see Figure 2 107 Figure 2 107 Capturing an image of the text on Textpad s title bar 29 Save the image as TextpadTitle bmp CitraTest D citratest Citra Images TextpadTitle bmp Z File Edit Image Capture View Window Help Ready kes Num Figure 2 108 Saving the image as TextpadTitle bmp 72 Integrating eG Enterprise with CitraTest 30 Then to make sure that the script waits for the TextbarTitle bmp image to appear click on the W V button on the script window s tool bar and do as indicated by Figure 2 109 below Wait For Yerify Image Image Names Image Preview google bmp ied newyorkjfk bmp RestoreDesktop bmp Resultsdone bmp resultspage bmp 54Home bmp 54AHpperlink brp Schedules bmp Status bmp StatusResult bmp Testoadicon bm Username bmp Search Area NONE Searching Timeout in Secs STAN DARD_TIMEQUT Toggle Timeouts Logic Operation O Wait For ALL Images f Wait For ANY Image Advanced aea Figure 2 109 Waiting for TextbarTitle bmp 31 Also track the time taken for Textpad to open by
113. recorded script file must be made available this is a manual process on the system that the eG external agent is running on Also for the agent to execute the recorded script the runtime environment of the client emulation tool must be installed Introduction a CitraTest Host P gt F CitraTest pa Development Connects fo Environment eG Admin Records sequence offciicks images and keystrokes l Script File CitraTest Runtime ee i Bee E En is E Agent invokes Citra Test Run Time fo Environment BME tet erst j Dlaybgck ihe recoraea script am Collects metrics and gfores them F Te i l y Pee d Sear das Yoarac pam a z A head Kepo nS SUGS er 3 ime measures Measures a K Output File on ane i k Extracts measures t i k 9 r lt a Sse ba i ad ke ait eG External Agent eG Manager eG Database Figure 1 3 A typical eG Client emulation tool Integration 1 3 Licensing An eG external agent is required for monitoring emulated clients eG external agents assigned to handle emulation tests cannot execute other eG tests Client emulation is supported on Windows platforms only Y VV WV For the integration to work the eG license should have Client Emulation capability enabled gt The Client emulation tool must be installed when an eG external agent with client emulation is started gt The Client emulation tool s development environment is mandatory for buildi
114. s can be detected early and attacked easily 50 Integrating eG Enterprise with CitraTest Note Upon successful execution of the script a message box informing you of the success will appear You are advised to disable this message box and restore the desktop instead To change the playback settings to reflect this select Playback Options from the Playback menu on the script window Playback Options Ha al DS X App Monitoring Integration Screen Event Handling Alerte Log Off and On General Results Think Time Virtual User Settings Standard T imeout secs FO Short Timeout secs 10 Lang Tinmeout secs 100 Enter sleep time ms after Click 100 Enter length of delay ms between moving mouse and clicking mouse 100 Enter length of delays between downelick and upclick 10 Enter length of delay ms between keystrokes 50 Playback Script in Debug Mode Auto Timers Playback Script in Step Thru Mode Display Script Complete Dialog Restore Desktop at Script End Cancel Apply Figure 2 72 Playback options In the General tab that opens by default see Figure 2 72 deselect the Display Script Complete Dialog check box and enable the Restore Desktop at Script End check box Finally click the OK button Similarly by default the STANDARD_TIMEOUT period is set to 50 seconds This default setting can be changed using the General tab of Figure 2 72 51 Integrating eG Enterprise with Citra
115. se with CitraTest 24 Now that we have gained access to the Citrix server 192 168 10 28 let us proceed to open the Textpad application published on it As the first step towards this capture an image of the Textpad icon as shown by Figure 2 103 MetaFrame XP Microsoft Internet Explorer Favorites Tools Help ee gt Search G Favorites media ak 82 168 10 28 Citrix MetaFramexP default frameset asp bal Go Links Search Web Izy mail my yahoo Fj Games SP Personals LAUNCH sign in MetaFrame XP Applications Welcome to your personalized view of MetaFrame XP applications The Applications box contains icons for the applications that you can use Click an icon to launch an application Click Refresh to view the latest applications Click Settings to change your settings Click a folder icon to display its contents If you have problems using an application please contact your help desk or system administrator for more information MetaFrame XP Message Center The MetaFrame XP Message Center displays any informational or error messages that may occur CITRIX F Ac Welcome ii rr le he ee Figure 2 103 Capturing as image of the Textpad icon 25 Save the image as Textpadicon bmp see Figure 2 104 Rosty ftaa bed A Pisa Figure 2 104 Saving the Textpadicon bmp 70 Integrating eG Enterprise with CitraTest 26 The next step is to click on the Textpad icon
116. ss c using your keyboard and 40 Integrating eG Enterprise with CitraTest then pressing the Page Down key This will take you nearer to the Chennai option You can then capture an image of the option and associate a click event with it Let us begin by recording the key strokes For that click on the key button on the script window s tool bar and enter c in the Text String text box Then click on the Add to Script Code gt gt button next to the text box to generate the corresponding script code Type Keystrokes ee a x Record Keystrokes keystroke Script Code Kevstroke String c returnStatus KeystrokeVe WE NEXT KEY PRESS Text String Add to Script Code gt gt Special Keps Add to Script Code gt gt Keystroke Action for Special Keps 0 Key Press C Kep Down C Key Up Remove Script Code lt lt Type Keys as to Trace Log Cancel Figure 2 57 Entering n to navigate to the cities beginning with the letter N 71 Next select the Page Down key from the Special Keys list and add it to the Keystroke Script Code list by clicking on the Add to Script Code gt gt button see Figure 2 57 72 To click on the Chennai option first capture an image of the option as depicted by Figure 2 58 41 Integrating eG Enterprise with CitraTest Singapore Airlines Microsoft Internet Explorer Favorites Tools Help A A Qsearch yravorites Media Ey a S ww singaporeair
117. starting a timer named TextpadOpen before the wait for script and then stopping it after the wait for script see Figure 2 110 _ CitraTest D citratest Citra CitrixEx bas File Edit View Playback Scripting Results Window Help E D citratest Citra CitrixEx bas AbortScriptEx SCRIPT FAIL Exit Sub End If SstartTimer TextpadOpen returnStatus WaitForImage TextpadTitle bmp STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If StopTimer TextpadOpen Figure 2 110 Calculating the time taken for opening Textpad 73 Integrating eG Enterprise with CitraTest 32 Let us now proceed to type a few words in Textpad To instruct the script to do the same click on the key button in Figure 2 110 and proceed in the same manner depicted by Figure 2 111 Record Keystrokes Keystroke Script Code KeystrokeString This is the Textpad application that has been put Text String Add to Script Code gt gt Special Keys Add to Script Code gt gt Keystroke Action for Special Keys Key Press C KepDown C KeyUp Remove Script Code lt lt I Type Keys as to Trace Log Cancel Figure 2 111 Typing a line in text pad 33 The script is accordingly updated see Figure 2 112 CitraTest D citratest Citra CitrikEx bas File Edit view Playback Scripting Results Window Help E D citratest Citra CitrixEx bas
118. t Esc Enter Keystroke Action for Special Keys C Key Press C KeyDown KeyUp l Type Keys as to Trace Log Keystroke Script Code returnStatus KeystrokeVK YK_MENU KEY _DOWN returnStatus KeystrokeVK VK_F4 KE Y_PRESS returnStatus Keystroke K VK_MENU KE Y_UP Remove Script Code lt lt Cancel Figure 2 115 Releasing the Alt key 36 Finally click the OK button in Figure 2 115 to return to the script window After verifying the changes that were effected on the script click on the key button on the tool bar once again This time select the Tab option from the Special Keys list and click on the Add to Script Code gt gt button adjacent to it Similarly add the Enter option to the Keystroke Script Code list see Figure 2 116 Then click the OK button to return to the script window and view the complete script see Figure 2 117 Type Keystrokes Record Keystrokes Text String Add to Script Code gt gt Add to Script Code gt gt Special Keys Keystroke Action for Special Keys Key Press C KeyDown KeyUp l Type Keys as to Trace Log Keystroke Script Code returnStatus Keystroke K YK_MENU KEY_DOWN returnStatus KeystrokeVK VK_F4 KEY_PRESS returnStatus KeystrokeVK YK_MENU KE Y_UP returnStatus KeystrokeVK VK_TAB KEY_PRESS returnStatus KeystrokeVK VK_RETURN KEY_PRESS Remove Script Code lt lt Canc
119. t a timer named CitrixLogin by clicking on the amp button on the tool bar of Figure 2 88 Provide the Timer Name in Figure 2 89 that appears and click the OK button therein 62 Integrating eG Enterprise with CitraTest Start Timer Timer Hame CitrisLogin Concel_ Figure 2 89 Starting the CitrixLogin timer 11 Stop the CitrixLogin timer after the wait for script by clicking on the button on the tool bar of the script window Select the Timer to be stopped from the Timer Names list of Figure 2 90 and then click the OK button therein to add the corresponding script code to the VB script Stop Timer oe HE x Timer Hames Cancel Figure 2 90 Stopping the CitrixLogin timer 12 Next the script will have to provide the authentication information username password domain required to login to the Citrix server Begin by providing the user name john For that first capture the image of the Username text box and define its click spot so that the cursor is automatically positioned inside the text box see Figure 2 91 63 Integrating eG Enterprise with CitraTest _ CitraTest D citratest Citra Images username bmp es i ee PE 15 x Z Eile Edit Image Capture View Window Help 21 x GS chk W key log dly G G K a amp zin Zou Jmp ALL Ren Fe Msk Msk MCo Cir Ready hos Nmf Figure 2 91 Defining the click spot for the username bmp image
120. t execution will be immediately aborted 21 The next step is to ensure that the desktop refreshes once the Restore Desktop button is clicked Pressing the F5 key on the keyboard refreshes the desktop To instruct the VB script to do the same click on the key button on the tool bar of Figure 2 12 22 Figure 2 13 will then appear From the Special Keys list of Figure 2 13 select F5 As the F5 key is to be pressed select the Key Press option from the Keystroke Action for Special Keys section Next click on the Add to Script Code gt gt button adjacent to the Special Keys list When this is done the script code corresponding to the F5 key press will appear in the Keystroke Script Code list see Figure 2 14 Finally click on the OK button in Figure 2 14 to add the script code to the script window see Figure 2 15 15 Integrating eG Enterprise with CitraTest Kepstroke Script Code Record Keystrokes Test String Add to Script Code gt gt Special keys Add to Seript Code gt gt Print Screen Scroll Lock Keystroke Action for Special kens Key Press Key Down Key Up Remove Script Code Type Keps as to Trace Log Cancel Figure 2 13 Selecting the F5 key Type Keystrokes Keystroke Script Code Record Keystrokes retumStatus Kepstrokew K WER FS REY PRESS Text String Add to Script Code gt gt Special Keps F Add to Script Code gt gt Print Screen S
121. tantasanilasap 56 Fone 2 79 Ene nce penceme Gomi pO memes PATE enana aT sieves sesh aaa feat ata inv sales bro O tae oy Figure 2 80 Viewing the layer model tests and measurements of the Emulated Chen t cicisietiieameniveinadstineseedanred teloinaiie dowisunens wcersiaiey 57 Ficure 2 8 ls Foe tinier los Mle OF the SANV CSS sid Dianos ren EN SE wena abuawthbas aabalucatyaodealan dpcallea bors reheat cucbeteucatpanaintats seats 58 Dicure 2 07 Keyine din the URLofthe Citrix Chente eonig a ica ares aural a da ay aiecdese i i en Raw econ aaa tinea st 59 Fiare 283 Pressine the Entet key ater typi the URE nornin in ar NA A EO O E EENE EAEN 60 Fioure 264 Script tor ipine the URG and pressing the Enter Key tc niissesissstitacersdstisai eda a a a a aa a aa 60 Figure 2 05 C ptuting th Citrix log IMASE iien iaia aaa cach aa a ia aa ee AAE ea eT aE AAE EAEE EE i ERS 61 Figure 2 956 Savino the Citrix LOO casic tie suse say taribenducy bated seis lading hens save p EAE AE AE oat ESEE ERA dea ONE dvds LAEE ASEET EAEE iE 61 Poue 207 Wanne for thes oie ari Ciel OOO Image S sienne nni nani a T AoE E a SEESE EATA AO ANNE OKADAN EERE E ETE TAA 62 Pioute 269 Script tor waitine for the Cirxloco bimp and Done bm penarsei raa a a a A OTA ET AOT 62 Figur 2 89 Starting the Citrix Goin UME esnias R a ea a EE ea aa e a ELES a a Rea an ea ae reat 63 Figure 2 90 Stoppine the Crisis Uet aa a i a A Ai a A 63 Poate 231 Denmas the Chek spot fort tieusoamne DNP ae ses aa aa E
122. that the location of the script file is mapped to any drive on the measurement host e OUTPUTFILES Enter the full path to the output file that contains the metrics extracted by the specified script file Here again multiple output files can be provided as a comma separated list but only if multiple script files are also provided If None is specified here then the eG system will collect statistics from the default output files associated with each of the specified script files The default output files will be present in the same location as the respective script files and will have the same name as the script files In our example the value of the OUTPUTFILES parameter can remain as None While specifying multiple output files ensure that they are provided in the same order as their corresponding script files in the SCRIPTFILES text box If the SCRIPTFILES parameter consists of multiple entries and the OUTPUTFILES parameter consists of only one then eG will automatically associate the first script file entry in the SCRIPTFILES box with the OUTPUTFILES entry Measures pertaining to the other script files will therefore not be displayed in the eG monitor interface f ISCITRIX If the specified script emulates a request to a Citrix client then specify Yes here If not specify No Our example does attempt to extract measures from a Citrix client Therefore provide Yes here 4 Finally click on the Update button in Figure
123. time of the Singapore Airlines home page 49 Stop the timer after the wait for script see Figure 2 37 by clicking on the Ea button This will include a StopTimer code for the new timer see Figure 2 37 _ CitraTest D citratest Citra SAWebSite bas CL ASE ee 2 x File Edit View Playback Scripting Results Window Help l x E amp cik w key log diy amp i P E te Zin Zou gt JmplALL Ren Ged MskiMsk MCol Ciri Sub StartSeript re ENLESErL pt returnsStatus ClickOnImage RestoreDesktop bmp LEFT_BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortScriptEx SCRIPT FAIL Exit Sub End If returnstatus KeystrokeVK VK_F5 KEY PRESS returnstatus ClickOnImage IE bmp LEFT BUTTON 2 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortSeriptEx SCRIPT FAIL Exit Sub End If returnsStatus ClickOnImage addressbar bmp LEFT BUTTON 1 STANDARD TIMEOUT NONE If returnStatus lt gt SUCCESS Then AbortSeriptEx SCRIPT FAIL Exit Sub Ena I KeystrokeString http uww singaporeair com saa app saa returnStatus KeystrokeVK VK_RETURN KEY PRES55 StartTimer SiHome returnsStatus WaitForMultipleImages DoneSaHome bmp SAHome bmp ALL IMAGES STANDARD TIMEOUT NONE If re turnStatus lt gt SUCCESS Then AbortSceriptEx SCRIPT FAIL Exit Sub End If StopTimer SiHome End Sub Figure 2 37 S
124. tion response times of each of the steps involved can be obtained so as to assist the IT service manager in pin pointing which of the steps of the multi step user interaction with the service could be causing a slow down of the overall service The integration of the eG suite with the client emulation tools is performed at the eG agent side An eG agent is provided with the location of the recorded script that it has to execute to emulate a user activity Based on the pre specified frequency of the test the agent executes the script analyzes the script results and reports availability and response time information to the eG manager The eG manager receives these client emulation reports and correlates them in real time with critical in depth resource usage and server side processing metrics that it receives from the other agents to report on potential bottlenecks in the target IT infrastructure The eG external agent implements the integration with the client emulation tools Since the client emulation tools require a dedicated system to operate on an external agent can either perform client emulation tests or the other eG protocol emulation tests but not both When adding a new external agent depending on the eG license available the administrator can specify whether the agent must be allowed to perform client emulation activity or not Figure 1 3 depicts how the integration of the eG external agent with the client emulation tools works The
125. to Signout F TEST NAME COMPONENT Emulated Ghent CitrathentEmulation 192 168 10 32 80 Figure 2 75 List of tests to be configured 6 Figure 2 75 reveals that the CitraClientEmulation test associated with the Emulated Client component type is yet to be configured This test reports the availability and response time of the application being monitored by the CitraTest tool To configure this test click on the test name in Figure 2 75 This will open Figure 2 76 53 Integrating eG Enterprise with CitraTest CitraClientEmulation parameters to be configured for 1927 168 10 37 80 Enmulated Client 192 168 10 32 TEST PERIOD E mins HOST 192 168 10 32 PORT B0 SCRIPTFILES aTest Citra sawebSite OUTPUTFILES None SCITRIX Yes f No Figure 2 76 Configuring the CitraClientEmulation test 7 Specify the following in Figure 2 76 a TEST PERIOD How often should the test be executed b HOST The host on which the test will run In our example the test will attempt to extract measures from the host 192 168 10 32 c PORT The port at which the specified HOST listens In our example this is port 80 d SCRIPTFILES The full path to the script file that is to be played back for emulating a request to and extracting metrics from the monitored application Multiple script files can be provided as a comma separated list but all script files should monitor the same application only In our example the
126. which hosts the packaged project 93 Integrating eG Enterprise with CitraTest b From the directory in the source system that contains the packaged project run Setup exe c The Welcome screen of the setup program will then appear Note that the title that we had provided earlier CitrixEx appears here see Figure 2 141 vm CitrixEx Setup E1 Welcome to the CitrixEx installation program ao Setup cannot install system Files or update shared Files if they are in use Before proceeding we recommend that you close any applications you may be running Figure 2 141 Welcome screen of the package installation program d Next provide the directory in which the CitrixEx installation has to be saved and then click the button at the top of Figure 2 142 to begin installing it Begin the installation by clicking the button below Click this button bo install CitrixEx software to the specified destination directory Directory ds citraTest Change Directory Exit Setup Figure 2 142 Commencing installation of the software e Setup will then provide you with the option to add a group for the project to the Programs group of the Start menu Then click the Continue button 94 Integrating eG Enterprise with CitraTest 2 CitrixEx Choose Program Group os x Setup will add items to the group shown in the Program Group box You can enter a new group name or select one From the Existing Groups list
127. y available in the Images directory In our example since RestoreDesktop bmp is the only image currently available in that directory only RestoreDesktop bmp is displayed in the Image Names list box Since this is the image to be clicked on select it 13 Integrating eG Enterprise with CitraTest ba Bae Par Click Image Image Names RestoreDesktop bmp Search Area Searching Timeout in Secs f Single STANDARD_TIMEQUT Toggle Timeouts Double i F multiple images are found click on the one nearest original location OF Cancel Figure 2 11 Clicking on the Restore Desktop button 16 If the chosen image has to be searched for in a search area specify the name of the search area in the Search Area text box see Figure 2 11 As no search areas have been defined yet for our example leave it as NONE By default the script will search for the chosen image for 50 seconds after which it will timeout This is the STANDARD_TIMEOUT period for a script If the STANDARD TIMEOUT period does not apply to the selected image you can specify a different value in the Searching Timeout in Secs text box For our example however the STANDARD_TIMEOUT period holds good see Figure 2 11 Note By default the STANDARD_TIMEOUT period is 50 seconds You can change this default setting using the Playback Options dialog box that appears upon selecting Playback Options from the Playback menu on the script window
Download Pdf Manuals
Related Search
Related Contents
Télécharger PDF - Honda ATV Samsung 1300 W Aspiradoras Sin bolsa VCC4310H14/XAX Manual de Usuario Bedienungsanleitung Chromalox RST PN400-3 User's Manual 取付方法(Adobe PDF101KB) Self-Represented Litigant E-Filer Manual TAxE D`APPRENTISSAgE 2014 User`s Manual Affymetrix® GeneChip® Fluidics Station 400 Copyright © All rights reserved.
Failed to retrieve file