Demand:
Controls that simulate the operation of the software, such as dialing and hanging.
1. After downloading and installing the AutoIt, open the Finder tool and use the Finder to navigate to the control on which you want to simulate the operation.
2. In the Finder tool, you can see information about the Control tab. Other controls do similar things
3. Open the Script Editor for AutoIt and write the scripts for the simulation operation control
Dim $dialogTitle = "Microsip" Winactivate ($dialogTitle) winwaitactive ($dialogTitle), 1ControlFocus ("Microsip", "", "[ Class:button;instance:7] Controlclick ("Microsip", "", "[Class:button;instance:7]"), 0ControlFocus (" Microsip "," "," [Class:button;instance:16] ") Sleep (Controlclick) (" Microsip "," "," [Class:button;instance:16] ") Controlfocus ("Microsip", "", "[Class:button;instance:16]") Sleep (Controlclick) ("Microsip", "", "[Class:button;i NSTANCE:16] "), 8ControlFocus (" Microsip "," "," [Class:button;instance:14] ") Sleep (+) Controlclick (" Microsip "," "," " [Class:button;instance:14] "), 6ControlFocus (" Microsip "," "," [Class:button;instance:12] ") Sleep (+) Controlclick ( "Microsip", "", "[Class:button;instance:12]"), 2ControlFocus ("Microsip", "", "[Class:button;instance:8]") Sleep (1000 ) Controlclick ("Microsip", "", "[Class:button;instance:8]") controlfocus ("Microsip", "", "[Class:button;instance:8]" ) Sleep (Controlclick) ("Microsip", "" "," [Class:button;instance:8] ") controlfocus (" Microsip "," "," [Class:buttOn;instance:1] Sleep (Controlclick) ("Microsip", "", "[Class:button;instance:1]")
4. Save as Au3 file, click on Scrit tools->go. Test run, after passing, open AutoIt script to exe tool, the step 3 of the Au3 file to change exe file
5. Open JMeter, add schedule, thread group->beanshell Sampler, add java code calling EXE in BeanShell
Runtime rn = Runtime.getruntime (); Process p = null;try { p = rn.exec ("\" c:/callout1008622.exe\ "");} catch (Exception e) {System.out.println ("Error exec !"); }
6. After saving, start JMeter, run through
JMeter combining AutoIt operations with Windows programs