question

delta67 avatar image
delta67 Suspended asked ericnute edited

Execution says "Wait for prompt". What do I do?

I am running a testcase and my execution says "Waiting for prompt", but the prompt is right there. The previous command has already completed and the prompt is visible. Why is iTest waiting for a prompt?
iTestsession profileprompt
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
AdeelM avatar image
AdeelM answered ericnute edited

This is likely due to the fact that you are encountering a prompt that iTest has not yet "learned". It is also possible that you are running your testcase on a different device that now has different prompts. For example, your prompt may have changed from "DUT-1>" to "DUT-3>".

The way to handle this is to update your session profile where you maintain your prompts. Make sure to use either a wildcard as shown in the screenshot below or regular expression. The regex for "DUT-1>" prompt would be

DUT-\d+>

![alt text][1] [1]: /storage/attachments/1872-prompts.jpg

prompts.jpg (60.2 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.