create a test set
DESCRIPTION
Create a Test Set. Mercury/HP Utilities. TIP. Fr Project staff have made an improvement to the presentations. Whenever you see QTP code, right click the left bottom part of the presentation and do the following :. 1. 2. Click. Topics covered. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/1.jpg)
Dani Vainstein & Monika Arora GauDani Vainstein & Monika Arora Gautamtam
1
Create a Test Set
Mercury/HP Utilities
![Page 2: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/2.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 2
TIP
Fr Project staff have made an improvement to the presentations. Whenever you see QTP code, right click the left bottom part of the
presentation and do the following :
1
2Click
![Page 3: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/3.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 3
Topics covered
Creating a test-set using Test Batch Runner Utility.
Creating a test-set using Mercury Multi-Test Manager.
Configuring The Mercury Multi-Test Manager.
![Page 4: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/4.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 4
Creating a Test-Set Using Test Batch Runner Up till now we have 3 tests, in our Tests
Folder. We will create a Test-Set for all the tests. As we continue working on project we will
keep adding new tests to our existing test-sets.
For this purpose we will use the Multi-Test Manager.
Those who are using Quality Center can skip this presentation.
![Page 5: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/5.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 5
Test Batch Runner
Open the Test Batch Runner from Start Programs Quick Test Professional Tools Test Batch Runner.
![Page 6: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/6.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 6
Test Batch Runner
![Page 7: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/7.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 7
Add a Test to Test-Set
Menu : Batch Add
Hotkey : Ins ( Insert )
Toolbar
Add a Test
![Page 8: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/8.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 8
Add a Test to Test-Set
from the folder according to the consequent requirements numbers.
Req0001, Req0002, Req0003
![Page 9: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/9.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 9
Create LoginRegression Test-Set
LIB
RA
TESTS
RS
DOC
FR
DAT
SETTING
RES
BATCH
ENV
Automation
BL
GL
Save
Save the Test –Set Batch File with name
LoginRegression.mtb under FR\BATCH Folder
![Page 10: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/10.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 10
Run the Test-SetRun
Run the test-set Batch Run Or hotkey: Press F5. Once batch run is complete,
you can view the results for each test in its default test results folder <test folder>\Res#\report
![Page 11: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/11.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 11
Creating a Test-Set Using Multi Test Manager
The Multi-Test Manager is not a part of QTP 9.2 it might be a part of QTP 9.5
You can download the installation files from this location Multi Test Manager only for FR Project members
![Page 12: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/12.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 12
Test Multi Test Manager
After you have installed the Multi-Test Manager open it as described below.
![Page 13: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/13.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 13
The Multi Test Manager ( MTM )
![Page 14: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/14.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 14
Creating Test-Set Using MTM Menu : Batch
Add Hotkey : Ins
( Insert ) Toolbar
Add a Test
![Page 15: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/15.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 15
Add all Tests to Test-Set
Add all 3 tests to the test-set.
Req0001, Req0002, Req0003
![Page 16: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/16.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 16
Create LoginRegression Test-Set
LIB
RA
TESTS
RS
DOC
FR
DAT
SETTING
RES
BATCH
ENV
Automation
BL
GL
Save
Save The Test-Batch File with name
LoginRegression.mtm under FR\Batch folder
![Page 17: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/17.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 17
Before You Run the Batch…
You can increase the capability of the tool by modifying some properties.
MTM can generate test reports after running test batch. For this purpose create a new folder call ‘REP’ ( Reports ) in \Automation\FR\REP
Select Preferences. Menu : File Preferences Toolbar
Preferences
![Page 18: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/18.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 18
Run Tab
You can run on a localhost or remote machine.
You can perform a scheduled run.
Stop test run on failure. Run scripts
continuously. Close the properties
dialog.
![Page 19: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/19.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 19
Report Tab Select "Create Multi-Test
Manager Report". Select "View Report After
Batch Run.“. Unselect the "Use Default
Location" option. Select the "Specify Location". Select the REP folder under
FR\REP to specify the report location.
Click on "Add..." button and enter following details: Report Name Project Name Value FR Select REP Folder
![Page 20: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/20.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 20
Mail Tab - eMail Account Dialog You can send email
notifications Enter your email
account.
![Page 21: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/21.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 21
Mail Tab
You can define, when an email will be sent.
It can be sent to a list or a particular person from your outlook address book.
It can include a custom subject and message.
![Page 22: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/22.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 22
Script Properties
Select the first test in the list. Select script properties
Menu : Batch Script Properties Toolbar :
Properties
![Page 23: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/23.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 23
Change Result Folder
RES
![Page 24: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/24.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 24
Multi Test Manager
Result Folder
![Page 25: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/25.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 25
Excellent tool…with few limitations1. You cannot send arguments to the test.2. You have to modify the scripts result folder one-by-one.3. Cannot view the reports and status all at once.4. Cannot modify the Report name manually from the tool.
( I usually use the test-set name + Date + Time )5. Cannot run instances of the same test.6. The MTM also has a COM interface ( read attached
documentation of the MTM ), most of the limitations can be "workaround" using the MTM methods and properties.
![Page 26: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/26.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 26
MTM File opened by NotepadYou can open the LoginRegression.mtm file located under
FR\Batch using notepad.
![Page 27: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/27.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 27
Running an mtm File.
Run the mtm file. Menu : Batch Run Hotkey : Ctrl + R Toolbar
Run
![Page 28: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/28.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 28
Run End
![Page 29: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/29.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 29
Report
![Page 30: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/30.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 30
Comparing TBR and MTM
Both tools Run the Test Batch File. However MTM gives much more flexibility to the user by
generating the report of the test-batch showing the status summary in html format.
Also gives flexibility on types of run ( stop on failure, Run continuously ) also simulates a load, by running tests on a network machine, let user add custom variables to report and more.
Makes task easier for a team to run all tests created by single command and sends out the email of run-status to the entire team.
It supports a rich COM interface. Remark : To run tests on network machine QTP must be
installed on that network machine.
![Page 31: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/31.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 31
Summary
We learned how to run test-sets using 2 built-in tools of QTP although MTM will come with 9.5 version.
Using the “Test Batch Runner” Using the “Multi Test Manager” Configuring the “Multi Test Manager”. Those tools are a good option for those
who doesn’t use Quality Center.
![Page 32: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/32.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 32
What’s Next?
Implementing Req0004 Using The Global Dictionary. Using Loops. Inserting a call to a “copy” of an existing
action. Deleting an existing action.
![Page 33: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/33.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 33
Special Thanks To
Tali Hizkia from Israel, Tel-Aviv. Paul Grossman from USA, Chicago. Dalvinder Matharu from USA, San Jose. Mike Manchester from USA, Bolivar. Joydeep Das from India, Hyderabad. Rajesh Patel from USA, Chicago. Richi Sharma from USA, New Jersey. Bharathi Babu from India, Pune. Sanjeev Mathur from India, Noida.
![Page 34: Create a Test Set](https://reader036.vdocuments.us/reader036/viewer/2022081508/56814283550346895daeb0e2/html5/thumbnails/34.jpg)
Dani Vainstein & Monika Arora GautamDani Vainstein & Monika Arora Gautam 34 34
Make sure to visit us for: Tutorials Articles Projects And much more
@www.AdvancedQTP.com