Coder Social home page Coder Social logo

Comments (8)

xyngfei avatar xyngfei commented on July 30, 2024 2

Thanks for your suggestion. I am really keen to wait for the Appium example soon.
FYI, I just added 2 of the lines below, I can see the video from the allure report.

capabilities: [ { . . . deviceType: "phone", browserName: '', . . . }, ],

from wdio-video-reporter.

xyngfei avatar xyngfei commented on July 30, 2024 1

@presidenten apologize for the late reply.
Not sure why I cannot use the v4 to do the npm i
I hv reported this issue to the auther
amiya-pattnaik/webdriverIO-with-cucumberBDD#11

Even I tried with another boilerplate project, I am still encountering a similar issue.
https://github.com/michaelguild13/Selenium-WebdriverIO-Mocha-Chai-Boilerplate

Give me some time, I will provide more detail to you.

from wdio-video-reporter.

xyngfei avatar xyngfei commented on July 30, 2024 1

@presidenten

Please refer to this fork.
https://github.com/xyngfei/wdio-template

FYI, I didn't encounter any issue to execute wdio-template repo and I can see the video from the allure report.

from wdio-video-reporter.

presidenten avatar presidenten commented on July 30, 2024

Would you mind forking https://github.com/presidenten/wdio-template and replicating the issue in the test-file so that I may test on a android device here to try to isolate the issue?

All I can see now is that the selenium driver does not seem to take any screenshots after user actions, but I have no clue as to why that is. Having the test case here or a similiar case that is not working would make it easier.

from wdio-video-reporter.

presidenten avatar presidenten commented on July 30, 2024

Could you update to v1.4.0 and see if it fixes your problem?

If it doesnt fix it, Would you mind forking https://github.com/presidenten/wdio-template and replicating the issue in the test-file so that I may test on a android device here to try to isolate the issue?

from wdio-video-reporter.

presidenten avatar presidenten commented on July 30, 2024

The problem is that those two other boilerplates are using wdio v4 and Im using some hooks and methods that are only present in wdio v5.

If you upgrade them to wdio v5 Im sure it will work. Wdio v5 is scoped under @wdio/
For example:

    "@wdio/cli": "^5.9.1",
    "@wdio/interface": "^5.7.8",
    "@wdio/jasmine-framework": "^5.9.1",
    "@wdio/local-runner": "^5.9.1",
    "@wdio/selenium-standalone-service": "^5.8.4",
    "@wdio/spec-reporter": "^5.8.0",
    "@wdio/sync": "^5.9.1",

To upgrade you need to remove npm package webdriverio and all wdio-*. Then add the @wdio/* packages that you need.

Edit: I forgot to mention that the frames for the videos are grabbed after user actions.
These are default JSON-wire commands that leads to a frame grab:
https://github.com/presidenten/wdio-video-reporter/blob/002b91c033d67a53d0e975f785b0813a865b0e37/src/config.js#L33
And here is info on how to add more commands:
https://github.com/presidenten/wdio-video-reporter/blob/master/README.md#advanced-configuration-parameters

Do you feel this issue is resolved, so I can close it?

from wdio-video-reporter.

xyngfei avatar xyngfei commented on July 30, 2024

Under Appium setup guide section, where do I find wdio-config.json file?

If I didn't specify the browserName under the capabilities, I suspect will throw the exception above.

Besides, possible to add a sample how can I capture the appium native APP test?

from wdio-video-reporter.

presidenten avatar presidenten commented on July 30, 2024

I have planned that I wil write an extended tutorial on how to get appium up and running.
Until then, with wdio-config.json I mean this file: https://github.com/presidenten/wdio-template/blob/master/wdio.conf.js
If you dont scope appium-specific capabilities you will get exception because v5 being full w3c compliance. So in these files you need to write appium:deviceType instead of just deviceType.

When I write appium configuration I mean a json-file that I use to start appium for the device. Appium is does not need the scoping for itself.

from wdio-video-reporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.