GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  Winrunner
Go To First  |  Previous Question  |  Next Question 
 Winrunner  |  Question 463 of 464    Print  
WinRunner Function
What are the use of these functions in WinRunner?
1. substr
2. load
3. edit_get_list
4. invoke_application



  
Total Answers and Comments: 1 Last Update: August 21, 2008     Asked by: Param v Deshwal 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 21, 2008 04:26:01   #1  
a_katiyar Member Since: August 2008   Contribution: 14    

RE: WinRunner Function

1 - substr : extracts a substring from a string.
syntax: substr (string position length);
string - string to be used
position - integer position from where you want to start extracting the string. (first character position is 1)
length - upto what point youwant to extract string
for eg. if you have a string say str winrunner; and you want to extract a part of that string then you can use.
sMainStr "Winrunner";
sFinalStr substr (sMainStr 4 8);
report_msg ("sFinalStr"); # sFinalStr "runne"


2- load: loads a compiled module into memory
syntax: load(module_name);
You can make your scripts as compiled module (File->Test Properties; Test Type) say you have your code defined as different functions and you want to call these functions from/inside different scripts for this you can make your script(or set of scripts) with all

your code as compiled module and "load" it before calling funcitions.

You can use "unload " at end of your test.


3 - invoke_application : invokes a window application from within a test script
syntax: invoke_application(file command_option working_dir show);
file : full path of application
command_option : command line options to apply (optional)
working_dir : working directory for the specified application
show : how application appears when opened
eg. invoke_application("calc" "" "" SW_SHOW); #opens win calculator application

4- edit_get_list : not sure if this function exist.
For what pupose you want to use this function may be i can suggest any altenate function.

Hope you get some idea on above functions for detailed usage refer WR "TSL Online Reference"

Regards
- AK


 
Is this answer useful? Yes | No

 Related Questions

Yes, I have been WinRunner for creating automates scripts for GUI, functional and regression testing of the AUT.  
Latest Answer : How you are using winrunner to perform the same task by numerous users?Are you doing a data driver wizard ? But using which you cant check the simultaneous use by number of user.RegardsAmol Kokane ...

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

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 
Latest Answer : The GUI map holds the information about the properties of the object such as name,value,color size.it gives you the detail description abt the properties of the object ...

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 
Latest Answer : Winrunner recognize object through GUI ,GUI is the Interpriter bitween User Application and WinRunner,It Recognize Object through script  in logical name of object and physical discription. ...

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 
Latest Answer : Yes. The test script is written in TSL (test script language) and it contains all the information that we have recorded using the winrunner tool. Information = what all are the objects that are been recorded, what all the actions performed by the winrunner ...

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 
Latest Answer : Winrunner doesnt evaluate results actually. It displays the system error messages, user messages and the test pass or fail criteria and the information about whether the checkpoint comparison passes or fails ...

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 
Latest Answer : Debugging of scripts can be performed using Step in, Step inout commands and break points. Add watch is used to check the value of the variables at runtime. ...

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 
Latest Answer : We can run the scripts in Verify mode inorder check the behaviour of the application under controlled condiitions. Verify mode is the default run mode. ...

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 
Latest Answer : The test result contains information about the steps which are pass and failed due to defect in the AUT. If there is any mismatch in the checkpoints it is also reported as fail in the result. Based on this we can report the defects to QA manager through ...

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 
Latest Answer : we can integrate the automated scripts with TD by storing the script in TD database. We can run the scripts from TD by establishing connection with the TD using startup scripts. ...


 Sponsored Links

 
Related Articles

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++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

C++ Function Passing Types

C Function Passing Types In this C tutorial you will learn about function passing types two types of arguments passing in functions passed by value  and  passed by reference are discussed here mosgoogle center The arguments passed to a function can be performed in two ways Passed
 

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 DECODE function used for?

DECODE is used to decode a CHAR or VARCHAR2 or NUMBER into any of several different character strings or numbers based on value. That is DECODE does a value-by-value substitution. For every value that is given in the DECODE function it makes an if then check and matches the value. The general format
 

printf() Function Return Value

What is the return value from printf() function? printf function always returns the number of characters printed. Let us understand this with an example: main() { int a=10; printf("%d",printf("%d %d %d", a,a,a)); } In this above program the inner printf i
 

How is the main() function declared?

The declaration of main can be done as int main() One more declaration that can be taken by main is command line arguments form int main(int argc, char *argv[]) or this can also be written as int main(argc, argv) int argc; char *argv[]; NOTE: It is not possible for one to declare the main
 

How does the function call within function get evaluated?

Whenever we have more than one function which is called for a finite number of times then such a function gets evaluated from inside out. Let us understand this concept with an example. For instance consider a function sample called within it 4 times as given in program below: main() { int a=50;
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

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