This problem has flummoxed many people over time of why their checkpoint doesn’t pass when they use Regular Expression in standard checkpoints.
When one use regular expression in a checkpoint, (s)he expects that it should pass when property being verified changes.This is a correct assumption. After all that’s what regular expressions are there for!
But care should be taken to distinguish between identification vs execution of checkpoint. If you are using regular expressions for a varying property and your QTP is generating error message then the most probable reason would be that QTP is not able to identify the object for which you have created checkpoint. [Remember when checkpoint fails QTP won’t throw error message it will only pass the “fail” status to results]
Just make sure that you handle the properties used to IDENTIFY that object properly.
If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS Feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.
Hi Ankur,
I need your hep in fixing one issue related to the file content checkpoint.
I was able to compare or execute my code for a file to file comparision, but when i use the parameterization the code fails. Meaning, i have a pdf file with the Country column ( current report shows the value – Canada), i added a checkpoint and parametized the country value with a column in data table ( DataTable.Value(“Country”,dtGlobalSheet) (column value – Belgium)
When i execute the code , it shows the expected value as DataTable.Value(“Country”,dtGlobalSheet) instaed of Belgium.
Please respond
I am not clear with the query. Please ask your detailed query over at UFT forums
Hi Ankur,
I have a checkpoint in my script, which fails when login is successful. But my HP result viewer shows a fail result. I added reporter.reporter micpass to make it pass, but i dont want checkpoint fail status to be shown in my result report. Is there any way in the QTP to do so or am i supposed to apply filter in HP result viewer. Waiting for a reply soon.
Thank,
Vidya Bharambe
Hello
You can use Reporter.filter function and filter the result from reaching QTP report.
Look up that function in QTP help.
regards
Nimith
Hi Ankur,
I have question,I created a standered check point on page and passed the value to check in database and it is working fine.But i have to create a check point where that should be a generic one where i can use that function or sub on any pages like different pages displays the newly created ID.so i have to capture that ID and verify it in DB.Could you please replay me back or any one who knows about it please feel free to contact me
Thank You,
Jagath
Hey Ankur Hi.Hey you identified the problem very well but then how to remove the error message that QTP shows when it cannot identify the dynamic object-should the user run the script again or what should he do?
Hi Ankur, qtp text area checkpoints are co-ordinate specific on changing the system’s resolution usually the checkpoints fail… if there are ny other ways of getting text plz let me know, the object is .net control – swfobject which is used in the application to display an image.. here i aslo need to get the laoding time of the image.. any information on these two will be greately appreciated.. thanks in advance, prashant
my front end application is Oracle 10g Forms.
Report is Oracle 10g report.
Back end database is oracle 10g.
HWhat are add in need to test oracle10g front end application?
please send Qtp + oracle10g Forms sample qtp script coding.
My application is web based and 3 tier arch.
Plase send mail byzoor@gmail.com