When running testcases silktest appears to be unable to carry out some tasks which have been recorded(the application I am trying to test is written in delphi and silktest isnt ideal).
Does anyone know of a way that a testcase can be 'paused' to allow a user to manual perform actions that silktest cannot do, then continue with the testcase after? I know about the sleep() function but dont think this is ideal. I also have tried displaying a message box that can be cleared by ok/cancel however silktest does not allow the user to carry out any actions on the application under test.
Ideally I would want a message box to pop-up which 'pauses' the testcase & allows the user to perform a task. Then when the message box is dimissed the tescase continues.
Thanks for your reply. I had already stumbled across the DisplayMessage method. However the message box that is displayed retains focus and only allows the user to halt execution and choose to continue or not. It does not allow the user to modify the application under test then continue. What I want to do is halt the test and allow the user to make changes manually as silktest cannot perform them on replay, once completed I wish to continue the execution of the testcase
Any further information on how I may do this would be gratefully recieved
Try using PushTestInfo() and PopTestInfo() with a long Sleep() in between _just after_ a DisplayMessage().
This way you can get a clocking wait until you walk up to the machine, you click the message and then do what you need inside a sleep. You could even put the display message in a loop and use the return value to decide if you want another 'sleep period'.
Chris R Mead
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.