Micro Focus QTP (UFT) Forums
QTP enters value but on button click it resets to blank or 0 - 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: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: QTP enters value but on button click it resets to blank or 0 (/Thread-QTP-enters-value-but-on-button-click-it-resets-to-blank-or-0)



QTP enters value but on button click it resets to blank or 0 - anshika.agarwal - 02-04-2015

Hello,

Can some please help me with the below query:

- My application is only about entering data and click on submit button to retrieve information against it. When I run my script it used to work earlier but with this latest release, all mys scripts are failing. I can see when running the script the value is entered but when the submit button is clicked the values are reset to blank or 0. I am not sure why it is behaving this way, as when I tried this manually the system worked without any issue.

I tried IE debugging tool (using F12) and I can see on click on the button the values are all changed to blank.

I tried getting the value for the entered fields using GetROProperty function and I can retrieve the entered value then but not sure what happens on submit button click.

I have also tried clicking outside and tabs to go to other fields but still no luck.

Can you please help me in this.

Thanks in Advance,
Anshika


RE: QTP enters value but on button click it resets to blank or 0 - anshika.agarwal - 02-12-2015

Hello,

can anyone please help me with the above issue.

Thanks,
Anshika


RE: QTP enters value but on button click it resets to blank or 0 - supputuri - 02-19-2015

Hey Anshika,

below are the possible solutions.
1) use the fireevents on the inputbox after entering the value
2) use the key borad (shell script)
3) If the input box is a listbox then try using the Mercury Key borad object to move up and down

Please let me know your outcome.


RE: QTP enters value but on button click it resets to blank or 0 - anshika.agarwal - 02-23-2015

Thank you for your reply.

I talked to the HP Support directly and yes he suggested the same solution as the 3rd option. Although I am not happy with it as I now have to update all my scripts to use a shell script etc but at least we have got something working now.

I am happy to close this thread.