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

in any software company how we got the srs document.how we get it is it available in version control or in mannual we get the document

7 Answers   AppLabs, Pinsoftek Infosolutions, TCS,


How does one write Test Cases?

7 Answers  


how to write test case for check box like check boxes in gmail and yahoo inbox

1 Answers  


why we need a test plan

11 Answers  


write a buisness scenerio on yahoo login page.

4 Answers   Hewitt,






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

4 Answers  


For the following piece of code, how many test cases are needed to get 100% statement coverage? Procedure X Read (Color) // Input color from user IF (Color == “Red”) THEN Call Roses(Color) ELSEIF (Color == “Blue”) THEN Call Violets(Color) ELSE PRINT “User is no Shakespeare” SaveToDatabase(Color) End Procedure X A. 5 B. 3 C. 1 D. 2

1 Answers   ISTQB,


What is use case testing?

0 Answers  


How to write testcases for username creation?Given requirements are min 6characters,atleast one alphabet,alpha,alphanumric

2 Answers  


Using the same code example as question 17,how many tests are required to achieve 100% branch/decision coverage? A. 1 B. 2 C. 3 D. 4

1 Answers   ISTQB,


Write test cases on for windows media player?

1 Answers   CGI, COG, QMCPL,


test cases for login window

1 Answers  


Categories