how do u call a from library file

Answer Posted / nanda.d reddy

Hi,

it is not executive. it is executefile method.


first save ur function file in .vbs format.

u can call them in two ways.

1) with out storing them in associated library files, by
using executefile and call methods.

2) with storing in associated library files and using call
method.

coming to first method:

executefile "<file Path>"(ex: "d:\mydocuments\nanda\login.vbs"
call login_open()

Here executefile executes the funtion file but not a single
function.
call method calls a function in that executed file.
(remember that diff. between xecutefile and call methods.
Executefile executes a script file, and call functions calls
a single function in that execute file)

coming to second method:

go to menu bar--select test menu---select settings--select
resources--click on add(+) button in associated library
files section)--browse the script file and click on
open---click on apply--click on OK.

now come to expert view--write

call function() (Here Function refers the function which
available in that stored file)

the interviewer may ask that what is the diff. between above
two methods...

executefile method uses only in single action where it written.

but second method will use entire test.

I think u got my answer....if no...let me know pls..

sudhanandareddy@gmail.com

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to write a test cases for courier offices?

3355


plz.. tell me hw to write the Use Case for Online Purchase... just tod. itself i need...

1900


Hi there Just done with QTP training. I am looking out for a job. can any one share your experinces in real time job. I mean How the work flow goes and what other things do i have to learn for getting a job. please respond ASAP this is urgent for me. Regards Lina.

1724


What is the toughest moment you faced in your testing carrier in which everyone praised you?

1814


Write a test case for telephone?

690






Can any tell to create test data for SUM (calculation), Scenario is 0 to 9 digits are available as we see in the calculator, I want to certify that the sum of the two numbers are working fine by providing test data.

2050


Explain the branch coverage testing?

696


How to write test case for this scenario. The system shall auto populate the Email Address on the contact screen with the Email Address of the user profile 

1656


how to write test cases for online restaurant table booking system?

10407


Explain the integration testing?

699


How to write test case for this scenario. The text field that reads “ enter SDU number or the city and state of the SDU” shall be removed from the contact screen 

1564


Explain the soak testing?

682


What are the detailed test cases for Vacations Rental websites (Admin,Traveler,Rental owner)?

2484


How to write a test case for create folder in the email. create aliases for email adress in the email. thanks Its urgent

2103


how to test stand alone programs?

2086