GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  Test Automation
Go To First  |  Previous Question  |  Next Question 
 Test Automation  |  Question 129 of 137    Print  
Script for Synchronization
write down script for synchronization which work intelligently ie it should wait only up to completion of that particular task for which we are using this sync?


  
Total Answers and Comments: 2 Last Update: July 08, 2009     Asked by: baba.sqa 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 10, 2008 00:10:08   #1  
a_katiyar Member Since: August 2008   Contribution: 14    

RE: Script for Synchronization
In case of WinRunner we can use different synchronization functions based on requirements:
These functions waits for the current property value to match with the expected value until the given time expires.
If property value matches much before the given time it will continue to next step instead of waiting for the maximum given time (similer what "wait()" function do).

For example:
button_wait_info(button property exp_value max_time);

This function waits for the button 'property' value to match with 'exp_value' and continue executing next steps In case property does not match it will wait until 'max_time' expires.
###########################

In case you don't know the time limit and you don't want to continue untile property matches then you can use steps similer to given below::
do
{
button_get_info(button property ret_value);
if (ret_value exp_value)
{
report_msg("Property matches;continue with next steps");
break;
}
}
while(TRUE);
#Note: if value do not matches this loop will execute infinite times so always prefer to have some measurement criteria.

Best Regards
-AK

 
Is this answer useful? Yes | No
July 08, 2009 15:46:08   #2  
monogeo Member Since: July 2009   Contribution: 2    

RE: Script for Synchronization
To make the wait time more intelligent I create a function to constantly collect the wait time or network delay from previous actions calculate the global wait time dynamically based on business logic then return the best wait time.
 
Is this answer useful? Yes | No

 Related Questions

1) Running the test manually and ensuring a "pass".2)Recording3)Checkpoints/Verification points4)Parameterization if necessary5)Output values if necessary6)Set regular Expressions if necessary7)Alter 
Latest Answer : What steps have you followed while automating? 1) Running the test manually and ensuring a "pass". 2) Recording 3) Checkpoints/Verification points 4) Parameterization if necessary 5) Output values if necessary 6) Set regular Expressions if ...
Read Answers (1) | Asked by : Bindu Puvvala

The AUT displays 2 numbers on the screen whose sum should be equal to a third number displayed, all the times. We have to customize the script to perform this check. 
Latest Answer : we customize the automated script by inserting checkpoints, sometimes like in data driventests we record our operations one time and later we enclosed in a loop. so that we can automate our data driventests. data driven test is one exanple where u can ...
Read Answers (3) | Asked by : Bindu Puvvala

Latest Answer : GUI checkpoint :Any application we are testing we need to ascertain if it is working according to our requirement specification. This can be ascertained by using the GUI check points.Synchronization :Synchronization Point concept for time balancing in ...
Read Answers (7) | Asked by : ferozbm

Latest Answer : Store the values in global variables, which can be called and used across the scripts. ...
Read Answers (1) | Asked by : prasad

What is a parameter?What is load generator / injector?What is correlation?What is a scenario and where do you set up a scenario?You record a script and run it. It passes but fails on other attempts. Why is this
View Question | Asked by : ola

I tried writing the script from scratch by learning the objects but when i run the script its says the object is not learnt by object repository. 
Latest Answer : No we dont record the script. We learn objects and start writing.Some times if the object is not added, add that object to repository. ...
Read Answers (3) | Asked by : ritu11

write down script for synchronization which work intelligently ie it should wait only up to completion of that particular task for which we are using this sync? 
Latest Answer : To make the wait time more intelligent, I create a function to constantly collect the wait time or network delay from previous actions, calculate the global wait time dynamically based on business logic, then return the best wait time. ...
Read Answers (2) | Asked by : baba.sqa

"Inbuilt Support for Script Maintenance" supported by which automation toola) Rational Robotb) Winrunnerc) Both of the aboved) None of the above 
View Question | Asked by : venvem


 Sponsored Links

 
Related Articles

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
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Recording Test Script With WinRunner

How To Use a Wizard to Record a Test Script With WinRunner If you have a script that you want to convert with WinRunner, you can use the DataDriver Wizard to transform the script into a test that is driven by data. For instance, if you want your test script to include things such as checkpoints or v
 

WinRunner Script Design Tips

Scripts play an important role in the function of WinRunner. Those who wish to successful with this program will need to learn how to properly create scripts. In this article, I will provide you with a number of useful tips for script creation. The first tip of script development is to always place
 

Client-Server Testing Technology

Client Server Testing Technology Client Server Software Client server software requires specific forms of testing to prevent or predict catastrophic errors Servers go down records lock I O Input Output errors and lost messages can really cut into the benefits of adopting this network technology Test
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

Software Testing Myths

Software Testing Myths Any IT professional is sure to know the different phases of the Software Development Life Cycle or SDLC namely Feasibility Study Requirement Analysis Design Construction or Coding Testing Implementation Maintenance Support the activities carried out in each phase their sig
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

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