Commit 37f0dfbe authored by libin's avatar libin
Browse files

20190821

parent 32441758
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>智能工位系统测试报告</title>
<meta name="generator" content="HTMLTestRunner 0.8.2"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css" media="screen">
body { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
table { font-size: 100%; }
pre { }
/* -- heading ---------------------------------------------------------------------- */
h1 {
font-size: 16pt;
color: gray;
}
.heading {
margin-top: 0ex;
margin-bottom: 1ex;
}
.heading .attribute {
margin-top: 1ex;
margin-bottom: 0;
}
.heading .description {
margin-top: 4ex;
margin-bottom: 6ex;
}
/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}
a.popup_link:hover {
color: red;
}
.popup_window {
display: none;
position: relative;
left: 0px;
top: 0px;
/*border: solid #627173 1px; */
padding: 10px;
background-color: #E6E6D6;
font-family: "Lucida Console", "Courier New", Courier, monospace;
text-align: left;
font-size: 8pt;
width: 500px;
}
}
/* -- report ------------------------------------------------------------------------ */
#show_detail_line {
margin-top: 3ex;
margin-bottom: 1ex;
}
#result_table {
width: 80%;
border-collapse: collapse;
border: 1px solid #777;
}
#header_row {
font-weight: bold;
color: white;
background-color: #777;
}
#result_table td {
border: 1px solid #777;
padding: 2px;
}
#total_row { font-weight: bold; }
.passClass { background-color: #6c6; }
.failClass { background-color: #c60; }
.errorClass { background-color: #c00; }
.passCase { color: #6c6; }
.failCase { color: #c60; font-weight: bold; }
.errorCase { color: #c00; font-weight: bold; }
.hiddenRow { display: none; }
.testcase { margin-left: 2em; }
/* -- ending ---------------------------------------------------------------------- */
#ending {
}
</style>
</head>
<body>
<script language="javascript" type="text/javascript"><!--
output_list = Array();
/* level - 0:Summary; 1:Failed; 2:All */
function showCase(level) {
trs = document.getElementsByTagName("tr");
for (var i = 0; i < trs.length; i++) {
tr = trs[i];
id = tr.id;
if (id.substr(0,2) == 'ft') {
if (level < 1) {
tr.className = 'hiddenRow';
}
else {
tr.className = '';
}
}
if (id.substr(0,2) == 'pt') {
if (level > 1) {
tr.className = '';
}
else {
tr.className = 'hiddenRow';
}
}
}
}
function showClassDetail(cid, count) {
var id_list = Array(count);
var toHide = 1;
for (var i = 0; i < count; i++) {
tid0 = 't' + cid.substr(1) + '.' + (i+1);
tid = 'f' + tid0;
tr = document.getElementById(tid);
if (!tr) {
tid = 'p' + tid0;
tr = document.getElementById(tid);
}
id_list[i] = tid;
if (tr.className) {
toHide = 0;
}
}
for (var i = 0; i < count; i++) {
tid = id_list[i];
if (toHide) {
document.getElementById('div_'+tid).style.display = 'none'
document.getElementById(tid).className = 'hiddenRow';
}
else {
document.getElementById(tid).className = '';
}
}
}
function showTestDetail(div_id){
var details_div = document.getElementById(div_id)
var displayState = details_div.style.display
// alert(displayState)
if (displayState != 'block' ) {
displayState = 'block'
details_div.style.display = 'block'
}
else {
details_div.style.display = 'none'
}
}
function html_escape(s) {
s = s.replace(/&/g,'&amp;');
s = s.replace(/</g,'&lt;');
s = s.replace(/>/g,'&gt;');
return s;
}
/* obsoleted by detail in <div>
function showOutput(id, name) {
var w = window.open("", //url
name,
"resizable,scrollbars,status,width=800,height=450");
d = w.document;
d.write("<pre>");
d.write(html_escape(output_list[id]));
d.write("\n");
d.write("<a href='javascript:window.close()'>close</a>\n");
d.write("</pre>\n");
d.close();
}
*/
--></script>
<div class='heading'>
<h1>智能工位系统测试报告</h1>
<p class='attribute'><strong>Start Time:</strong> 2019-08-20 16:52:28</p>
<p class='attribute'><strong>Duration:</strong> 1:54:46.919849</p>
<p class='attribute'><strong>Status:</strong> Pass 120 Failure 28 Error 49</p>
<p class='description'>用例执行情况:</p>
</div>
<p id='show_detail_line'>Show
<a href='javascript:showCase(0)'>Summary</a>
<a href='javascript:showCase(1)'>Failed</a>
<a href='javascript:showCase(2)'>All</a>
</p>
<table id='result_table'>
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
<td>Test Group/Test case</td>
<td>Count</td>
<td>Pass</td>
<td>Fail</td>
<td>Error</td>
<td>View</td>
</tr>
<tr class='passClass'>
<td>testcase001_superadministrator_login.Login</td>
<td>5</td>
<td>5</td>
<td>0</td>
<td>0</td>
<td><a href="javascript:showClassDetail('c1',5)">Detail</a></td>
</tr>
<tr id='pt1.1' class='hiddenRow'>
<td class='none'><div class='testcase'>test_user_login_001</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt1.2' class='hiddenRow'>
<td class='none'><div class='testcase'>test_user_login_002</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt1.3' class='hiddenRow'>
<td class='none'><div class='testcase'>test_user_login_003</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt1.4' class='hiddenRow'>
<td class='none'><div class='testcase'>test_user_login_004</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt1.5' class='hiddenRow'>
<td class='none'><div class='testcase'>test_user_login_005</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr class='passClass'>
<td>testcase002_superadministrator_navigation_menu.NavigationMemu</td>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0</td>
<td><a href="javascript:showClassDetail('c2',1)">Detail</a></td>
</tr>
<tr id='pt2.1' class='hiddenRow'>
<td class='none'><div class='testcase'>test_navigation_menu_shrin_and_expand</div></td>
<td colspan='5' align='center'>
<!--css div popup start-->
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt2.1')" >
pass</a>
<div id='div_pt2.1' class="popup_window">
<div style='text-align: right; color:red;cursor:pointer'>
<a onfocus='this.blur();' onclick="document.getElementById('div_pt2.1').style.display = 'none' " >
[x]</a>
</div>
<pre>
pt2.1: The element doesn't exist!
</pre>
</div>
<!--css div popup end-->
</td>
</tr>
<tr class='passClass'>
<td>testcase003_superadministrator_createcompany.CreatCompany</td>
<td>4</td>
<td>4</td>
<td>0</td>
<td>0</td>
<td><a href="javascript:showClassDetail('c3',4)">Detail</a></td>
</tr>
<tr id='pt3.1' class='hiddenRow'>
<td class='none'><div class='testcase'>test_create_cancel</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt3.2' class='hiddenRow'>
<td class='none'><div class='testcase'>test_create_close</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt3.3' class='hiddenRow'>
<td class='none'><div class='testcase'>test_create_determine</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt3.4' class='hiddenRow'>
<td class='none'><div class='testcase'>test_create_determine_already_exist</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr class='errorClass'>
<td>testcase004_superadministrator_editcompany.EditCompany</td>
<td>7</td>
<td>6</td>
<td>0</td>
<td>1</td>
<td><a href="javascript:showClassDetail('c4',7)">Detail</a></td>
</tr>
<tr id='pt4.1' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_company_001</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt4.2' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_company_002</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt4.3' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_company_003</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt4.4' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_company_004</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='ft4.5' class='none'>
<td class='errorCase'><div class='testcase'>test_edit_company_005: 修改企业名重复(bug,重复能成功)</div></td>
<td colspan='5' align='center'>
<!--css div popup start-->
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft4.5')" >
error</a>
<div id='div_ft4.5' class="popup_window">
<div style='text-align: right; color:red;cursor:pointer'>
<a onfocus='this.blur();' onclick="document.getElementById('div_ft4.5').style.display = 'none' " >
[x]</a>
</div>
<pre>
ft4.5: Traceback (most recent call last):
File "D:\workspace\python\Smart_workspace\src\common\web_client.py", line 234, in assert_mark_msg
self.wait_unit_elem(element_selector, find_by)
File "D:\workspace\python\Smart_workspace\src\common\web_client.py", line 94, in wait_unit_elem
EC.presence_of_element_located((find_by, element_selector)))
File "D:\python\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\workspace\python\Smart_workspace\src\testcases_admin\testcase004_superadministrator_editcompany.py", line 101, in test_edit_company_005
self.object.assert_mark_msg(administrator.ASSERT_EDIT_ERROR, test_data.ASSERT_EDIT_ERROR_SPECIAL, By.CSS_SELECTOR) # 断言提示信息
File "D:\workspace\python\Smart_workspace\src\common\web_client.py", line 243, in assert_mark_msg
raise Exception("can't find element:"+element_selector)
Exception: can't find element:.ant-message-custom-content.ant-message-error&gt;span
</pre>
</div>
<!--css div popup end-->
</td>
</tr>
<tr id='pt4.6' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_company_006</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt4.7' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_company_007</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr class='passClass'>
<td>testcase005_superadministrator_deletecompany.EditCompany</td>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0</td>
<td><a href="javascript:showClassDetail('c5',1)">Detail</a></td>
</tr>
<tr id='pt5.1' class='hiddenRow'>
<td class='none'><div class='testcase'>test_delete_001: 删除企业</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr class='passClass'>
<td>testcase006_superadministrator_change_password.ChangePassword</td>
<td>8</td>
<td>8</td>
<td>0</td>
<td>0</td>
<td><a href="javascript:showClassDetail('c6',8)">Detail</a></td>
</tr>
<tr id='pt6.1' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_Determine</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt6.2' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_Determine_null</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt6.3' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_cancle</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt6.4' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_close</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt6.5' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_initial_null</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt6.6' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_new_null</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt6.7' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_null</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='pt6.8' class='hiddenRow'>
<td class='none'><div class='testcase'>test_edit_success</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr class='passClass'>
<td>testcase008_page_turning.PageTurning</td>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0</td>
<td><a href="javascript:showClassDetail('c7',1)">Detail</a></td>
</tr>
<tr id='pt7.1' class='hiddenRow'>
<td class='none'><div class='testcase'>test_page_turning</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr class='passClass'>
<td>testcase009_companyadmin_login.Login</td>
<td>1</td>
<td>1</td>
<td>0</td>
<td>0</td>
<td><a href="javascript:showClassDetail('c8',1)">Detail</a></td>
</tr>
<tr id='pt8.1' class='hiddenRow'>
<td class='none'><div class='testcase'>testloginuser</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr class='errorClass'>
<td>testcase011_companyadmin_create_park.CreatePark</td>
<td>4</td>
<td>3</td>
<td>0</td>
<td>1</td>
<td><a href="javascript:showClassDetail('c9',4)">Detail</a></td>
</tr>
<tr id='pt9.1' class='hiddenRow'>
<td class='none'><div class='testcase'>test_creat_yuanqu_001</div></td>
<td colspan='5' align='center'>
<!--css div popup start-->
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt9.1')" >
pass</a>
<div id='div_pt9.1' class="popup_window">
<div style='text-align: right; color:red;cursor:pointer'>
<a onfocus='this.blur();' onclick="document.getElementById('div_pt9.1').style.display = 'none' " >
[x]</a>
</div>
<pre>
pt9.1: INFO:root:else.//*[@class='ant-cascader-menu'][1]/li[2]
INFO:root:else.//*[@class='ant-cascader-menu'][2]/li[1]
INFO:root:else.//*[@class='ant-cascader-menu'][3]/li[1]
</pre>
</div>
<!--css div popup end-->
</td>
</tr>
<tr id='pt9.2' class='hiddenRow'>
<td class='none'><div class='testcase'>test_create_yuanqu_002</div></td>
<td colspan='5' align='center'>pass</td>
</tr>
<tr id='ft9.3' class='none'>
<td class='errorCase'><div class='testcase'>test_create_yuanqu_003</div></td>
<td colspan='5' align='center'>
<!--css div popup start-->
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft9.3')" >
error</a>
<div id='div_ft9.3' class="popup_window">
<div style='text-align: right; color:red;cursor:pointer'>
<a onfocus='this.blur();' onclick="document.getElementById('div_ft9.3').style.display = 'none' " >
[x]</a>
</div>
<pre>
ft9.3: INFO:root:else.//*[@class='ant-cascader-menu'][1]/li[2]
INFO:root:else.//*[@class='ant-cascader-menu'][2]/li[1]
INFO:root:else.//*[@class='ant-cascader-menu'][3]/li[1]
Traceback (most recent call last):
File "D:\workspace\python\Smart_workspace\src\testcases_admin\testcase011_companyadmin_create_park.py", line 119, in test_create_yuanqu_003
self.brower.clear_elem_text(xtpz_yqgl.MORNING_START_TIME)#清除已有的时间
File "D:\workspace\python\Smart_workspace\src\common\web_client.py", line 83, in clear_elem_text
self.get_element(element_selector, find_by).send_keys(chr(127)) #有些元素调用clear无效,127对应的是删除
File "D:\workspace\python\Smart_workspace\src\common\web_client.py", line 112, in get_element
return self.__driver.find_element(find_by, element_selector)
File "D:\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element
'value': value})['value']
File "D:\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "D:\python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[6]/div/div/div/div[1]/input"}
(Session info: chrome=75.0.3770.100)
</pre>
</div>
<!--css div popup end-->
</td>
</tr>
<tr id='pt9.4' class='hiddenRow'>
<td class='none'><div class='testcase'>test_create_yuanqu_004</div></td>
<td colspan='5' align='center'>
<!--css div popup start-->
<a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt9.4')" >
pass</a>
<div id='div_pt9.4' class="popup_window">
<div style='text-align: right; color:red;cursor:pointer'>
<a onfocus='this.blur();' onclick="document.getElementById('div_pt9.4').style.display = 'none' " >
[x]</a>
</div>
<pre>