Hello Comunity memmbers,
I have a question regarding the BuiltIn.Input Method, is there a way to set to the input method the default value after certain time duration in the script
for e.g.
BuiltIn.InputBox("'0': Abort and '1': Option Menu", "Enter a value:", "1")
Solved! Go to Solution.
No. The Built-In input box basically halts the run until user input is performed.
No. The Built-In input box basically halts the run until user input is performed.
Hallo Robert Martin,
thanks, is there another way to do that in testcomplete
please let me know if u have any ideas
thanks and regards
SivaKartheek
Hi,
I am not aware about any UI input method in any scripting language that auto-closes after timeout.
Consider, that any UI invoked by test code will stop test execution until UI is dismissed of. Which meand that test code that dispalys UI cannot be executed unattended.
While I think that I can suggest one possible solution, I would recommend to re-consider your test architecture and do not use UI elements in test code.
The POSSIBILITY exists... maybe... in some way... to use a UserForm in TestComplete that would, with the "OnShow" event, start a timer object that would check every few seconds to see if the time elapsed is long enough and then, when it hits that point, re-hide the form and send the appropriate value back to the calling script.
But, honestly.... that's a rather complex process. KISS, you know. So, a better way to approach this is to try and understand what problem you're trying to solve and look for a different method rather than requiring user input.
Hallo Robert,
Thanks, even I thought of UserForms with OnShow Event action but, it was easy to implement with Builtin input Method in between the test run so thats why I asked is there any other Builtin appraoches which are available to take the input after certain duration as a default value.
Thanks and Regards
SivaKartheek Sreeram
Subject | Author | Latest Post |
---|---|---|