Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the user specified screenshots to the report #41

Open
shridharkalagi opened this issue Oct 17, 2017 · 0 comments
Open

Add the user specified screenshots to the report #41

shridharkalagi opened this issue Oct 17, 2017 · 0 comments

Comments

@shridharkalagi
Copy link

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"
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant