Skip to content

Improved JSON Reporting #152

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

Merged
merged 6 commits into from
Sep 14, 2021
Merged

Conversation

karanshah-browserstack
Copy link
Collaborator

@karanshah-browserstack karanshah-browserstack commented Aug 9, 2021

Json reporting structure changes
Sample JSON :

{
    "build_id": "<build_id>",
    "build_name": "<build_name>",
    "project_name": "<project_name>",
    "build_url": "<dashboard-build-link>",
    "build_duration": {
        "started_at": "2021-08-05T10:18:44.000Z",
        "total_duration": 106,
        "queue_time": 1.86,
        "setup_time": 6.08,
        "test_run_time": 80.87,
        "idle_time": 0,
        "misc_time": 17.19
    },
    "rows": {
        "actions.spec.js": {
            "path": "tests",
            "meta": {
                "total": 1,
                "passed": 1,
                "failed": 0
            },
            "sessions": [
                {
                    "meta": {
                        "started_at": "2021-08-05T10:19:22.463Z",
                        "duration": 26.147,
                        "total_tests": 14,
                        "passed": 14,
                        "failed": 0,
                        "skipped": 0,
                        "pending": 0
                    },
                    "name": "chrome 92, OS X Big Sur",
                    "status": "passed",
                    "link": "<dashboard-test-link>",
                    "tests": [
                        {
                            "name": ".type() - type into a DOM element",
                            "status": "passed",
                            "duration": "6.81"
                        },
                        {
                            "name": ".focus() - focus on a DOM element",
                            "status": "passed",
                            "duration": "0.58"
                        },
                        {
                            "name": ".blur() - blur off a DOM element",
                            "status": "passed",
                            "duration": "0.71"
                        },
                        {
                            "name": ".clear() - clears an input or textarea element",
                            "status": "passed",
                            "duration": "1.05"
                        },
                        {
                            "name": ".submit() - submit a form",
                            "status": "passed",
                            "duration": "0.81"
                        },
                        {
                            "name": ".click() - click on a DOM element",
                            "status": "passed",
                            "duration": "3.98"
                        },
                        {
                            "name": ".dblclick() - double click on a DOM element",
                            "status": "passed",
                            "duration": "0.44"
                        },
                        {
                            "name": ".rightclick() - right click on a DOM element",
                            "status": "passed",
                            "duration": "0.53"
                        },
                        {
                            "name": ".check() - check a checkbox or radio element",
                            "status": "passed",
                            "duration": "1.68"
                        },
                        {
                            "name": ".uncheck() - uncheck a checkbox element",
                            "status": "passed",
                            "duration": "1.73"
                        },
                        {
                            "name": ".select() - select an option in a <select> element",
                            "status": "passed",
                            "duration": "1.57"
                        },
                        {
                            "name": ".scrollIntoView() - scroll an element into view",
                            "status": "passed",
                            "duration": "0.52"
                        },
                        {
                            "name": ".trigger() - trigger an event on a DOM element",
                            "status": "passed",
                            "duration": "0.44"
                        },
                        {
                            "name": "cy.scrollTo() - scroll the window or element to a position",
                            "status": "passed",
                            "duration": "2.33"
                        }
                    ]
                }
            ]
        },
        "aliasing.spec.js": {
            "path": "tests",
            "meta": {
                "total": 1,
                "passed": 1,
                "failed": 0
            },
            "sessions": [
                {
                    "meta": {
                        "started_at": "2021-08-05T10:20:17.195Z",
                        "duration": 3.998,
                        "total_tests": 2,
                        "passed": 2,
                        "failed": 0,
                        "skipped": 0,
                        "pending": 0
                    },
                    "name": "chrome 92, OS X Big Sur",
                    "status": "passed",
                    "link": "<dashboard-test-link>",
                    "tests": [
                        {
                            "name": ".as() - alias a DOM element for later use",
                            "status": "passed",
                            "duration": "0.85"
                        },
                        {
                            "name": ".as() - alias a route for later use",
                            "status": "passed",
                            "duration": "1.17"
                        }
                    ]
                }
            ]
        }
    }
}

nagpalkaran95
nagpalkaran95 previously approved these changes Aug 17, 2021
Copy link
Collaborator

@nagpalkaran95 nagpalkaran95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

nagpalkaran95
nagpalkaran95 previously approved these changes Sep 4, 2021
@karanshah-browserstack karanshah-browserstack merged commit eaee597 into master Sep 14, 2021
@karanshah-browserstack karanshah-browserstack deleted the improved_json_reporting branch September 14, 2021 14:14
Copy link
Collaborator

@rahulpsq rahulpsq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

3 participants