GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  WinRunner
Go To First  |  Previous Question  |  Next Question 
 WinRunner  |  Question 56 of 146    Print  
hi,
i am new to this winrunner tool. can anybody solve my following problem?

if this is TSL script for login window

set_window ("Login window", 1);
edit_set ("Username:", "engineering");
edit_set ("Password:", "computer");
button_press ("ok");

before writing TSL script for login window should i write following TSL for creating password dialog box?

create_ password_ dialog (login, password, login_ out, password_ out);

suppose password is wrong then how to write TSL script for pop-up message.


  
Total Answers and Comments: 5 Last Update: January 28, 2008     Asked by: umesh 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 11, 2006 01:59:04   #1  
Senthil Kumar P        

RE: hi,i am new to this winrunner tool. can anyb...

Hi

Your script for login screen shouldn't work.

for password field you have to use below script

edit_set("Name of the password field",password_encrypt("your password"));

otherwise

password_edit_set("your Password field","encrypted password");

suppose if you got any pop-up msg you can handle it with help of recovery manager.

I hope i answered your questions


 
Is this answer useful? Yes | No
December 05, 2006 22:44:06   #2  
gautam        

RE: hi,i am new to this winrunner tool. can anyb...
you have to do the recovery scenario here for the wrong password dailog box
 
Is this answer useful? Yes | No
December 06, 2006 16:00:14   #3  
scott Dachishen        

RE: hi,i am new to this winrunner tool. can anyb...

Before you write any code you should scope out what your proofs will be.

Test automation is an engineering process with that said it is advisable to

1) establish test scope

2) generate requierd gui map inventory

In your example of login i would hope you are minimally testing system denial and system access.

If this is the case then you will need to minimally produce one negative result which in most cases will produce a popup indicating such. This is itself a branch of logic that should be tested. This will also highlight up front the need for the popup to be learned named and saved in the proper gui map.

Now with that out of the way you pick your login data  because it will produce a predicatable result

valid id valid pass = system access. Any deviation from this is a defect regardless of the stimuli. 

So dont waste time wirting fancy recovery code? what are you recovering from? a defect? Attacking the "what" will make the "how" much easier .

The core of automated testing is to writev softwarevto effectively and efficiently prove the application under test is acting as expected.


 
Is this answer useful? Yes | No
December 21, 2007 18:40:27   #4  
Priyarun Member Since: September 2007   Contribution: 2    

RE: hi,i am new to this winrunner tool. can anybody solve my following problem?if this is TSL script for login window set_window ("Login window", 1);edit_set ("Username:", "engineering");edit_set ("Password:", "computer");button_press ("ok");before writin
To create a password dialog box, u have to use
create_ password_ dialog (login, password, login_ out, password_ out);

To set a value to password edit field,
use: password_edit_set(logicalname, encryptedpassword)

To encrypt your password,
use: password_encrypt(password)

You can also use the edit_set, type, and obj_type TSL functions to set apassword, however the password_edit_set function provides extra security by

eliminating the password from the test script.


Correct me if I'm wrong.


 
Is this answer useful? Yes | No
January 28, 2008 07:27:03   #5  
sushma_srikrishna Member Since: November 2007   Contribution: 20    

RE: hi,i am new to this winrunner tool. can anybody solve my following problem?if this is TSL script for login window set_window ("Login window", 1);edit_set ("Username:", "engineering");edit_set ("Password:", "computer");button_press ("ok");before writin
new_password=password_encrypt(password);
password_edit_Set("Password:",new_password);

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape