Returning a JSON object as a result of a test case run using Puppeteer/JavaScript

Viewed 24

I want to get the test case result as a JSON object as shown in the example below:

result = {
    testCaseId: "test case id",
    description: "test case name",
    steps: [{
        id: "step #",
        expectedResult: "message",
        status: "Passed/Failed"
    }]
}
0 Answers
Related