Jump to content
ChetanaSforum
Sign in to follow this  
castaway

(FAQ) AUTOMATION TESTING - FEW FAQ

Recommended Posts

Add if you want to add QUESTIONS to this !

OR any extra points to this answers u can add!!!

What are the virtual objects and how do you learn them ?

 

1.Applications may contain bitmaps that look and behave like GUI objects. WinRunner records operations on these bitmaps using win_mouse_click statements. By defining a bitmap as a virtual object, you can instruct WinRunner to treat it like a GUI object such as a push button, when you record and run tests.

2.Using the Virtual Object wizard, you can assign a bitmap to a standard object class, define the coordinates of that object, and assign it a logical name.

 

To define a virtual object using the Virtual Object wizard:

 

1. Choose Tools > Virtual Object Wizard. The Virtual Object wizard opens. Click Next.

2. In the Class list, select a class for the new virtual object. If rows that are displayed in the window. For a table class, select the number of visible rows and columns. Click Next.

3. Click Mark Object. Use the crosshairs pointer to select the area of the virtual object. You can use the arrow keys to make precise adjustments to the area you define with the crosshairs. Press Enter or click the right mouse button to display the virtual object's coordinates in the wizard. If the object marked is visible on the screen, you can click the Highlight button to view it. Click Next.

4. Assign a logical name to the virtual object. This is the name that appears in the test script when you record on the virtual object. If the object contains text that WinRunner can read, the wizard suggests using this text for the logical name. Otherwise, WinRunner suggests virtual_object, virtual_push_button, virtual_list, etc.

5. You can accept the wizard's suggestion or type in a different name. WinRunner checks that there are no other objects in the GUI map with the same name before confirming your choice. Click Next.

 

How you created you test scripts 1. by recording or 2. programming ?

 

We can create the script using both Recording or by Programming

using recording it will gives lot of problems its better to go for programming ...

 

What is a checkpoint and what are different types of checkpoints ?

 

Checkpoints are used to compare actual and expected results.

 

They are 4 types of checkpoints

 

1. GUI Check point

2. Bitmap Checkpoint

3. Database Checkpoint

4. Test Checkpoint

 

What are data driven tests ?

 

Running the same test script with different inputs. Inputs may be stored in Excel sheet.

 

The steps involved in data driven testing are:

1. Creating a test

2. Converting to a data-driven test and preparing a database

3. Running the test

4. Analyzing the test results.

 

What are the synchronization points ?

 

Synchronization is the safe mechanism for memory leakage problem. In which we can modify one thread to complete another thread's process and then executes other. ( or ) Synchronization is a process of letting one thread to access the method while all other thread are waiting, which avoids deadlock.

 

Synchronization Point is of three types.

 

1. Object/Window property

2. Object/Window bitmap

3. screen area bitmap.

 

What is parameterizing ?

 

In order for WinRunner to use data to drive the test, you must link the data to the test script which it drives. This is called parameterizing your test. The data is stored in a data table.

 

How do you maintain the document information of the test scripts ?

 

Before creating a test, you can document information about the test in the General and Description tabs of the Test Properties dialog box. You can enter the name of the test author, the type of functionality tested, a detailed description of the test, and a reference to the relevant functional specifications document.

 

What do you verify with the GUI checkpoint for single property and what command it generates, explain syntax ?

 

You can check a single property of a GUI object. For example, you can check whether a button is enabled or disabled or whether an item in a list is selected. To create a GUI checkpoint for a property value, use the Check Property dialog box to add one of the following functions to the test script:

1. button_check_info

2. scroll_check_info

3. edit_check_info

4. static_check_info

5. list_check_info

6. win_check_info

7. obj_check_info

 

Syntax: button_check_info (button, property, property_value );

edit_check_info ( edit, property, property_value );

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×