update .gitignore

This commit is contained in:
shao.xiaoping 2024-01-23 14:37:35 +08:00
parent c4a2564b1c
commit 5f08af6ef5
59 changed files with 0 additions and 1306 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 393 KiB

View File

@ -1,4 +0,0 @@
INFO 2024-01-19 16:23:29,817 [tools.py:26] 复制allure配置文件到temp目录下用来在allure report中展示
INFO 2024-01-19 16:23:33,993 [tools.py:42] Report successfully generated to /Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/report
INFO 2024-01-19 16:23:33,993 [tools.py:43] 生成allure测试报告

View File

@ -1,12 +0,0 @@
INFO 2024-01-19 16:24:31,540 [web_page.py:37] 输入文本:自动化
INFO 2024-01-19 16:24:31,732 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:24:32,650 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:24:32,818 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常43732.png
INFO 2024-01-19 16:24:33,117 [web_page.py:37] 输入文本:学习
INFO 2024-01-19 16:24:33,148 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:24:34,076 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:24:34,291 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常31857.png
INFO 2024-01-19 16:24:34,467 [tools.py:26] 复制allure配置文件到temp目录下用来在allure report中展示
INFO 2024-01-19 16:24:37,875 [tools.py:42] Report successfully generated to /Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/report
INFO 2024-01-19 16:24:37,875 [tools.py:43] 生成allure测试报告

View File

@ -1,12 +0,0 @@
INFO 2024-01-19 16:26:22,092 [web_page.py:37] 输入文本:自动化
INFO 2024-01-19 16:26:22,283 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:26:23,179 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:26:23,329 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常92224.png
INFO 2024-01-19 16:26:23,651 [web_page.py:37] 输入文本:学习
INFO 2024-01-19 16:26:23,679 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:26:24,566 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:26:24,761 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常61528.png
INFO 2024-01-19 16:26:24,931 [tools.py:26] 复制allure配置文件到temp目录下用来在allure report中展示
INFO 2024-01-19 16:26:29,176 [tools.py:42] Report successfully generated to /Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/report
INFO 2024-01-19 16:26:29,177 [tools.py:43] 生成allure测试报告

View File

@ -1,12 +0,0 @@
INFO 2024-01-19 16:48:38,693 [web_page.py:37] 输入文本:自动化
INFO 2024-01-19 16:48:38,821 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:48:39,817 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:48:39,968 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常82193.png
INFO 2024-01-19 16:48:43,277 [web_page.py:37] 输入文本:学习
INFO 2024-01-19 16:48:43,307 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:48:44,180 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:48:44,410 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常24431.png
INFO 2024-01-19 16:48:47,629 [tools.py:26] 复制allure配置文件到temp目录下用来在allure report中展示
INFO 2024-01-19 16:48:51,030 [tools.py:42] Report successfully generated to /Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/report
INFO 2024-01-19 16:48:51,030 [tools.py:43] 生成allure测试报告

View File

@ -1,4 +0,0 @@
INFO 2024-01-19 16:49:54,679 [tools.py:26] 复制allure配置文件到temp目录下用来在allure report中展示
INFO 2024-01-19 16:49:58,074 [tools.py:42] Report successfully generated to /Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/report
INFO 2024-01-19 16:49:58,074 [tools.py:43] 生成allure测试报告

View File

@ -1,8 +0,0 @@
INFO 2024-01-19 16:49:41,690 [web_page.py:37] 输入文本:自动化
INFO 2024-01-19 16:49:41,877 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:49:42,809 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:49:42,984 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常12487.png
INFO 2024-01-19 16:49:48,297 [web_page.py:37] 输入文本:学习
INFO 2024-01-19 16:49:48,361 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:49:49,238 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:49:49,480 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常14677.png

View File

@ -1,4 +0,0 @@
INFO 2024-01-19 16:51:08,278 [tools.py:26] 复制allure配置文件到temp目录下用来在allure report中展示
INFO 2024-01-19 16:51:11,742 [tools.py:42] Report successfully generated to /Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/report
INFO 2024-01-19 16:51:11,742 [tools.py:43] 生成allure测试报告

View File

@ -1,8 +0,0 @@
INFO 2024-01-19 16:51:00,397 [web_page.py:37] 输入文本:自动化
INFO 2024-01-19 16:51:00,434 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:51:01,395 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:51:01,562 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常35324.png
INFO 2024-01-19 16:51:06,987 [web_page.py:37] 输入文本:学习
INFO 2024-01-19 16:51:07,018 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:51:07,894 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:51:08,056 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常53254.png

View File

@ -1,12 +0,0 @@
INFO 2024-01-19 16:51:21,125 [web_page.py:37] 输入文本:自动化
INFO 2024-01-19 16:51:21,201 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:51:22,121 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:51:22,285 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常51521.png
INFO 2024-01-19 16:51:27,901 [web_page.py:37] 输入文本:学习
INFO 2024-01-19 16:51:27,925 [web_page.py:41] 点击元素://input[@type="submit"]
INFO 2024-01-19 16:51:28,837 [web_page.py:49] 可见元素://span[contains(text(), "百度为您找到以下结果")]
INFO 2024-01-19 16:51:29,061 [web_page.py:79] 生成图片:/Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/file/picture/搜索结果页面展示正常54034.png
INFO 2024-01-19 16:51:29,218 [tools.py:26] 复制allure配置文件到temp目录下用来在allure report中展示
INFO 2024-01-19 16:51:32,770 [tools.py:42] Report successfully generated to /Users/shao.xiaoping/Documents/TW-Project/playwright_pytest_demo/report
INFO 2024-01-19 16:51:32,770 [tools.py:43] 生成allure测试报告

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 393 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 KiB

View File

@ -1,2 +0,0 @@
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"","百度搜索","","0","0","2","0","0"
1 Epic Feature Story FAILED BROKEN PASSED SKIPPED UNKNOWN
2 百度搜索 0 0 2 0 0

View File

@ -1,43 +0,0 @@
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"name" : "behaviors",
"children" : [ {
"name" : "百度搜索",
"children" : [ {
"name" : "百度搜索 [\\u81ea\\u52a8\\u5316]",
"uid" : "1d5dc1c0364f7b9b",
"parentUid" : "a76e3034c0bacf1f726844fd54aff2b5",
"status" : "passed",
"time" : {
"start" : 1705654274084,
"stop" : 1705654282286,
"duration" : 8202
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "自动化" ]
}, {
"name" : "百度搜索 [\\u5b66\\u4e60]",
"uid" : "f766627c4b956855",
"parentUid" : "a76e3034c0bacf1f726844fd54aff2b5",
"status" : "passed",
"time" : {
"start" : 1705654282288,
"stop" : 1705654289062,
"duration" : 6774
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "学习" ]
} ],
"uid" : "a76e3034c0bacf1f726844fd54aff2b5"
} ]
}

View File

@ -1,5 +0,0 @@
{
"uid" : "4b4757e66a1912dae1a509f688f20b0f",
"name" : "categories",
"children" : [ ]
}

View File

@ -1,39 +0,0 @@
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"name" : "packages",
"children" : [ {
"name" : "百度搜索 [\\u81ea\\u52a8\\u5316]",
"uid" : "1d5dc1c0364f7b9b",
"parentUid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"status" : "passed",
"time" : {
"start" : 1705654274084,
"stop" : 1705654282286,
"duration" : 8202
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "自动化" ]
}, {
"name" : "百度搜索 [\\u5b66\\u4e60]",
"uid" : "f766627c4b956855",
"parentUid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"status" : "passed",
"time" : {
"start" : 1705654282288,
"stop" : 1705654289062,
"duration" : 6774
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "学习" ]
} ]
}

View File

@ -1,3 +0,0 @@
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"passed","Fri Jan 19 16:51:22 CST 2024","Fri Jan 19 16:51:29 CST 2024","6774","","","","","","百度搜索 [\u5b66\u4e60]",""
"passed","Fri Jan 19 16:51:14 CST 2024","Fri Jan 19 16:51:22 CST 2024","8202","","","","","","百度搜索 [\u81ea\u52a8\u5316]",""
1 Status Start Time Stop Time Duration in ms Parent Suite Suite Sub Suite Test Class Test Method Name Description
2 passed Fri Jan 19 16:51:22 CST 2024 Fri Jan 19 16:51:29 CST 2024 6774 百度搜索 [\u5b66\u4e60]
3 passed Fri Jan 19 16:51:14 CST 2024 Fri Jan 19 16:51:22 CST 2024 8202 百度搜索 [\u81ea\u52a8\u5316]

View File

@ -1,39 +0,0 @@
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"name" : "suites",
"children" : [ {
"name" : "百度搜索 [\\u81ea\\u52a8\\u5316]",
"uid" : "1d5dc1c0364f7b9b",
"parentUid" : "98d3104e051c652961429bf95fa0b5d6",
"status" : "passed",
"time" : {
"start" : 1705654274084,
"stop" : 1705654282286,
"duration" : 8202
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "自动化" ]
}, {
"name" : "百度搜索 [\\u5b66\\u4e60]",
"uid" : "f766627c4b956855",
"parentUid" : "98d3104e051c652961429bf95fa0b5d6",
"status" : "passed",
"time" : {
"start" : 1705654282288,
"stop" : 1705654289062,
"duration" : 6774
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "学习" ]
} ]
}

View File

@ -1,113 +0,0 @@
{
"uid" : "1d5dc1c0364f7b9b",
"name" : "百度搜索 [\\u81ea\\u52a8\\u5316]",
"fullName" : "../features/search.feature:百度搜索",
"time" : {
"start" : 1705654274084,
"stop" : 1705654282286,
"duration" : 8202
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"testStage" : {
"status" : "passed",
"steps" : [ {
"name" : "Given 打开百度首页",
"time" : {
"start" : 1705654275030,
"stop" : 1705654281058,
"duration" : 6028
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false
}, {
"name" : "When 输入关键字<自动化>进行搜索搜索",
"time" : {
"start" : 1705654281060,
"stop" : 1705654281202,
"duration" : 142
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false
}, {
"name" : "Then 进入搜索结果页面",
"time" : {
"start" : 1705654281202,
"stop" : 1705654282286,
"duration" : 1084
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "8d5533894d216ba5",
"name" : "搜索结果页面展示正常51521",
"source" : "8d5533894d216ba5.png",
"type" : "image/png",
"size" : 337099
} ],
"parameters" : [ ],
"stepsCount" : 0,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"hasContent" : true
} ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 3,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"hasContent" : true
},
"afterStages" : [ ],
"labels" : [ {
"name" : "host",
"value" : "Xiaopings-MacBook-Pro.local"
}, {
"name" : "thread",
"value" : "91537-MainThread"
}, {
"name" : "framework",
"value" : "pytest-bdd"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "feature",
"value" : "百度搜索"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "key_wd",
"value" : "自动化"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"categories" : [ ],
"tags" : [ ]
},
"source" : "1d5dc1c0364f7b9b.json",
"parameterValues" : [ "自动化" ]
}

View File

@ -1,113 +0,0 @@
{
"uid" : "f766627c4b956855",
"name" : "百度搜索 [\\u5b66\\u4e60]",
"fullName" : "../features/search.feature:百度搜索",
"time" : {
"start" : 1705654282288,
"stop" : 1705654289062,
"duration" : 6774
},
"status" : "passed",
"flaky" : false,
"newFailed" : false,
"newBroken" : false,
"newPassed" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"beforeStages" : [ ],
"testStage" : {
"status" : "passed",
"steps" : [ {
"name" : "Given 打开百度首页",
"time" : {
"start" : 1705654282289,
"stop" : 1705654287845,
"duration" : 5556
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false
}, {
"name" : "When 输入关键字<学习>进行搜索搜索",
"time" : {
"start" : 1705654287847,
"stop" : 1705654287926,
"duration" : 79
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 0,
"attachmentsCount" : 0,
"shouldDisplayMessage" : false,
"hasContent" : false
}, {
"name" : "Then 进入搜索结果页面",
"time" : {
"start" : 1705654287926,
"stop" : 1705654289062,
"duration" : 1136
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "3d334f94e68f0fd5",
"name" : "搜索结果页面展示正常54034",
"source" : "3d334f94e68f0fd5.png",
"type" : "image/png",
"size" : 402852
} ],
"parameters" : [ ],
"stepsCount" : 0,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"hasContent" : true
} ],
"attachments" : [ ],
"parameters" : [ ],
"stepsCount" : 3,
"attachmentsCount" : 1,
"shouldDisplayMessage" : false,
"hasContent" : true
},
"afterStages" : [ ],
"labels" : [ {
"name" : "host",
"value" : "Xiaopings-MacBook-Pro.local"
}, {
"name" : "thread",
"value" : "91537-MainThread"
}, {
"name" : "framework",
"value" : "pytest-bdd"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "feature",
"value" : "百度搜索"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ {
"name" : "key_wd",
"value" : "学习"
} ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"categories" : [ ],
"tags" : [ ]
},
"source" : "f766627c4b956855.json",
"parameterValues" : [ "学习" ]
}

View File

@ -1,47 +0,0 @@
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"name" : "timeline",
"children" : [ {
"name" : "Xiaopings-MacBook-Pro.local",
"children" : [ {
"name" : "91537-MainThread",
"children" : [ {
"name" : "百度搜索 [\\u81ea\\u52a8\\u5316]",
"uid" : "1d5dc1c0364f7b9b",
"parentUid" : "b0e3259e6e2bb059a5100648ec319d8b",
"status" : "passed",
"time" : {
"start" : 1705654274084,
"stop" : 1705654282286,
"duration" : 8202
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "自动化" ]
}, {
"name" : "百度搜索 [\\u5b66\\u4e60]",
"uid" : "f766627c4b956855",
"parentUid" : "b0e3259e6e2bb059a5100648ec319d8b",
"status" : "passed",
"time" : {
"start" : 1705654282288,
"stop" : 1705654289062,
"duration" : 6774
},
"flaky" : false,
"newFailed" : false,
"newPassed" : false,
"newBroken" : false,
"retriesCount" : 0,
"retriesStatusChange" : false,
"parameters" : [ "学习" ]
} ],
"uid" : "b0e3259e6e2bb059a5100648ec319d8b"
} ],
"uid" : "880fc1c5ef3e6c5ac2d70f685fe43bea"
} ]
}

View File

@ -1,11 +0,0 @@
launch_status failed=0 1705654291000000000
launch_status broken=0 1705654291000000000
launch_status passed=2 1705654291000000000
launch_status skipped=0 1705654291000000000
launch_status unknown=0 1705654291000000000
launch_time duration=14978 1705654291000000000
launch_time min_duration=6774 1705654291000000000
launch_time max_duration=8202 1705654291000000000
launch_time sum_duration=14976 1705654291000000000
launch_retries retries=0 1705654291000000000
launch_retries run=2 1705654291000000000

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>

View File

@ -1,11 +0,0 @@
launch_status_failed 0
launch_status_broken 0
launch_status_passed 2
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 14978
launch_time_min_duration 6774
launch_time_max_duration 8202
launch_time_sum_duration 14976
launch_retries_retries 0
launch_retries_run 2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,3 +0,0 @@
[ {
"data" : { }
} ]

View File

@ -1,5 +0,0 @@
[ {
"data" : {
"duration" : 14978
}
} ]

View File

@ -1,10 +0,0 @@
[ {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 2
}
} ]

View File

@ -1 +0,0 @@
{ }

View File

@ -1,6 +0,0 @@
[ {
"data" : {
"run" : 2,
"retry" : 0
}
} ]

View File

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico?v=2">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" href="plugins/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugins/behaviors/index.js"></script>
<script src="plugins/packages/index.js"></script>
<script src="plugins/screen-diff/index.js"></script>
</body>
</html>

View File

@ -1,192 +0,0 @@
'use strict';
allure.api.addTranslation('en', {
tab: {
behaviors: {
name: 'Behaviors'
}
},
widget: {
behaviors: {
name: 'Features by stories',
showAll: 'show all'
}
}
});
allure.api.addTranslation('ru', {
tab: {
behaviors: {
name: 'Функциональность'
}
},
widget: {
behaviors: {
name: 'Функциональность',
showAll: 'показать все'
}
}
});
allure.api.addTranslation('zh', {
tab: {
behaviors: {
name: '功能'
}
},
widget: {
behaviors: {
name: '特性场景',
showAll: '显示所有'
}
}
});
allure.api.addTranslation('de', {
tab: {
behaviors: {
name: 'Verhalten'
}
},
widget: {
behaviors: {
name: 'Features nach Stories',
showAll: 'Zeige alle'
}
}
});
allure.api.addTranslation('nl', {
tab: {
behaviors: {
name: 'Functionaliteit'
}
},
widget: {
behaviors: {
name: 'Features en storys',
showAll: 'Toon alle'
}
}
});
allure.api.addTranslation('he', {
tab: {
behaviors: {
name: 'התנהגויות'
}
},
widget: {
behaviors: {
name: 'תכונות לפי סיפורי משתמש',
showAll: 'הצג הכול'
}
}
});
allure.api.addTranslation('br', {
tab: {
behaviors: {
name: 'Comportamentos'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por história',
showAll: 'Mostrar tudo'
}
}
});
allure.api.addTranslation('ja', {
tab: {
behaviors: {
name: '振る舞い'
}
},
widget: {
behaviors: {
name: 'ストーリー別の機能',
showAll: '全て表示'
}
}
});
allure.api.addTranslation('es', {
tab: {
behaviors: {
name: 'Funcionalidades'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por Historias de Usuario',
showAll: 'mostrar todo'
}
}
});
allure.api.addTranslation('kr', {
tab: {
behaviors: {
name: '동작'
}
},
widget: {
behaviors: {
name: '스토리별 기능',
showAll: '전체 보기'
}
}
});
allure.api.addTranslation('fr', {
tab: {
behaviors: {
name: 'Comportements'
}
},
widget: {
behaviors: {
name: 'Thèmes par histoires',
showAll: 'Montrer tout'
}
}
});
allure.api.addTranslation('pl', {
tab: {
behaviors: {
name: 'Zachowania'
}
},
widget: {
behaviors: {
name: 'Funkcje według historii',
showAll: 'pokaż wszystko'
}
}
});
allure.api.addTab('behaviors', {
title: 'tab.behaviors.name', icon: 'fa fa-list',
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.behaviors.name',
baseUrl: 'behaviors',
url: 'data/behaviors.json',
csvUrl: 'data/behaviors.csv'
});
})
});
allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
rowTag: 'a',
title: 'widget.behaviors.name',
baseUrl: 'behaviors',
showLinks: true
}));

View File

@ -1,112 +0,0 @@
'use strict';
allure.api.addTranslation('en', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('ru', {
tab: {
packages: {
name: 'Пакеты'
}
}
});
allure.api.addTranslation('zh', {
tab: {
packages: {
name: '包'
}
}
});
allure.api.addTranslation('de', {
tab: {
packages: {
name: 'Pakete'
}
}
});
allure.api.addTranslation('nl', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('he', {
tab: {
packages: {
name: 'חבילות'
}
}
});
allure.api.addTranslation('br', {
tab: {
packages: {
name: 'Pacotes'
}
}
});
allure.api.addTranslation('ja', {
tab: {
packages: {
name: 'パッケージ'
}
}
});
allure.api.addTranslation('es', {
tab: {
packages: {
name: 'Paquetes'
}
}
});
allure.api.addTranslation('kr', {
tab: {
packages: {
name: '패키지'
}
}
});
allure.api.addTranslation('fr', {
tab: {
packages: {
name: 'Paquets'
}
}
});
allure.api.addTranslation('pl', {
tab: {
packages: {
name: 'Pakiety'
}
}
});
allure.api.addTab('packages', {
title: 'tab.packages.name', icon: 'fa fa-align-left',
route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.packages.name',
baseUrl: 'packages',
url: 'data/packages.json'
});
})
});

View File

@ -1,200 +0,0 @@
(function () {
var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
function renderImage(src) {
return (
'<div class="screen-diff__container">' +
'<img class="screen-diff__image" src="' +
src +
'">' +
'</div>'
);
}
function findImage(data, name) {
if (data.testStage && data.testStage.attachments) {
var matchedImage = data.testStage.attachments.filter(function (attachment) {
return attachment.name === name;
})[0];
if (matchedImage) {
return 'data/attachments/' + matchedImage.source;
}
}
return null;
}
function renderDiffContent(type, diffImage, actualImage, expectedImage) {
if (type === 'diff') {
if (diffImage) {
return renderImage(diffImage);
}
}
if (type === 'overlay' && expectedImage) {
return (
'<div class="screen-diff__overlay screen-diff__container">' +
'<img class="screen-diff__image" src="' +
expectedImage +
'">' +
'<div class="screen-diff__image-over">' +
'<img class="screen-diff__image" src="' +
actualImage +
'">' +
'</div>' +
'</div>'
);
}
if (actualImage) {
return renderImage(actualImage);
}
return 'No diff data provided';
}
var TestResultView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
var data = this.model.toJSON();
var testType = data.labels.filter(function (label) {
return label.name === 'testType';
})[0];
var diffImage = findImage(data, 'diff');
var actualImage = findImage(data, 'actual');
var expectedImage = findImage(data, 'expected');
if (!testType || testType.value !== 'screenshotDiff') {
return;
}
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: diffImage,
actualImage: actualImage,
expectedImage: expectedImage,
}),
);
},
});
var ErrorView = Backbone.Marionette.View.extend({
templateContext: function () {
return this.options;
},
template: function (data) {
return '<pre class="screen-diff-error">' + data.error + '</pre>';
},
});
var AttachmentView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
jQuery
.getJSON(this.options.sourceUrl)
.then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
},
renderErrorView: function (error) {
console.log(error);
this.showChildView(
'subView',
new ErrorView({
error: error.statusText,
}),
);
},
renderScreenDiffView: function (data) {
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: data.diff,
actualImage: data.actual,
expectedImage: data.expected,
}),
);
},
});
var ScreenDiffView = Backbone.Marionette.View.extend({
className: 'pane__section',
events: function () {
return {
['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
'mousemove .screen-diff__overlay': 'onOverlayMove',
};
},
initialize: function (options) {
this.diffImage = options.diffImage;
this.actualImage = options.actualImage;
this.expectedImage = options.expectedImage;
this.radioName = 'screen-diff-type-' + this.cid;
},
templateContext: function () {
return {
diffType: settings.get('diffType'),
diffImage: this.diffImage,
actualImage: this.actualImage,
expectedImage: this.expectedImage,
radioName: this.radioName,
};
},
template: function (data) {
if (!data.diffImage && !data.actualImage && !data.expectedImage) {
return '';
}
return (
'<h3 class="pane__section-title">Screen Diff</h3>' +
'<div class="screen-diff__content">' +
'<div class="screen-diff__switchers">' +
'<label><input type="radio" name="' +
data.radioName +
'" value="diff"> Show diff</label>' +
'<label><input type="radio" name="' +
data.radioName +
'" value="overlay"> Show overlay</label>' +
'</div>' +
renderDiffContent(
data.diffType,
data.diffImage,
data.actualImage,
data.expectedImage,
) +
'</div>'
);
},
adjustImageSize: function (event) {
var overImage = this.$(event.target);
overImage.width(overImage.width());
},
onRender: function () {
const diffType = settings.get('diffType');
this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
'checked',
true,
);
if (diffType === 'overlay') {
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
}
},
onOverlayMove: function (event) {
var pageX = event.pageX;
var containerScroll = this.$('.screen-diff__container').scrollLeft();
var elementX = event.currentTarget.getBoundingClientRect().left;
var delta = pageX - elementX + containerScroll;
this.$('.screen-diff__image-over').width(delta);
},
onDiffTypeChange: function (event) {
settings.save('diffType', event.target.value);
this.render();
},
});
allure.api.addTestResultBlock(TestResultView, { position: 'before' });
allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
View: AttachmentView,
icon: 'fa fa-exchange',
});
})();

View File

@ -1,30 +0,0 @@
.screen-diff__switchers {
margin-bottom: 1em;
}
.screen-diff__switchers label + label {
margin-left: 1em;
}
.screen-diff__overlay {
position: relative;
cursor: col-resize;
}
.screen-diff__container {
overflow-x: auto;
}
.screen-diff__image-over {
top: 0;
left: 0;
bottom: 0;
background: #fff;
position: absolute;
overflow: hidden;
box-shadow: 2px 0 1px -1px #aaa;
}
.screen-diff-error {
color: #fd5a3e;
}

File diff suppressed because one or more lines are too long

View File

@ -1,15 +0,0 @@
{
"total" : 1,
"items" : [ {
"uid" : "a76e3034c0bacf1f726844fd54aff2b5",
"name" : "百度搜索",
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 2
}
} ]
}

View File

@ -1,3 +0,0 @@
[ {
"data" : { }
} ]

View File

@ -1,4 +0,0 @@
{
"total" : 0,
"items" : [ ]
}

View File

@ -1,5 +0,0 @@
[ {
"data" : {
"duration" : 14978
}
} ]

View File

@ -1,21 +0,0 @@
[ {
"uid" : "f766627c4b956855",
"name" : "百度搜索 [\\u5b66\\u4e60]",
"time" : {
"start" : 1705654282288,
"stop" : 1705654289062,
"duration" : 6774
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1d5dc1c0364f7b9b",
"name" : "百度搜索 [\\u81ea\\u52a8\\u5316]",
"time" : {
"start" : 1705654274084,
"stop" : 1705654282286,
"duration" : 8202
},
"status" : "passed",
"severity" : "normal"
} ]

View File

@ -1,25 +0,0 @@
[ {
"values" : [ "Tester" ],
"name" : "TestLeader"
}, {
"values" : [ "Xiaoping" ],
"name" : "Tester"
}, {
"values" : [ "Chrome" ],
"name" : "Browser"
}, {
"values" : [ "119.0.6045.160" ],
"name" : "Browser.Version"
}, {
"values" : [ "dev" ],
"name" : "Stand"
}, {
"values" : [ "https://baidu.com" ],
"name" : "BaseUrl"
}, {
"values" : [ "3.8.7" ],
"name" : "python.Version"
}, {
"values" : [ "Playwright pytest demo" ],
"name" : "Project"
} ]

View File

@ -1 +0,0 @@
[ ]

View File

@ -1,10 +0,0 @@
[ {
"data" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 2
}
} ]

View File

@ -1 +0,0 @@
[ ]

View File

@ -1,6 +0,0 @@
[ {
"data" : {
"run" : 2,
"retry" : 0
}
} ]

View File

@ -1,21 +0,0 @@
[ {
"uid" : "f766627c4b956855",
"name" : "百度搜索 [\\u5b66\\u4e60]",
"time" : {
"start" : 1705654282288,
"stop" : 1705654289062,
"duration" : 6774
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1d5dc1c0364f7b9b",
"name" : "百度搜索 [\\u81ea\\u52a8\\u5316]",
"time" : {
"start" : 1705654274084,
"stop" : 1705654282286,
"duration" : 8202
},
"status" : "passed",
"severity" : "normal"
} ]

View File

@ -1,21 +0,0 @@
[ {
"uid" : "f766627c4b956855",
"name" : "百度搜索 [\\u5b66\\u4e60]",
"time" : {
"start" : 1705654282288,
"stop" : 1705654289062,
"duration" : 6774
},
"status" : "passed",
"severity" : "normal"
}, {
"uid" : "1d5dc1c0364f7b9b",
"name" : "百度搜索 [\\u81ea\\u52a8\\u5316]",
"time" : {
"start" : 1705654274084,
"stop" : 1705654282286,
"duration" : 8202
},
"status" : "passed",
"severity" : "normal"
} ]

View File

@ -1,4 +0,0 @@
{
"total" : 2,
"items" : [ ]
}

View File

@ -1,20 +0,0 @@
{
"reportName" : "Allure Report",
"testRuns" : [ ],
"statistic" : {
"failed" : 0,
"broken" : 0,
"skipped" : 0,
"passed" : 2,
"unknown" : 0,
"total" : 2
},
"time" : {
"start" : 1705654274084,
"stop" : 1705654289062,
"duration" : 14978,
"minDuration" : 6774,
"maxDuration" : 8202,
"sumDuration" : 14976
}
}

View File

@ -1 +0,0 @@
{"name": "百度搜索 [\\u5b66\\u4e60]", "status": "passed", "steps": [{"name": "Given 打开百度首页", "status": "passed", "start": 1705654282289, "stop": 1705654287845}, {"name": "When 输入关键字<学习>进行搜索搜索", "status": "passed", "start": 1705654287847, "stop": 1705654287926}, {"name": "Then 进入搜索结果页面", "status": "passed", "attachments": [{"name": "搜索结果页面展示正常54034", "source": "8add0b65-26ca-4145-9c2b-eb91dc621153-attachment.png", "type": "image/png"}], "start": 1705654287926, "stop": 1705654289062}], "parameters": [{"name": "key_wd", "value": "学习"}], "start": 1705654282288, "stop": 1705654289062, "uuid": "de886189-11e9-aa1a-33d0-4c4eeb2b90ec", "fullName": "../features/search.feature:百度搜索", "labels": [{"name": "host", "value": "Xiaopings-MacBook-Pro.local"}, {"name": "thread", "value": "91537-MainThread"}, {"name": "framework", "value": "pytest-bdd"}, {"name": "language", "value": "cpython3"}, {"name": "feature", "value": "百度搜索"}]}

View File

@ -1 +0,0 @@
{"name": "百度搜索 [\\u81ea\\u52a8\\u5316]", "status": "passed", "steps": [{"name": "Given 打开百度首页", "status": "passed", "start": 1705654275030, "stop": 1705654281058}, {"name": "When 输入关键字<自动化>进行搜索搜索", "status": "passed", "start": 1705654281060, "stop": 1705654281202}, {"name": "Then 进入搜索结果页面", "status": "passed", "attachments": [{"name": "搜索结果页面展示正常51521", "source": "c0f8d2ad-187d-4741-a581-09a073f447dd-attachment.png", "type": "image/png"}], "start": 1705654281202, "stop": 1705654282286}], "parameters": [{"name": "key_wd", "value": "自动化"}], "start": 1705654274084, "stop": 1705654282286, "uuid": "79cdb49b-aa70-696d-d8ba-0e2a8e22fbe8", "fullName": "../features/search.feature:百度搜索", "labels": [{"name": "host", "value": "Xiaopings-MacBook-Pro.local"}, {"name": "thread", "value": "91537-MainThread"}, {"name": "framework", "value": "pytest-bdd"}, {"name": "language", "value": "cpython3"}, {"name": "feature", "value": "百度搜索"}]}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 393 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 KiB

View File

@ -1,8 +0,0 @@
TestLeader=Tester
Tester=Xiaoping
Browser=Chrome
Browser.Version= 119.0.6045.160
Stand=dev
BaseUrl=https://baidu.com
python.Version=3.8.7
Project=Playwright pytest demo