serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
721 stars 517 forks source link

Serenity.takeScreenshot() not working with Appium v1.3.7 #92

Closed adeemotu closed 8 years ago

adeemotu commented 9 years ago

@wakaleo

I am evaluating serenity framework with appium for our test automation reporting stuff. However i am unable to take screenshots using Serenity.takeScreenshot(); or configuration file methods. Also reports are generating OK, but with out screenshots. I wonder if i am missing some steps. Will be great to get some tips how to fix this.

One query, can i do "webdriver.driver = appium" in properties file !

[1.0.59] Appium v1.3.7
wakaleo commented 9 years ago

Are you getting any error messages? The next Serenity release will have an updated version of Appium which might fix this issue - you could see if this helps by updating the dependency to io.appium:java-client:3.1.0

On 16 Jul 2015, at 9:51 pm, adeemotu notifications@github.com wrote:

@wakaleo https://github.com/wakaleo I am evaluating serenity framework with appium for our test automation reporting stuff. However i am unable to take screenshots using Serenity.takeScreenshot(); or configuration file methods. Also reports are generating OK, but with out screenshots. I wonder if i am missing some steps. Will be great to get some tips how to fix this.

One query, can i do "webdriver.driver = appium" in properties file !

[1.0.59] Appium v1.3.7

— Reply to this email directly or view it on GitHub https://github.com/serenity-bdd/serenity-core/issues/92.

adeemotu commented 9 years ago

@wakaleo nopes not getting any errors, i tried with io.appium:java-client:3.1.0 but still no luck. Here's how my properties files look like [INFO] serenity.report.show.releases=false [INFO] serenity.reports.show.step.details=true [INFO] serenity.timeout=2000 [INFO] serenity.project.name=powered by iZettle [INFO] serenity.take.screenshots=FOR_EACH_ACTION [INFO] serenity.report.show.manual.tests=false

I wonder i need to mention some driver information as we do for webdriver e.g. "webdriver.driver = firefox" ?

wakaleo commented 9 years ago

Could be a driver problem. What device are you using?

mvitiuk commented 9 years ago

We were trying to use real android device Samsungs and Genymotion devices such as Nexus with OS Lollipop.

I've tried also with latest Selendroid server and same devices and latest versions of Serenity, jbehave - but still no screenshots and nothing in the logs.

wakaleo commented 9 years ago

See if you can get it working with raw Appium with the same versions.

mvitiuk commented 9 years ago

we are not using appium gui, we're starting server from terminal

mihaiserdean commented 9 years ago

Hello,

Can someone here maybe send me/attach a working sample project with Serentiy + Appium + Native app (Emulator or Real Device) please? I would very much appreciate it.

Best regards, Mihai Serdean

mihaiserdean commented 9 years ago

I would appreciate if you send me any sample project of a working Serenity + Appium on any native app

mvitiuk commented 9 years ago

@mihaiserdean we were using appium during winter, it wasn't intergrated with Serenity at that time, so we were starting server from code or command line. Now everything looks much easier, you can specify appium related stuff in serenity.properties. I haven't try that out, but a lot of people in community did. Have you try to search there? (https://groups.google.com/forum/#!topic/thucydides-users/I87qDVELuaY for example)

mihaiserdean commented 9 years ago

@mvitiuk that is Serenity + Appium + Browser I'm interested in making it work for Serenity + Appium + Native app (Emulator and/or Real Device)

Currently it is not working, gives null pointer exception in the @Steps

mvitiuk commented 9 years ago

@mihaiserdean I am now working on native app and selendroid, there is no null pointer exceptions, it works, but I don't know what exactly with your framework. Do you have sample project or logs?

mihaiserdean commented 9 years ago

can you remove your confidential code and just send me the project/configuration as a sample. So you are using Serenity + Selendroid + Native and not Appium?

YamStranger commented 8 years ago

Hello @adeemotu, @mvitiuk. It seems that this issue already fixed, or not an issue now - so I close it.

Thanks!

hencian commented 8 years ago

Hello how can I use Selendroid and produce test reports? - for appim I used Serenity but I don't know how to do it for Selendroid

mvitiuk commented 8 years ago

@hencian same way :), we were defining selendroid caps from code, not form serenity.properties. Check here http://selendroid.io/setup.html

YamStranger commented 8 years ago

@hencian, @mvitiuk This issue is closed

If you need Selendroid support - please create ticket with such request

Thanks!