java - Launch an mobile app on emulator using appium -


i wanted launch app in genemotion using appium - java.

i can launch app on real device, feel better use emulators instead of real devices. how can ?

just add virtual emulator on genemotion, make , running. open terminal , type: adb devices

it show, list of devices attached, make sure new virtual device running on port. ie : 192.168.56.101:5555 device

now use below use desired capabilities below :

desiredcapabilities capabilities = new desiredcapabilities();

    capabilities.setcapability("devicename", "name of emulator");      capabilities.setcapability("platformname", "android");      driver = new androiddriver(new url("http://0.0.0.0:4723/wd/hub"), capabilities); 

it launch apk in genemotion.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -