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

What is explain security testing?

711


Explain the acceptance testing?

687


How should I maintain the test cases and Test Log for different versions/builds of the application.

1964


What is business validation test case?

685


What are semi-random test cases?

852






What is ramp testing?

664


Explain the gray box testing?

719


WE WANT HEALTHINSURENE PROJECT FUNCTIONAL TEST CASES

2353


What are the Test Cases Comes under Regression Suite?

499


IN MY APPLICATION SOME WINDOW IS THERE IT CONSISTS OF SOME 25 LABLES IN THOSE FOR THE ALREADY SELECTED ONE IT WILL SHOW THE BACKGROUND COLOR IS YELLOW WHILE CHECKING IT SHOULD CHECK THE ALL LABLES WHICH ONE IS HAVING YELLOW COLOUR backcolor=SwfWindow("ALTAIR").SwfWindow("Load Wafer").SwfLabel(" ").GetROProperty("backcolor") SUPPOSE LIKE DS IT WILL BE THERE THEN FOR THAT SwfLabel(" ") inside this how to specify is my doubt because i have to check all the 25 labels plz explain it how to specify that

1975


Explain the system testing?

683


how to write test cases for the example state name starts with A B C D E F G H I J K L Z

2076


test cases for bus transport (TNSTC)

2789


Please guide me for Add new user test cases

1095


By clicking the file button on a Word document and opening the Print window, Identify what needs to be white box tested and what needs black box testing. (On the black box testing items, identify boundary conditions and equivalence partition testing is possible and give data examples.)

828