Skip to content

Add the user specified screenshots to the report #41

@shridharkalagi

Description

@shridharkalagi

Below is the complete schema with user taken screenshots

{
"report": {
"summary": {
"duration": 73,
"suite_name": "TestNG Test0",
"passed": 0,
"failed": 2,
"skipped": 0,
"num_tests": 2
},
"Screenshots": [
{
"method_name": "testMethodOne2",
"screens": {
"Third": "/Users/shridhk/GitHub/Documents/AppiumTestDistribution/target/2017-10-16T17:47:56",
"Fourth": "/Users/shridhk/GitHub/Documents/AppiumTestDistribution/target/2017-10-16T17:47:58"
},
"model": "HTC 10_htc",
"id": "FA66VBN01980",
"class_name": "com.test.site.HomePageTest2",
"version": "6.0.1",
"platform": "ANDROID"
},
{
"method_name": "testMethodOne1",
"screens": {
"first": "/Users/shridhk/GitHub/Documents/AppiumTestDistribution/target/2017-10-16T17:47:19",
"second": "/Users/shridhk/GitHub/Documents/AppiumTestDistribution/target/2017-10-16T17:47:21"
},
"model": "HTC 10_htc",
"id": "FA66VBN01980",
"class_name": "com.test.site.HomePageTest2",
"version": "6.0.1",
"platform": "ANDROID"
}
],
"tests": [
{
"testDetails": {
"classname": "HomePageTest2",
"endtime": 1508156241,
"starttime": 1508156206,
"results": "Fail",
"logs": {
"screenShotFailure": "screenshot/android/FA66VBN01980/TestResult/testMethodOne1/2017-10-16T17:47:22_testMethodOne1_failed.jpeg"
},
"exceptiontrace": "org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 0 milliseconds\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:42:44.417Z'\nSystem info: host: 'INshridhk.local', ip: 'fe80:0:0:0:f9:c42b:5c29:b8d5%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_65'\nDriver info: io.appium.java_client.android.AndroidDriver\nCapabilities [{app=/Users/shridhk/GitHub/Documents/AppiumTestDistribution/AndroidCalculator.apk, noSign=true, automationName=UIAutomator2, javascriptEnabled=true, udid=FA66VBN01980, platformName=ANDROID, deviceName=android, platform=ANDROID, systemPort=54126}]\nSession ID: 9fdf7c41-384b-479d-8148-3a2b75c7ce6b\n*** Element info: {Using=accessibility id, value=doubleTap}",
"methodname": "Testing Skips"
},
"totaltime": 34,
"model": "HTC 10_htc",
"id": "FA66VBN01980",
"version": "6.0.1",
"platform": "ANDROID"
},
{
"testDetails": {
"classname": "HomePageTest2",
"endtime": 1508156278,
"starttime": 1508156243,
"results": "Fail",
"logs": {
"screenShotFailure": "screenshot/android/FA66VBN01980/TestResult/testMethodOne2/2017-10-16T17:47:59_testMethodOne2_failed.jpeg"
},
"exceptiontrace": "org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)\nCommand duration or timeout: 0 milliseconds\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\nBuild info: version: '3.5.3', revision: 'a88d25fe6b', time: '2017-08-29T12:42:44.417Z'\nSystem info: host: 'INshridhk.local', ip: 'fe80:0:0:0:f9:c42b:5c29:b8d5%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_65'\nDriver info: io.appium.java_client.android.AndroidDriver\nCapabilities [{app=/Users/shridhk/GitHub/Documents/AppiumTestDistribution/AndroidCalculator.apk, noSign=true, automationName=UIAutomator2, javascriptEnabled=true, udid=FA66VBN01980, platformName=ANDROID, deviceName=android, platform=ANDROID, systemPort=54959}]\nSession ID: 4af9e63b-ee58-4f2f-9a9c-4a07f6263d52\n*** Element info: {Using=accessibility id, value=doubleTap}",
"methodname": "Testing Skips"
},
"totaltime": 34,
"model": "HTC 10_htc",
"id": "FA66VBN01980",
"version": "6.0.1",
"platform": "ANDROID"
}
],
"userMetaData": {
"Appium": "1.6.6.beta4"
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions