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

maximum length of testcase

1 Answers  


Could anyone please let me know what are the test cases for a rule based system? WE have a module on RBS which relates the data gathered to a set of rules and uses them to verify if the details are correct. Also we have a data acquisition module which collects the configuration details of a node entering a cluster using the CPUID. Can you please suggest test cases for these two modules, please?

0 Answers  


write a test case for yahoo login page ? input data user:6 alpha numeric;password:10 letters....10 pstive test cases and 10 negative test cases?

5 Answers   CTS, iGate, Magic Software,


What is test environment? Elaborate with example.

0 Answers  


is test cases are necessary for testing non functional testing

1 Answers   MSCI,


how to write test case on gmail for TO field in compose page? only for the particular field.what will different type of user do with it like student,doctor?

0 Answers   PMC,


Write 10 test cases for the condition P=R/I where R and I are integer and P is floating point.

6 Answers   Adobe,


could somebody plz tell me the test cases on online credit card payment?

4 Answers  


How would you do " Keeping two folders in sync testing"

0 Answers   ABC, HCL, Microsoft,


Write test cases for bulb.

9 Answers  


how to write testcase for the output of an program ****0 ***01 **012 *0123 01234

0 Answers  


How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other: if (Condition 1) then statement 1 else statement 2 end if if (Condition 2) then statement 3 end if A. 2 Test Cases B. 3 Test Cases C. 4 Test Cases D. Not achievable

1 Answers   ISTQB,


Categories