Call vbscript Function in QTP

How to call a function created by using vbscript in QTP

Questions by sriram_tvs   answers by sriram_tvs

Showing Answers 1 - 6 of 6 Answers

Hi
           Can you specify wat you wanna to ask, plz

According to me

1: There is a framwork where you keep your all files (scripting) After defining functions.
 
2: Go to File-->Settings---> there will be (+) sign and browse (there give te file path)

3: you can check you are on the way or not by clicking on giving two options just blow, afte click on 2nd option you will find a message (valid or not)

4: and press "ok"

5: go to your QTP and write function name to which you are going to call remember function shhould be in that file you have set path for which?

6: as you will write function name and give a space this will ask you fr arguments.

  Was this answer useful?  Yes

stevelink

  • Feb 2nd, 2009
 

Greetings!

In QTP 9.5, you can parameterize your user names and passwords, and then the script will run for each iteration and use the different user names and associated passwords.


For example, after you script to log into the AUT with a single user, in Keyword view, on the "username" "Value" column, select it and click the "" icon to configure the value in the QTP data table below (Be sure to have "Data Table" checked in the View menu first.)


In the View Configuration Options dialog, select "Parameter" radio button.

In the "Name" dropdown, key in "User Name" or something like that.
Click OK and you'll see a new column in the data table called "User Name".
Do the same for "Password". Then, in the data table, you can input any number of user names and passwords.

After saving the script, make sure that you have set "Run on All Rows" selected in File> Settings> Run> Data Table Iterations.

Now, when you run your script, QTP will have your AUT log in with each defined user name! Good luck!


Steve
steve DOT solomon AT streamenergy DOT net

  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