GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  Winrunner
Go To First  |  Previous Question  |  Next Question 
 Winrunner  |  Question 99 of 464    Print  
Write and explain decision making command?
You can incorporate decision-making into your test scripts using if/else or switch statements.
i. An if/else statement executes a statement if a condition is true; otherwise, it executes another statement. It has the following syntax:
if ( expression )
statement1;
[ else statement2; ]
expression is evaluated. If expression is true, statement1 is executed. If expression1 is false, statement2 is executed.
b. A switch statement enables WinRunner to make a decision based on an expression that can have more than two values. It has the following syntax:
switch (expression )
{
case case_1: statements
case case_2: statements
case case_n: statements
default: statement(s)
}
The switch statement consecutively evaluates each case expression until one is found that equals the initial expression. If no case is equal to the expression, then the default statements are executed. The default statements are optional.



  
Total Answers and Comments: 0 Last Update: April 13, 2007   
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

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, 
Latest Answer : create the GUI MAP: The first stage is to create the GUI MAP So WinRunner can recognize the GUI Objects in the application being tested.Use the Rapid Test script wizard to review the user interface of your application and systematically add description ...

Set_Window command sets the focus to the specified window. We use this command to set the focus to the required window before executing tests on a particular window. Syntax: set_window(, 
Latest Answer : set_window is the command which is used to set the focus on the specific window.  For example when one or more windows are opened simultaneoulsly and the current application to which the user working is 'set_window'. When second window is ...

We can load a GUI Map by using the GUI_load command. Syntax: GUI_load();  
Latest Answer : we can load gui map in two waysa)by using gui_load functionb)using map editorin this method first open map editor and go to file menu and click on open.it will display gui map files.click on open .then the gui file will be loaded.the letter L before ...

We can use GUI_close to unload a specific GUI Map file or else we call use GUI_close_all command to unload all the GUI Map files loaded in the memory. Syntax: GUI_close(); or GUI_close_all; 
Latest Answer : Actually there are two ways of unloading a GUI map:-1. Either by using GUI_close for a single GUI maps fileGUI_close_all for all the GUI map files.2. The other way is that Go to Tools>GUI map editorand then goto File>close all option.Then the GUI map ...

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 

What do you verify with the GUI checkpoint for object/window and what command it generates, explain syntax?
You can create a GUI checkpoint to check a single object in the application being tested. You can either check the object with its default properties or you can specify which properties to check. b. 

What do you verify with the GUI checkpoint for multiple objects and what command it generates, explain syntax?
To create a GUI checkpoint for two or more objects: i. Choose Create > GUI Checkpoint > For Multiple Objects or click the GUI Checkpoint for Multiple Objects button on the User toolbar. If you are recording 

What do you verify with the bitmap check point for object/window and what command it generates, explain syntax?
You can check an object, a window, or an area of a screen in your application as a bitmap. While creating a test, you indicate what you want to check. WinRunner captures the specified bitmap, stores 

What do you verify with the bitmap checkpoint for screen area and what command it generates, explain syntax?
You can define any rectangular area of the screen and capture it as a bitmap for comparison. The area can be any size: it can be part of a single window, or it can intersect several windows. The rectangle 

What do you verify with the database checkpoint default and what command it generates, explain syntax?
By adding runtime database record checkpoints you can compare the information in your application during a test run with the corresponding record in your database. By adding standard database checkpoints 


 Sponsored Links

 
Related Articles

BI Role in Making Corporate Decisions

BI Role in Making Corporate Decisions What is a Corporate Decision A decision that deals with the safety success and livelihood of a business can be defined as a corporate decision These decisions can range anywhere from financial issues and customer satisfaction to product popularity and environmen
 

SQA Software and Tools

SQA Software and Tools In quality assurance it is always important to get all the help we could get In other industries developers could easily check the products manually and discard those that do not meet the standard The length and the width of the product are checked to maintain standardization
 

Business Network Virtual Communication Tools

Business Network Virtual Communication Tools Since ages the Business community heavily relied on face to face communication for building Business relationships Face to face communications formed the basis for trust in a relationship An individual’ s appearance or the physical appearance of
 

C++ Decision Making Statements

C Decision Making Statements In this C tutorial you will learn about decision making statements if statement if… else statement switch statement conditional operator along with syntax and examples mosgoogle center Decision making is an important concept in any programming language and to
 

What are Data Access Tools

Data access is the process of entering a database to store or retrieve data. Data Access Tools are end user oriented tools that allow users to build structured query language (SQL) queries by pointing and clicking on the list of table and fields in the data warehouse. Thorough computing history, t
 

What is the use of truncate command?

Truncate command will delete all records and the most important thing to make note of truncate command is since truncate command cannot be rolled back one must make sure to take proper backup of table data before performing the truncate command. Truncate command is thus used to remove all rows from
 

How to define command line arguments

The main functions can have arguments passed which are called as command line arguments. There are two command line arguments: Argument count denoted by argc and Argument vector denoted by argv The argc is an integer variable which denotes the number of parameters passed and argv is pointer to a
 

Explain about TNSPING

You can also use tnsping utility on command prompt to check Oracle Net connectivity. Follow these steps to check the connection to particular SID. Open Command prompt. Write tnsping < SID for the database connectivity you want to check > If you get the message “Used TNSNAMES
 

Testing and Integration

Once the software is complete, it will go though rigorous testing before its actual integration.  In this article we will take a look at different types of software testing and also different types of integration. With the diversity of business setting and software development models, it al
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape