| || |
Testcase and its application state
I have 2 testcases. First one has a application state and the second one has appstate none. I am calling these two testcases in main(). The first one works fine, whereas the second one fails. The second testcase is a continuation of the activity from the same page where the first one stops.
What am i missing here? Thanks in advance.
Re: Testcase and its application state
Since your second testcase does not contain any appstate associated with it, Silk adds the defaultbasestate to it. This would close the existing application and re-open it, hence you would loose your previous state.
To resolve this, remove the appstate none from your first testcase and add that to the second testcase. This would ensure that whatever state your application is in, defaultbasestate would handle it for the first testcase and for the second one, since it would be appstate none, it would pick up whatever state the application is in.
However, if your first testcase fails, your second testcase will fail as well.
And yea, you would need to set the recovery system. For that, click on the Set recovery System on silk toolbar, and select your application. Silk would set the default recovery system for your application.