| || |
please help with declaring variables username and password to make use the 'fstartapplication' code in any testscript.I am putting the code in text file...
[This message has been edited by Nidhi Sethi (edited 03-14-2003).]
I don't see your text file attached, so I'll provide a basic example of creating a function to accept a username and password. You should be able to modify it to work for you. Even though this reminds me of a CPS exam question, the CPS certification will be wothless in a few months anyway.
This code creates a function called 'fstartapplication' that takes two parameters (username and password). The function will set the login window, enter the username, enter the password, and then press the login button. In your script, you would use the following syntax to login:
I hope this helps to get you started. Be sure you actually execute the code for the function declaration before you try to use the function or WinRunner will not understand the command.
Best of luck!
Patterson Consulting Services
Developing Software Tools to Help WinRunner Automators