question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to prevent Appium from restarting between specs?

See original GitHub issue

The problem

Not sure how to prevent appium from resetting between specs.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.4.16
  • Desktop OS/version used to run Appium: OSX 10.11.3 El Capitan
  • Node.js version (unless using Appium.app|exe): 4.4.4
  • Mobile platform/version under test: iPhone 6
  • Real device or emulator/simulator: Simulator
  • Appium CLI or Appium.app|exe: CLI

Details

Suppose that in my specs capability, I submit the following:

capabilities: {
  noReset: true,
  specs: ['a.test.js', 'b.test.js']
  //Other capabilities
}

Then , when I run appium with the CLI command of appium -lt 180000 --session-override --no-reset, I expect both specs to be run without reseting the emulator in between. However, what actually happens is that the emulator is reset after each spec completes (but not between individual tests within the specs). Is there any way to circumvent this, and run all specs consecutively on one instance on the emulator?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
azaslavskycommented, Aug 15, 2016

So I’m using webdriver.io (rather than protractor), and via a CLI call that specifies which files to test, so I can’t set suites that way. I’ll get the test output in a bit.

0reactions
lock[bot]commented, Apr 26, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I prevent the iOS simulator from restarting after each ...
The simulator restarts and re-installs the app for each test that my script runs. I've tried using noReset and fullReset a million times...
Read more >
Appium restarts the application before running the test - Support
Hi, I was wondering if there is a way to stop appium from starting the application twice. Every test it starts a test,...
Read more >
Reset App - Appium
Reset App; Example Usage; Support; Appium Server; Appium Clients ... Reset the currently running app for this session ... HTTP API Specifications. Endpoint....
Read more >
Difference between noReset and fullReset? - Appium Discuss
noReset just clears the app data, such as its cache. fullRest uninstalls the app. fullReset is generally used when you have newer versions...
Read more >
Keep appium server running on windows/mac - Support
This can be done by starting the appium server through the appium app/command line but that will mean that there is always a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found