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.

Showing Answers 1 - 13 of 13 Answers

Senthil Kumar P

  • Oct 11th, 2006
 

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

  Was this answer useful?  Yes

gautam

  • Dec 5th, 2006
 

you have to do the recovery scenario here for the wrong password dailog box

  Was this answer useful?  Yes

scott Dachishen

  • Dec 6th, 2006
 

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.

  Was this answer useful?  Yes

Priyarun

  • Dec 21st, 2007
 

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.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions