AppiumTestDistribution / appium-reporter-plugin

Appium2 plugin to generate html report with screenshots.
Apache License 2.0
30 stars 12 forks source link

Add Pending Tests #69

Closed isaac-tribal closed 1 year ago

isaac-tribal commented 1 year ago

Appium client log:

image

Report:

image
Dileep17 commented 1 year ago

This plugin currently works based on appium session-id. For pending tests session-id won't be created at all hence they won't appear in report.

Having said that, this is functionally a valid request. Need to refactor the plugin to accommodate this.

Dileep17 commented 1 year ago

Added Pending and Unknown states to test report

image

Having said that, this plugin just picks the test status that's sent to it via POST: /session/:sessionId/setTestInfo. For skipped tests, it's upon the tests to call POST: /session/:sessionId/setTestInfo and pass info. As mentioned in the documentation test status are "PASSED, FAILED, PENDING, All other strings are considered as UNKNOWN"

Dileep17 commented 1 year ago

@isaac-tribal ^^

saikrishna321 commented 1 year ago

Its worth to add in ReadMe how to use this endpoint from client

Dileep17 commented 1 year ago

check the following section mate, https://github.com/AppiumTestDistribution/appium-reporter-plugin#settestinfo

let me know if we can anything more.