1. How can I check a value against a calculated value, eg if i have (psuedocode)
Dim A
if < 20 then A = A * 1.10
Then how can I use A in a checkpoint
--which value do u want to compare A with?? is it the new value u want to check or is it the old value or both of 'em. Or is that you want to...
After going thru with qtp help ....i think it is possible to get the square boxes into the text after all.
The approach:
copy paste(or getroproperty text of the object)the code u want to enter into the datatable(the squares are converted into spaces in the excel sheet)
Array = Split("the text...
I have tried various approaches to solve this issue but to no avail. The reason it fails is that the square delimiter is a non standard character and most of the applications are programmed to convert non standard character into their own character sets. In this particular case I see that the...
I am really not sure about this but I am taking a wild guess....give it a shot..... Put the whole in Double Quotes and try.
All the best. Pray that I dream of a better solution tonight...hehhehehehheeh
The application that I was testing had many objects(lists,tables etc etc) without names, and any other conventional properties. So I had to use the Index property to uniquely identify the table and BTW using Index makes your script run faster.
Did u get a solution for this? If not could you be more descriptive about the problem and error message. I think I had the same problem and might be able to help you, if you give me more info.
First a little bit of philosophy.....You cannot avoid 'change'.
With regards to your question, Does QTP change the path to a specific button or checkbox.....No it doesn't. The code you have pasted is not about changing the path, QTP is merely adding another(read same) object into the repository...
Your Code:
MM = Month(Mytime)
YY = Year(Mytime)
DD = Day(Mytime)
FileName = "XNYS_"+CStr(YY) +"-"+CStr(MM)+"-"+CStr(DD)
************************************************************
Instead of hardcoding the name of exchange in your script. Try Parameterizing it. A probable solution would be as...
Is the XML well-formed?? To know whether it is well-formed or not open it using Internet Explorer. If u can see the contents of XML file in the browser then itz a well formed XML. If itz not then ask some developer in your who knows XML to make it well-formed. If all else fails, check the path.
First add the object to your Object Repository (u can do this by ObjRep-->Add Objects button) and then manually write a step in the expert view to select a value in that object.
I am sure a new page will have several objects that are different from the Logon page. Find a unique object on the page after logon and do an exist statement. If you find that object on the next page then you proceed further, else if you are still on the logon page(not a valid userid) throw...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.