Tell when we call the function? tell with example.

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


Please Help Members By Posting Answers For Below Questions

after click on compose mail how can we attached a file in qtp with vbscript code

1724


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

1427


what is the difference between modular framework & datadriven framework

1674


How can i check items sorted or not in a weblist ? Give me the script for this...

1664


How to give a call to another action from one action?

709






Explain the difference between check point and output value?

576


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?

6485


Explain in brief about the qtp automation object model (aom).

642


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.

1485


how will you check how many members visited the website www.infosys.com?

1576


What are the challenges u faced in testing with crm domain? How u overcome with?

1588


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..

1899


How can I import environment from a file on disk?

625


What are the ordinal identifiers in web page?

737


What is different command used in command Prompt while using QTP?

1852