how do u call a from library file

Answers were Sorted based on User's Feedback



how do u call a from library file..

Answer / 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

how do u call a from library file..

Answer / raveendra

whenever u want to call the functions using
executivefile.path/file .vbs file method

Ex: excutive"\*.*\countchar(textvalue)"/*calling the vb
script file

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Test Cases Interview Questions

how do you write the test cases?

4 Answers   Satyam,


write the high level test cases for winzip file

2 Answers   QA,


Do you know mutation testing?

0 Answers  


what is the technology used in financial applications?

0 Answers   ADP,


How can we write a good test case?

0 Answers  






how can we write test cases with help of functional spec? is it not appropriate to write by using the application?

3 Answers  


Who will take care of test plan and test case?

1 Answers  


how to test ip address?

3 Answers   Cisco, QSpiders, Satyam,


write a test case for car

2 Answers   Impact Systems,


how to write a test cases for Quick links like Feedback/Suggestions Advertise with us Contribute Invite a Friend FAQs Make HomePage RSS Feed Buzz Words Email Privacy Statement Terms & Conditions Copyright Disclaimer Download Forgot Password

0 Answers   Cap Gemini,


Write a test case of login window?

0 Answers  


write a test case for a pen and paper regarding writing.

11 Answers   HCL, Wipro,


Categories