Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dani Vainstein & Monika Arora Gautam 1 Create a Test Set Mercury/HP Utilities.

Similar presentations


Presentation on theme: "Dani Vainstein & Monika Arora Gautam 1 Create a Test Set Mercury/HP Utilities."— Presentation transcript:

1 Dani Vainstein & Monika Arora Gautam 1 Create a Test Set Mercury/HP Utilities

2 Dani 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 2 Click

3 Dani 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.

4 Dani 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.

5 Dani Vainstein & Monika Arora Gautam 5 Test Batch Runner Open the Test Batch Runner from Start Programs Quick Test Professional Tools Test Batch Runner.

6 Dani Vainstein & Monika Arora Gautam 6 Test Batch Runner

7 Dani Vainstein & Monika Arora Gautam 7 Add a Test to Test-Set Menu : Batch Add Hotkey : Ins ( Insert ) Toolbar Add a Test

8 Dani Vainstein & Monika Arora Gautam 8 Add a Test to Test-Set from the folder according to the consequent requirements numbers. Req0001, Req0002, Req0003

9 Dani 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

10 Dani Vainstein & Monika Arora Gautam 10 Run the Test-Set Run 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 \Res#\report

11 Dani 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 membersMulti Test Manager

12 Dani Vainstein & Monika Arora Gautam 12 Test Multi Test Manager After you have installed the Multi-Test Manager open it as described below.

13 Dani Vainstein & Monika Arora Gautam 13 The Multi Test Manager ( MTM )

14 Dani Vainstein & Monika Arora Gautam 14 Creating Test-Set Using MTM Menu : Batch Add Hotkey : Ins ( Insert ) Toolbar Add a Test

15 Dani Vainstein & Monika Arora Gautam 15 Add all Tests to Test-Set Add all 3 tests to the test-set. Req0001, Req0002, Req0003

16 Dani 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

17 Dani 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

18 Dani 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.

19 Dani 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

20 Dani Vainstein & Monika Arora Gautam 20 Mail Tab - eMail Account Dialog You can send email notifications Enter your email account.

21 Dani 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.

22 Dani Vainstein & Monika Arora Gautam 22 Script Properties Select the first test in the list. Select script properties Menu : Batch Script Properties Toolbar : Properties

23 Dani Vainstein & Monika Arora Gautam 23 Change Result Folder RES

24 Dani Vainstein & Monika Arora Gautam 24 Multi Test Manager Result Folder

25 Dani Vainstein & Monika Arora Gautam 25 Excellent tool…with few limitations 1. 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.

26 Dani Vainstein & Monika Arora Gautam 26 MTM File opened by Notepad You can open the LoginRegression.mtm file located under FR\Batch using notepad.

27 Dani Vainstein & Monika Arora Gautam 27 Running an mtm File. Run the mtm file. Menu : Batch Run Hotkey : Ctrl + R Toolbar Run

28 Dani Vainstein & Monika Arora Gautam 28 Run End

29 Dani Vainstein & Monika Arora Gautam 29 Report

30 Dani 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.

31 Dani 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 doesnt use Quality Center.

32 Dani Vainstein & Monika Arora Gautam 32 Whats Next? Implementing Req0004 Using The Global Dictionary. Using Loops. Inserting a call to a copy of an existing action. Deleting an existing action.

33 Dani 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.

34 Dani Vainstein & Monika Arora Gautam 34 Make sure to visit us for: Tutorials Articles Projects And much more @ www.AdvancedQTP.com


Download ppt "Dani Vainstein & Monika Arora Gautam 1 Create a Test Set Mercury/HP Utilities."

Similar presentations


Ads by Google