what is functions in qtp?i know the userdefind &bulit
funation or i know that Private public function ?plz tell
me what is funations in qtp?how to create a funation in qtp
Answer Posted / shilpa reddy
function is a set of statements written to fulfill the
functionality &for reusable purpose.
we have user defined functions categorised as public and
private functions.
public f/n:is having access to all actions and tests which
associate that function.i mean function code will be stored
in library files with .vbs xtension,before using this
function we should associate that function to our script.
private function:this is used only in the action where it
is created.(it will not work even in another actions of
same test)
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is qtpro? What is a quick test professional?
How do you delete unwanted results in qtp?
I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I am coming across is that when it goes through the second time creating another customer and then verify the second customer then it creates the following during runtime. I want is to have the customer2 below Customer1 under the Customer_from_Apps. Any help will be greatly appreciate it. Customer Customer_from_Apps Customer_from_Apps1 Customer1 Customer 1 Customer2 Customer2 Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Customer_Val= Datatable.GlobalSheet.AddParameter ("Customer_from_Apps",runtimevalue) row=datatable.getsheet("Global").GetRowCount For x=1 to row datatable.SetCurrentRow(x) Data_Val=Datatable.Value("Customer",dtGlobalSheet) If (trim(Customer_Val)=trim(Data_Val)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val else Reporter.ReportEvent micFail, "Cusotmer validation unsuccessful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val End If Next
what is the difference between data driver & data driven and driver script?
What is text check point and text area check point?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
Explain the types of object repository?
If you are testing a web application then what will you test in that application?
please post the interview questions for QA position in FACTSET
How QTP support all types of applications (platforms)?
Is it possible to call win runner script in qtp?
What are the different attributes used with regular expression?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
What are the different ways to invoke an application using QTP?
Explain how qtp identifies objects?