Where we write the FUNCTIONS, in Expert view (or) in any
textfiles like Notepad and save it in Library functions
folder? How to cal that functions to our script? How to
save that functions to Function generator?
Answer Posted / abhesheke
it very easy dude
i will tell u
assume i have written a function in notepad and save it with
.vbs extension
"assume this is the function written in notepad"
function Testing
msgbox("welcome to testing world")
end Function
now add this to the library
navigation is test->setting->resources (add this file there)
and in ur expert view just write the function name i.e
Testing run the script it will work
i hope u understood dude any doubt ping me
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to check which add-ins are associated with a test in qtp?
What are the different ways to invoke an application using QTP?
What is parameter in qtp?
when u script reveiwing in which area u more concentrates?
How do client side image and server side image work?
What are the types of properties that quick test learns while recording?
How would you directly trigger javascript in a test?
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
What are the five challenges you faced in QTP?
What are the challenges you faced during you entire life automation ?
What is the parameterization?
desribe a situation where u faced a stressful situation and how did u cope with it
How to use the object spy in quicktest professional (qtp) 8.0 version?
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example