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

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

2168


WE WANT HEALTHINSURENE PROJECT FUNCTIONAL TEST CASES

2650


What are all the companies are doing manual testing till now ?

1769


how to test a UI and aslo we need to check a log data fil which gets populated in the db.for this two scenarios give me test cases

2189


Explain the branch coverage testing?

918


Sample test cases for data conversion(Utility billing system)

7136


Explain the acceptance testing?

934


write test cases for hospitality management system

2266


How to write test case for this scenario. The First Name data entry field shall be removed from the existing Contact Information screen

1979


Explain the system testing?

902


Which of the following defines the expected results of a test? Test case specification or test design specification.

1349


Write the test case for a login page?

904


Can any one send me the Sample sanity Test Cases??? Mail id:veerabhadrudu.p@gmail.com

3565


For how many days (or) weeks you will test a product or software?

1783


How to write a test cases for the following Please it is urgent Once user clicks that link Invite Friend page opens up thru which user can do 2 functions - first is to search friends detail(name, mail id) from her address book in other sites (india times, yahoo, gmail and rediff) and second to mail the invite to the selected person/s. User can send invite to multiple person at same time. Searching friends detail in other address books will work like this: - User will input name, email id, pwd etc, select from which site she want to get friends list and then click on Import. - Users address book from other sites will be imported in one shot(first time) to iDiva database. - It will be arranged in alphabetical order(complete list) and mail ids which are already used will be in different color. - User will be able to update her address book by clicking on ""Refresh"" button on the page, which will trigger the process again, and fetch new mail ids.

3744