Answer Posted / jay prakash
Function call is done if there is already some function is
available in QTP or Function library. Than to save the
efforts we simply call the function and use the script.
It avoids the reduncdency in script.
For example there are sevaral function available in QTP
like Date, Time, Abs, Sgn, Array etc etc. So why to waste
time again in defining and creating such libraries ??
Please let me know if it satisfies you.
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
after click on compose mail how can we attached a file in qtp with vbscript code
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 modular framework & datadriven framework
How can i check items sorted or not in a weblist ? Give me the script for this...
How to give a call to another action from one action?
Explain the difference between check point and output value?
in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?
Explain in brief about the qtp automation object model (aom).
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.
how will you check how many members visited the website www.infosys.com?
What are the challenges u faced in testing with crm domain? How u overcome with?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
How can I import environment from a file on disk?
What are the ordinal identifiers in web page?
What is different command used in command Prompt while using QTP?