If a object property is changed in the application. where
it should be updated in QTP...
Pls anybody can give the answer.. Thanks in advance...
Answers were Sorted based on User's Feedback
Answer / bharath
we should change the object property values in object
repository
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sanjay sharma
First know which property is changed.
Based on this you need to write descriptive programming to
identify the object.
Then perform any methods or properties to get the result.
| Is This Answer Correct ? | 0 Yes | 0 No |
we can do in two ways
first changing the property in the object repository
and by using SetToProperty we can handle during runtime.
and if u changed any property in object repository after
writing the script, it is better to run in update mode.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / krishnateja muppalla
Some ways based on different applications
Descriptive programming,
Update and Run (so that script will be changed and object will be added to repository) or other way also. Update in your repository and write code according to it.
Make use of SetToProperty also
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a script to delete the a specific row (say 3rd) in a webtable.
Do you know how to connect database? Can you tell me the procedures?
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
Define Canvas view of UFT?
What is the difference between per-action and shared?
when we right click on the desktop of any operating system we find a menu , consisting of refresh,edit,open,paste and cut etc... how to load the object and object properties of that menu in QTP
Among all the check points what is the most important checkpoint?
Diff b/n image n bitmap checkpoints?
How many types of parameters are there in QTP and what are they?
i am entering wrong data or wrong password in a text box and click on submit button .i am getting a popup window with a message Please enter the correct password or data .How can i handle this situation by using QTP.
results.xls file is automatically generated while running the script in QTP.But it is showing error to open the file
How can we upload pdf files in qtp?