How to call a function in QTP?Is there any method ?


Thanks ,
PRASANNA

Answer Posted / siva

there are twoways
call login( login is a function name) for this we have to
create a function in a notepad and we have to save it
with .vbs extension, then we have to go to settings-
resources-you the show he path of the vbs file) then it
will work perfect or else
executefile"pathof your vbs file"
ex: executefile"d:\\login"
i hopw you can understand

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How often were they executed?

2034


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

560


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

5094


Sql questions to find second max salary and how to use joins

959


What is fragmentation and paging?

1587






Get the count of files of similar types from a folder.

969


What is QTP and the use of QTP in TD?

594


i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression

1020


What is the use of an object spy tool in qtp?

554


How many test scenarios you have automated? How many time it will take to execute 30-40 scenarios? What SDLC model you are following? How often you will execute your test scripts? Because of some changes, your test scripts failed? When you will update your test scripts? How much time it will take to update? Do you know how to connect database? Do you know the direct method to count no. of records (or) rows present in record set once query is executed? How will you create the connection string? How did you resolve conflicts present in Object Repository? How good you are in VB? How will you work on Excel Application? How will you select Excel sheet? If you want to select 10 sheets, will you create 10 separate objects? Given string is “abcd”. What are the methods you will use to display “dcba”? Drives script – explain the frameworks? How you are updating results for each test? What is start up, configuration, navigation scripts? If you are not able to understand the application (some module), who will teach you? What test cases to be automated? When to be automated? What is the testing process you are following? What life cycle you are following? When you will use Descriptive Programming? Do you have the permission to add objects into shared object repository? (OR) someone will maintain SOR? Do you know how to add objects into shared object repository? How many test cases you have automated? How much time will it take to execute? What is complex in automation? When you feel automation is complex? Tell me one scenario, the complex functionality you have automated in your project? Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet. Rate yourself in SQL? Display the employee name who is getting maximum salary? sal ID Salary name 001 100 002 500 003 300 ID 001 002 003 Ename A B C Have you written any test cases while you are in Automation? Manual Testing also will you do or you will work only in automation?

2223


Explain the terms test and business component?

544


What is the difference between a Function and Action in QTP?

585


I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com

1471


How to explain a banking project in interview as a test engineer???

2591


Explain about Test Fusion Report of QTP?

609