Selandroid help plzzz

123 views
Skip to first unread message

Harsh Ma

unread,
Sep 5, 2014, 12:57:18 AM9/5/14
to seleniu...@googlegroups.com
Hi All here ,

i am trying to learn and understand Selandroid, i got few tutorials on :
http://selendroid.io/setup.html

But i wana know how can i launch my app say redbus.in from my mobile??

can any one help ?? or give me some links which i can refer to plz :)

Thanks
Harsh Ma

UmaMahesh

unread,
Sep 5, 2014, 9:10:36 AM9/5/14
to seleniu...@googlegroups.com
Hi Harsha,

If you want to test Redbus app, You required redbusxxx.apk file.

first try with selendroid site provided *.apk file.

selendroid site is enough to do practice...

~Uma Mahesh


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAPHOD2uR56CYH%2BvmfXismhCytJ%2BHqcD4EKeYDOLmNuhA%2BpofWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
mahesh.......

Harsh Ma

unread,
Sep 7, 2014, 11:49:05 PM9/7/14
to seleniu...@googlegroups.com
Yes, Mahesh i am trying that out, but the doc's in selandroid.io says we can launch the app in the decive too have u tried that out?? if so could u please help me in it??

Krishnan Mahadevan

unread,
Sep 8, 2014, 11:08:06 AM9/8/14
to Selenium Users
Can you please check if you have followed the below instructions as well ?


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Harsh Ma

unread,
Sep 9, 2014, 12:07:17 AM9/9/14
to seleniu...@googlegroups.com
Thanks  Krishnan Mahadevan , Thanks a lot, Yes i am cleared my issues i am blogging all the errors i faced and the solution for it too...
(I have been a great follower of u ) ,But i am facing other issues now :(

Exception in thread "main" io.selendroid.exceptions.SessionNotCreatedException:
An error occurred while resigning the app 'selendroid-test-app-0.11.0.apk'.

Tasks done! till now:
1.       Set the ANDROID_HOME / JAVA_HOME & Path files correctly

2. after this i am trying to add run the command :

            C:\Mobile>java -jar selendroid-standalone-0.11.0-with-dependencies.jar -app selendroid-test-app-0.11.0.apk

I am facing the below error:


I have an AVD also created and running
When i type "android" in run the "SDK Manager" starts and all is fine not sure why this error





C:\Mobile>java -jar selendroid-standalone-0.11.0-with-dependencies.jar -app sel
ndroid-test-app-0.11.0.apk
################# Selendroid #################
################# Configuration in use #################
io.selendroid.SelendroidConfiguration@4226c7da[
  port=4444
  timeoutEmulatorStart=300000
  supportedApps=[selendroid-test-app-0.11.0.apk]
  verbose=false
  emulatorPort=5560
  deviceScreenshot=false
  selendroidServerPort=8080
  keystore=<null>
  emulatorOptions=<null>
  registrationUrl=<null>
  proxy=<null>
  serverHost=<null>
  keepAdbAlive=false
  noWebViewApp=false
  noClearData=false
  sessionTimeoutSeconds=1800
  forceReinstall=false
  logLevel=ERROR
]
Sep 08, 2014 4:20:13 PM io.selendroid.SelendroidLauncher launchServer
INFO: Starting selendroid-server port 4444
Sep 08, 2014 4:20:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Mobile\adt-bundle-windows-x86_64-20140702\sdk\build
tools\android-4.4W\aapt.exe remove C:\Mobile\selendroid-test-app-0.11.0.apk MET
-INF/MANIFEST.MF
Sep 08, 2014 4:20:15 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Mobile\adt-bundle-windows-x86_64-20140702\sdk\build
tools\android-4.4W\aapt.exe remove C:\Mobile\selendroid-test-app-0.11.0.apk MET
-INF/CERT.RSA
Sep 08, 2014 4:20:15 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Mobile\adt-bundle-windows-x86_64-20140702\sdk\build
tools\android-4.4W\aapt.exe remove C:\Mobile\selendroid-test-app-0.11.0.apk MET
-INF/CERT.SF
Sep 08, 2014 4:20:15 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Mobile\adt-bundle-windows-x86_64-20140702\sdk\build
tools\android-4.4W\aapt.exe remove C:\Mobile\selendroid-test-app-0.11.0.apk MET
-INF/ANDROIDD.SF
Sep 08, 2014 4:20:15 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Mobile\adt-bundle-windows-x86_64-20140702\sdk\build
tools\android-4.4W\aapt.exe remove C:\Mobile\selendroid-test-app-0.11.0.apk MET
-INF/ANDROIDD.RSA
Sep 08, 2014 4:20:15 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Mobile\adt-bundle-windows-x86_64-20140702\sdk\build
tools\android-4.4W\aapt.exe remove C:\Mobile\selendroid-test-app-0.11.0.apk MET
-INF/NDKEYSTO.SF
Sep 08, 2014 4:20:15 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Mobile\adt-bundle-windows-x86_64-20140702\sdk\build
tools\android-4.4W\aapt.exe remove C:\Mobile\selendroid-test-app-0.11.0.apk MET
-INF/NDKEYSTO.RSA
Sep 08, 2014 4:20:15 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Mobile\Java\jdk1.6.0_32\;C:\Program Files (x86)\Jav
\jdk1.6.0_24\bin\keytool.exe -genkey -v -keystore C:\Users\Ravikiran\.android\d
bug.keystore -storepass android -alias androiddebugkey -keypass android -dname
N=Android Debug,O=Android,C=US -storetype JKS -sigalg MD5withRSA -keyalg RSA -v
lidity 9999
Sep 08, 2014 4:20:15 PM io.selendroid.SelendroidLauncher launchServer
SEVERE: Error occurred while building server: An error occurred while resigning
the app 'selendroid-test-app-0.11.0.apk'.
io.selendroid.exceptions.SessionNotCreatedException: An error occurred while re
igning the app 'selendroid-test-app-0.11.0.apk'.
        at io.selendroid.server.model.SelendroidStandaloneDriver.initApplicatio
sUnderTest(SelendroidStandaloneDriver.java:114)
        at io.selendroid.server.model.SelendroidStandaloneDriver.<init>(Selendr
idStandaloneDriver.java:82)
        at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroid
erver(SelendroidStandaloneServer.java:61)
        at io.selendroid.server.SelendroidStandaloneServer.<init>(SelendroidSta
daloneServer.java:50)
        at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.jav
:49)
        at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:105)
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whi
e executing shell command: C:\Mobile\Java\jdk1.6.0_32\;C:\Program Files (x86)\J
va\jdk1.6.0_24\bin\keytool.exe -genkey -v -keystore C:\Users\Ravikiran\.android
debug.keystore -storepass android -alias androiddebugkey -keypass android -dnam
 CN=Android Debug,O=Android,C=US -storetype JKS -sigalg MD5withRSA -keyalg RSA
validity 9999
        at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendr
idServerBuilder.java:255)
        at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSe
verBuilder.java:134)
        at io.selendroid.server.model.SelendroidStandaloneDriver.initApplicatio
sUnderTest(SelendroidStandaloneDriver.java:112)
        ... 5 more
Caused by: io.selendroid.exceptions.ShellCommandException:
        ... 9 more
Exception in thread "main" io.selendroid.exceptions.SessionNotCreatedException:
An error occurred while resigning the app 'selendroid-test-app-0.11.0.apk'.
        at io.selendroid.server.model.SelendroidStandaloneDriver.initApplicatio
sUnderTest(SelendroidStandaloneDriver.java:114)
        at io.selendroid.server.model.SelendroidStandaloneDriver.<init>(Selendr
idStandaloneDriver.java:82)
        at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroid
erver(SelendroidStandaloneServer.java:61)
        at io.selendroid.server.SelendroidStandaloneServer.<init>(SelendroidSta
daloneServer.java:50)
        at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.jav
:49)
        at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:105)
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whi
e executing shell command: C:\Mobile\Java\jdk1.6.0_32\;C:\Program Files (x86)\J
va\jdk1.6.0_24\bin\keytool.exe -genkey -v -keystore C:\Users\Ravikiran\.android
debug.keystore -storepass android -alias androiddebugkey -keypass android -dnam
 CN=Android Debug,O=Android,C=US -storetype JKS -sigalg MD5withRSA -keyalg RSA
validity 9999
        at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendr
idServerBuilder.java:255)
        at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSe
verBuilder.java:134)
        at io.selendroid.server.model.SelendroidStandaloneDriver.initApplicatio
sUnderTest(SelendroidStandaloneDriver.java:112)
        ... 5 more
Caused by: io.selendroid.exceptions.ShellCommandException:
        ... 9 more


--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/W7WcBysVgpE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.

To post to this group, send email to seleniu...@googlegroups.com.

Aniket Gadre

unread,
Sep 9, 2014, 1:16:44 AM9/9/14
to seleniu...@googlegroups.com
Seems you have not set JDK path correctly. Following command is causing the issue. How come you have 2 JDK paths in command? you need to set only 1 path

C:\Mobile\Java\jdk1.6.0_32\;C:\Program Files (x86)\J
va\jdk1.6.0_24\bin\keytool.exe -genkey -v -keystore C:\Users\Ravikiran\.android
debug.keystore -storepass android -alias androiddebugkey -keypass android -dnam
 CN=Android Debug,O=Android,C=US -storetype JKS -sigalg MD5withRSA -keyalg RSA
validity 9999

Best Regards,
Aniket Gadre
 
Programming can be fun, so can cryptography; however they should not be combined.

Harsh Ma

unread,
Sep 12, 2014, 2:55:03 AM9/12/14
to seleniu...@googlegroups.com
Hi Aniket,

Thanks for the help and it has resoved my issue , but i am facing another one hope u could help me out of this:
I am trying to install the apk on the AVD and it fails can u guide me me plz




Can you or any one plzz guide i googled and found few things and i tried no help :(


Thanks
Harsh Ma

Krishna Reddy Gtpv

unread,
Sep 12, 2014, 3:10:16 AM9/12/14
to seleniu...@googlegroups.com

For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards
Krishna Reddy Gtpv
Automation Test Engineer
Web Site :  www.gtpvkr.in
Email Id   :  gtp...@gmail.com
Ph No      :  +91 - 9494585126

   




Krishnan Mahadevan

unread,
Sep 12, 2014, 3:15:14 AM9/12/14
to Selenium Users
@Krishna Reddy,

The blog link that you shared talks about AndroidDriver.

AndroidDriver stands deprecated a long time back and Selendroid is the future way to go !

You might want to update this blog with how to use Selendroid for automation which is what the OP is asking about !



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Aniket Gadre

unread,
Sep 12, 2014, 5:25:35 AM9/12/14
to seleniu...@googlegroups.com
Either this application is already installed or its not re-signed properly, btw why are you installing it explicitly? Selendroid should take care of it

Best Regards,
Aniket Gadre
 
Programming can be fun, so can cryptography; however they should not be combined.

Harsh Ma

unread,
Sep 12, 2014, 5:57:17 AM9/12/14
to seleniu...@googlegroups.com
Hi Aniket,

Thanks for the input, well sorry to bug u more on this :( , Well when u say "Selendroid should take care of it" means when i run the program from the eclipse it should get installed and run the tests??


In My eclipse i have downloaded the apk sample android test and tryingg to run, but when i right click on the UserReg.java file i see only "Run as JUnit" , i feel there should be other one which tells to run on AVD or somethin?? please correct


      

charles...@agilexcyber.in

unread,
Sep 22, 2014, 7:53:42 AM9/22/14
to seleniu...@googlegroups.com
Hi Harsh Ma, 

I am also learning Selandroid currently. Please help me if you can by providing its step-by-step procedures for running an app on Android/mobile devices.

Thanks,
Charles M.


On Friday, September 5, 2014 10:27:18 AM UTC+5:30, Harsh Ma wrote:
Reply all
Reply to author
Forward
0 new messages