Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launchApp: Need add functionality to control app reset #3553

Closed
amedvedjev opened this issue Sep 3, 2014 · 8 comments
Closed

launchApp: Need add functionality to control app reset #3553

amedvedjev opened this issue Sep 3, 2014 · 8 comments

Comments

@amedvedjev
Copy link
Contributor

steps:

Test1:

  1. run appium server in default mode
  2. do driver.closeApp() -> driver.launchApp()

Result: App got resetted. Reset happens during launchApp as fast rest.

Test2:

  1. run appium server with option "--no-reset"
  2. do driver.closeApp() -> driver.launchApp()

Result: App did not reset.

Question: Is it possible to make launchApp able to start with reset and without (no matter how appium server started.)?

@jlipps
Copy link
Member

jlipps commented Sep 3, 2014

yes, you can use the noReset capability

@jlipps jlipps closed this as completed Sep 3, 2014
@amedvedjev
Copy link
Contributor Author

But i need to control this in launchApp NOT and appium start. How?

@jlipps
Copy link
Member

jlipps commented Sep 3, 2014

why not just have a new session?

@amedvedjev
Copy link
Contributor Author

new session of Appium during test execution while we executing the whole suite?

@seabornlee
Copy link

I have the similar scenario, the feature is Automatically Login, so need to restart the app without reset anything in one test case - but reset between test cases. Is it possible?

@AppiumUsr
Copy link

@amedvedjev How did you handled this in launchapp?

@amedvedjev
Copy link
Contributor Author

well we rewrote cases and logic in such way that appium server in most cases starting with "--no-reset".
But in testNG suite if we need we do full reset ONE test before launching all other tests with server start without "-no--reset".

example of testNG xml (sensitive info hidden with X):

<parameter name="runDestination" value="Local"/>
<parameter name="devicePlatform" value="android"/>
<parameter name="guestData" value="XXXXXXXXX"/>
<parameter name="testPlanId" value="120"/>
<parameter name="testRunId" value="126"/>

<test name="XXXXX_Upload_New_Client">
    <parameter name="devicePlatform" value="android fullReset"/>
    <parameter name="deviceName" value="loc_Sony_Z1"/>
    <classes>
        <class name="com.XXXXXXXXX.tests.XXXXXXX.test.android.doFullReset"/>
    </classes>
</test>

<test name="BVT_Selected" preserve-order="true">
    <parameter name="devicePlatform" value="android"/>
    <parameter name="deviceName" value="loc_Sony_Z1"/>
    <groups>
        <run>
            <include name="bvt_test"></include>
        </run>
    </groups>
    <packages>
        <package name="com.XXXXXXXX.tests.XXXXX.test.android" />
    </packages>
</test>

@lock
Copy link

lock bot commented May 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators May 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants