-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEVX-1154] Set default value for failure related fields in junit (#112)
* [DEVX-1154] Set default value for failure related fields in junit * Add unit test for generating junit file * remove debug code
- Loading branch information
1 parent
190f02d
commit 38d76c6
Showing
5 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<testsuites name="Firefox using global mode" tests="1" failures="1" skipped="0" errors="0" time="4.143"> | ||
<testsuite name="tests/example.test.js" timestamp="2021-08-25T23:14:56.785Z" hostname="" tests="1" failures="1" skipped="0" time="4.143" errors="0" id="0"> | ||
<testcase name="should verify title of the page" classname="tests/example.test.js:3:1 › [firefox] should verify title of the page" time="4.143"> | ||
<failure message="example.test.js:3:1 should verify title of the page" type="FAILURE"><![CDATA[ | ||
tests/example.test.js:3:1 › [firefox] should verify title of the page ============================ | ||
Error: expect(received).toBe(expected) // Object.is equality | ||
Expected: "Swag Labs111" | ||
Received: "Swag Labs" | ||
3 | test('should verify title of the page', async ({ page }) => { | ||
4 | await page.goto('https://www.saucedemo.com/'); | ||
> 5 | expect(await page.title()).toBe('Swag Labs111'); | ||
| ^ | ||
6 | }); | ||
7 | | ||
at /home/seluser/__project__/tests/example.test.js:5:32 | ||
at WorkerRunner._runTestWithBeforeHooks (/home/seluser/node_modules/@playwright/test/lib/test/workerRunner.js:290:13) | ||
]]></failure> | ||
</testcase> | ||
<properties> | ||
<property name="platformName" value="Linux"/> | ||
<property name="browserName" value="firefox"/> | ||
</properties> | ||
</testsuite> | ||
</testsuites> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<testsuites id="" name="" tests="1" failures="1" skipped="0" errors="0" time="5.535"> | ||
<testsuite name="tests/example.test.js" timestamp="1629933296785" hostname="" tests="1" failures="1" skipped="0" time="4.143" errors="0"> | ||
<testcase name="should verify title of the page" classname="tests/example.test.js:3:1 › [firefox] should verify title of the page" time="4.143"> | ||
<failure message="example.test.js:3:1 should verify title of the page" type="FAILURE"> | ||
tests/example.test.js:3:1 › [firefox] should verify title of the page ============================ | ||
|
||
Error: expect(received).toBe(expected) // Object.is equality | ||
|
||
Expected: "Swag Labs111" | ||
Received: "Swag Labs" | ||
|
||
3 | test('should verify title of the page', async ({ page }) => { | ||
4 | await page.goto('https://www.saucedemo.com/'); | ||
> 5 | expect(await page.title()).toBe('Swag Labs111'); | ||
| ^ | ||
6 | }); | ||
7 | | ||
|
||
at /home/seluser/__project__/tests/example.test.js:5:32 | ||
at WorkerRunner._runTestWithBeforeHooks (/home/seluser/node_modules/@playwright/test/lib/test/workerRunner.js:290:13) | ||
|
||
</failure> | ||
</testcase> | ||
</testsuite> | ||
</testsuites> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters