vb script for calling one function to the another function
Answers were Sorted based on User's Feedback
Answer / keerthy
Use the command -> Call <Function Name>
Example:
Call DrawRectangle()
Call DrawTriangle()
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / kalla
Use the command -> Call <Function Name>
Example:
Call yahoo sing (here we can give parameters, and path
regards to application however ,Example: Datatable
("path",dtglobalsheet) , that path should be in datatable )
Call yahoo inbox ()
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the check points 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
Differences between text and test area checkpoints?
suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test each window? i.e. how qtp indetifies these objects separately?
Hi all im having a pop up validation browser which is 20 in number, i want to close those similar pop browsers one after the other, is there any specific code for that? i tried by giving creation time & putting in a loop but it dint work? valid working answers will be greatly appreciated
Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?
what is supply chain management?
I wanted to create Data Driven test for login page (loginname,password). Password is same for all the loginnames. I recorded the script for one user. I mentioned all the user names in the global excel sheet with the column name as "Loginname". I mentioned 5 loginnames. I selected tools- >datadriver and select loginname. Select parameterize and select parameter all option.Changed the parameter name to "loginname" which i mentioned in the global excel sheet. I executed the script. For the users 2 and 4 only, the script is failing... can anybody explain why the script is failing for users 2 and 4.
What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?
Will QTP gets installed on virtual PC.What is the maintenance number to be given
what is smart identification?
how will we run batch tests in qtp what is the process to run the multiple test sets?