Micro Focus QTP (UFT) Forums
Step Results - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Step Results (/Thread-Step-Results)



Step Results - jcraig26 - 12-20-2012

Not sure if this is easy and my brain is burned out today or if this just isn't possible...

Can I use the step results in my programming? I am looking to enter a single line for multiple steps completed - but ALL must complete as PASSED.

Example:

I have several steps verifying various fields are set to disabled in a form. So, I am looking for DISABLED property and verifying this is set to 1. If all of these steps are correct, I would like it to enter a line in the results like ALL CONTROLS PASSED.

Now, I can get each step to work. I can get the ALL CONTROLS PASSED line in the results. BUT, I can't get it to do it only IF all steps passed. Hell, I can't figure out how to compare that the step I created has passed.

Any help?


RE: Step Results - supputuri - 12-20-2012

please use a boolean flag and fetch the value from your loop and compare the status and then write the report according to the status.
Let me know if you need detailed steps or explanation.