IT Community - Software Programming, Web Development and Technical Support

WinRunner FAQ's

This is a discussion on WinRunner FAQ's within the Testing Tools forums, part of the Software Quality Assurance category; 1) How you used WinRunner in your project? a) Yes, I have been using WinRunner for creating automated scripts for ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Quality Assurance > Testing Tools

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-16-2007, 11:37 PM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Smile WinRunner FAQ's

1) How you used WinRunner in your project?
a) Yes, I have been using WinRunner for creating automated scripts for GUI, functional and regression testing of the AUT.

2) Explain WinRunner testing process?
a) WinRunner testing process involves six main stages
i. Create GUI Map File so that WinRunner can recognize the GUI objects in the application being tested
ii. Create test scripts by recording, programming, or a combination of both. While recording tests, insert checkpoints where you want to check the response of the application being tested.
iii. Debug Test: run tests in Debug mode to make sure they run smoothly
iv. Run Tests: run tests in Verify mode to test your application.
v. View Results: determines the success or failure of the tests.
vi. Report Defects: If a test run fails due to a defect in the application being tested, you can report information about the defect directly from the Test Results window.

3) What is contained in the GUI map?
a) WinRunner stores information it learns about a window or object in a GUI Map. When WinRunner runs a test, it uses the GUI map to locate objects. It reads an object’s description in the GUI map and then looks for an object with the same properties in the application being tested. Each of these objects in the GUI Map file will be having a logical name and a physical description.
b) There are 2 types of GUI Map files.
i. Global GUI Map file: a single GUI Map file for the entire application
ii. GUI Map File per Test: WinRunner automatically creates a GUI Map file for each test created.

4) How does WinRunner recognize objects on the application?
a) WinRunner uses the GUI Map file to recognize objects on the application. When WinRunner runs a test, it uses the GUI map to locate objects. It reads an object’s description in the GUI map and then looks for an object with the same properties in the application being tested.

5) Have you created test scripts and what is contained in the test scripts?
a) Yes I have created test scripts. It contains the statement in Mercury Interactive’s Test Script Language (TSL). These statements appear as a test script in a test window. You can then enhance your recorded test script, either by typing in additional TSL functions and programming elements or by using WinRunner’s visual programming tool, the Function Generator.


- Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-16-2007, 11:41 PM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Cool Re: WinRunner FAQ's

1) How does WinRunner evaluates test results?
a) Following each test run, WinRunner displays the results in a report. The report details all the major events that occurred during the run, such as checkpoints, error messages, system messages, or user messages. If mismatches are detected at checkpoints during the test run, you can view the expected results and the actual results from the Test Results window.

2) Have you performed debugging of the scripts?
a) Yes, I have performed debugging of scripts. We can debug the script by executing the script in the debug mode. We can also debug script using the Step, Step Into, Step out functionalities provided by the WinRunner.

3) How do you run your test scripts?
a) We run tests in Verify mode to test your application. Each time WinRunner encounters a checkpoint in the test script, it compares the current data of the application being tested to the expected data captured earlier. If any mismatches are found, WinRunner captures them as actual results.

4) How do you analyze results and report the defects?
a) Following each test run, WinRunner displays the results in a report. The report details all the major events that occurred during the run, such as checkpoints, error messages, system messages, or user messages. If mismatches are detected at checkpoints during the test run, you can view the expected results and the actual results from the Test Results window. If a test run fails due to a defect in the application being tested, you can report information about the defect directly from the Test Results window. This information is sent via e-mail to the quality assurance manager, who tracks the defect until it is fixed.

5) What is the use of Test Director software?
a) TestDirector is Mercury Interactive’s software test management tool. It helps quality assurance personnel plan and organize the testing process. With TestDirector you can create a database of manual and automated tests, build test cycles, run tests, and report and track defects. You can also create reports and graphs to help review the progress of planning tests, running tests, and tracking defects before a software release.


-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-16-2007, 11:44 PM
simplesabita simplesabita is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 170
simplesabita is on a distinguished road
Default Re: WinRunner FAQ's

Hi,

How you integrated your automated scripts from TestDirector?.


Sabita
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-16-2007, 11:44 PM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Smile Re: WinRunner FAQ's

When you work with WinRunner, you can choose to save your tests directly to your TestDirector database or while creating a test case in the TestDirector we can specify whether the script in automated or manual. And if it is automated script then TestDirector will build a skeleton for the script that can be later modified into one which could be used to test the AUT.


-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-16-2007, 11:48 PM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Question Re: WinRunner FAQ's

What is the disadvantage of loading the GUI maps through start up scripts?


-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-16-2007, 11:50 PM
simplesabita simplesabita is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 170
simplesabita is on a distinguished road
Default Re: WinRunner FAQ's

Hi,

If we are using a single GUI Map file for the entire AUT then the memory used by the GUI Map may be much high. If there is any change in the object being learned then WinRunner will not be able to recognize the object, as it is not in the GUI Map file loaded in the memory. So we will have to learn the object again and update the GUI File and reload it.

Sabita
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-17-2007, 12:00 AM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Question Re: WinRunner FAQ's

Hi All,

Anyone have the experience in migrating WinRunner TSL Scripts into QTP VB Scripts, either using any third party tool, not calling the TSL scripts in QTP. If you then let me know.




-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-17-2007, 12:01 AM
simplesabita simplesabita is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 170
simplesabita is on a distinguished road
Default Re: WinRunner FAQ's

Hi,

There is tool called QTP Genei which converts winrunner scripts to QTP scripts. Sierra Atlantic, Hyderabad has developed that tool.

Sabita
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 11-17-2007, 12:43 AM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Red face Re: WinRunner FAQ's

Hi frds,

In GUI Testing, i have used GUI checkpoints to check the
properties. In future reference if i need to view the actual screen of
GUI properties that has failed.Where will i find it?

Waiting for the reply...

-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 11-17-2007, 12:45 AM
simplesabita simplesabita is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 170
simplesabita is on a distinguished road
Default Re: WinRunner FAQ's

Hi,

All these values are stored in EXP folder.


Sabita
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 11-19-2007, 11:21 PM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Question Re: WinRunner FAQ's

Hi All,

There is table in an application whose location keeps changing.To
overcome this i used regular expression.The following is the statement that used to regularize:

NewWebTable= "{ class: \"object\", MSW_class: \"html_table\ ",
location: \"![0-9][0-9] \"}";

But it displays a syntax error.


Could any of you point the error in this statement & let me know
the correct one.

Thank you
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 11-20-2007, 01:53 AM
simplesabita simplesabita is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 170
simplesabita is on a distinguished road
Smile Re: WinRunner FAQ's

Hi Shanthi

In descriptive scripting u should use quotes - "";
Try without using the ""
for eg:
NewWebTable= "{ class: object, MSW_class:html_ table, location:[0- 9]
[0-9]}";
Just try this and let me know.

-Sabita
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 11-20-2007, 02:03 AM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Smile Re: WinRunner FAQ's

Thanks sabita, will try out and let know the result.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 11-20-2007, 02:06 AM
simplesabita simplesabita is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 170
simplesabita is on a distinguished road
Question Re: WinRunner FAQ's

What is the command in Winrunner to invoke IE Browser?



-Sabita
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 11-20-2007, 02:07 AM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Cool Re: WinRunner FAQ's

Sabi,

Use this command,

web_browser_invoke(IE,URL);


-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 11-20-2007, 02:10 AM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Wink Re: WinRunner FAQ's

Framework of winrunner?

Depending on the Project what Architecture we had Designed (Test Automation Architecture For Winrunner) for the project. We will place all the folders in our centralized repository like this COMPANYNAME_PROJECTNAME_AUTOMATION this is the main folder and the sub folders are Ex: Test Data,GUI


-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 11-20-2007, 02:13 AM
simplesabita simplesabita is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 170
simplesabita is on a distinguished road
Question Re: WinRunner FAQ's

Shanthi,

Let me know what is the use of framework in WR?



-Sabita
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 11-20-2007, 02:15 AM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Cool Re: WinRunner FAQ's

It is the Template test provides a basic framework of an automated test that navigates through your application. It opens and closes each window, leaving space for you to add code (through recording or programming) that checks the window WinRunner, Mercury Interactive and the Mercury Interactive.


-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 11-20-2007, 02:18 AM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Post Re: WinRunner FAQ's

Difference between set_window and window_activate:

set_window function is used for giving input to the window.

win_activate function is used for the activate window.Note: In scripts, important to use win_activate function before set_window function in point of syncronization

-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 11-20-2007, 02:23 AM
Shanthi Shanthi is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 346
Shanthi is on a distinguished road
Post Re: WinRunner FAQ's

1. WinRunner testing process involves six main stages

• Create GUI Map File so that WinRunner can recognize the GUI objects in the application being tested
• Create test scripts by recording, programming, or a combination of both. While recording tests, insert checkpoints where you want to check the response of the application being tested.
• Debug Test: run tests in Debug mode to make sure they run smoothly
• Run Tests: run tests in Verify mode to test your application.
• View Results: determines the success or failure of the tests.
• Report Defects: If a test run fails due to a defect in the application being tested, you can report information about the defect directly from the Test Results window.

2. What is Contained in the GUI Map ?
WinRunner stores information it learns about a window or object in a GUI Map. When WinRunner runs a test, it uses the GUI map to locate objects. It reads an object’s description in the GUI map and then looks for an object with the same properties in the application being tested. Each of these objects in the GUI Map file will be having a logical name and a physical description.
There are 2 types of GUI Map files.
• Global GUI Map file: a single GUI Map file for the entire application
• GUI Map File per Test: WinRunner automatically creates a GUI Map file for each test created.

3. How Does WinRunner recognize objects on the Application?
WinRunner uses the GUI Map file to recognize objects on the application. When WinRunner runs a test, it uses the GUI map to locate objects. It reads an object’s description in the GUI map and then looks for an object with the same properties in the application being tested.

4. How Does WinRunner evaluates test Results?

Following each test run, WinRunner displays the results in a report. The report details all the major events that occurred during the run, such as checkpoints, error messages, system messages, or user messages. If mismatches are detected at checkpoints during the test run, you can view the expected results and the actual results from the Test Results window.

5. Have You Created test Scripts and what is contained in the Test Scripts?

Yes I have created test scripts. It contains the statement in Mercury Interactive Test Script Language (TSL). These statements appear as a test script in a test window. You can then enhance your recorded test script, either by typing in additional TSL functions and programming elements or by using Win Runner’s visual programming tool, the Function Generator.

-Shanthi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/testing-tools/4522-winrunner-faqs.html
Posted By For Type Date
DiscussWeb IT Community - Technical Support and Technology Discussions This thread Refback 11-24-2007 12:09 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Winrunner 6.0 and 7.0 vigneshgets Software Testing 1 11-12-2007 11:32 PM
Winrunner 8.X simplesabita Testing Tools 1 09-07-2007 04:01 AM
framework of winrunner simplesabita Testing Tools 1 08-22-2007 04:32 AM
Winrunner Shanthi Testing Tools 1 08-10-2007 05:55 AM
How to use sql queries in WinRunner/QTP vigneshgets Software Testing 1 05-17-2007 05:20 AM


All times are GMT -7. The time now is 06:25 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0