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

consider a program module that inputs two (2) values, n and max, and computes the sum of the first n integers as long as this sum is less than max; otherwise an error should be reported. if n is negative, then it takes the absolute value. a) list the equivalence partitions, and b) list the boundary values.

0 Answers  


Consider the following: Pick up and read the newspaper Look at what is on television If there is a program that you are interested in watching then switch the the television on and watch the program Otherwise Continue reading the newspaper If there is a crossword in the newspaper then try and complete the crossword A. SC = 1 and DC = 1 B. SC = 1 and DC = 2 C. SC = 1 and DC = 3 D. SC = 2 and DC = 2 E. SC = 2 and DC = 3

1 Answers   ISTQB,


How to write test scenarios for a Web application, with an example?

3 Answers   Deloitte, LiveTech, TCS,


How to write test case for this scenario. The Contact Information screen shall be displayed to the user during Case Create (Local Only),

1 Answers  


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

0 Answers  






What is transaction testing?

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 cases and test plan?

2 Answers  


test cases for traffic signals in a four raod junction.

5 Answers   iGate,


write the testcases for migrating data from one database to another database?

0 Answers   Wipro,


what are the possible test cases for sending an sms from mobile

2 Answers  


Can anyone tell me the test cases for Operating System.

1 Answers  


Categories