java - How to run tests on android emulator without loading the emulator everytime? -


how run tests on android emulator without loading emulator everytime when running tests?

i have code:

void prepareandroidemulator() throws malformedurlexception {         file appdir = new file("/users/oleh/google drive/qa drive/applications/some/sprint 2");         file app = new file(appdir, build_name);          desiredcapabilities capabilities = new desiredcapabilities();         capabilities.setcapability("avd", "lg_g4._api_22._android_5.1");          capabilities.setcapability("devicename", "androidtestdevice");         capabilities.setcapability("platformname", "android");          capabilities.setcapability("app", app.getabsolutepath());         driver = new androiddriver(new url("http://127.0.0.1:4723/wd/hub"), capabilities);     }       @beforeclass     public void setup() throws exception {         prepareandroidemulator();      }      @afterclass     public void teardown() throws exception {         driver.quit();         runtime.getruntime().exec("adb -s emulator-5554 emu kill");     } 

i kill emulator specially because if don't it, next time have error or ide skipping tests.

screen skipped tests

main idea: don't want load , kill emulator everytime when starting tests. want load emulator once , after use time, when running test.

my environment:

-os x el capitan -intellij idea -selenium -appium

set noreset=true , fullreset= false capability before starting appium server.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -