Commit 8d9cdde6 by zhaihuitao

update

parent bbdf97ce
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="d0064643-2990-4ed3-bfb0-875849b30f4e" name="Default" comment="">
<list default="true" id="d0064643-2990-4ed3-bfb0-875849b30f4e" name="Default" comment="update">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/report/result.html" afterPath="$PROJECT_DIR$/report/result.html" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/testcase/run_all_cases.py" afterPath="$PROJECT_DIR$/testcase/run_all_cases.py" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
......@@ -81,7 +83,7 @@
<entry file="file://$PROJECT_DIR$/config/prod/params.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="205">
<caret line="74" column="34" lean-forward="true" selection-start-line="74" selection-start-column="34" selection-end-line="74" selection-end-column="34" />
<caret line="74" column="34" lean-forward="false" selection-start-line="74" selection-start-column="34" selection-end-line="74" selection-end-column="34" />
<folding />
</state>
</provider>
......@@ -91,7 +93,7 @@
<entry file="file://$PROJECT_DIR$/testcase/android_click/test_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300">
<caret line="25" column="27" lean-forward="true" selection-start-line="25" selection-start-column="27" selection-end-line="25" selection-end-column="27" />
<caret line="25" column="27" lean-forward="false" selection-start-line="25" selection-start-column="27" selection-end-line="25" selection-end-column="27" />
<folding />
</state>
</provider>
......@@ -129,22 +131,36 @@
</provider>
</entry>
</file>
<file leaf-file-name="run_all_cases.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/run_all_cases.py">
<file leaf-file-name="result.html" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/report/result.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="10" column="0" lean-forward="false" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
<folding />
<state relative-caret-position="30">
<caret line="2" column="43" lean-forward="true" selection-start-line="2" selection-start-column="43" selection-end-line="2" selection-end-column="43" />
<folding>
<element signature="e#211#215#0" expanded="true" />
<element signature="e#225#229#0" expanded="true" />
<element signature="n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="e#3653#3657#0" expanded="true" />
<element signature="e#3667#3671#0" expanded="true" />
<element signature="n#style#0;n#tr#0;n#table#0;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="e#5687#5691#0" expanded="true" />
<element signature="e#5705#5709#0" expanded="true" />
<marker date="1604891261903" expanded="false" signature="18943:18949" ph=" " />
<marker date="1604891261903" expanded="false" signature="18972:19051" ph="..." />
<marker date="1604891261903" expanded="false" signature="19119:19134" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="HTMLTestReportCN.py" pinned="false" current-in-tab="true">
<entry file="file://$APPLICATION_HOME_DIR$/helpers/python-skeletons/HTMLTestReportCN.py">
<file leaf-file-name="run_all_cases.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/run_all_cases.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="111">
<caret line="11" column="10" lean-forward="false" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
<folding>
<element signature="e#105#120#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
......@@ -173,7 +189,7 @@
<entry file="file:///anaconda3/lib/python3.6/HTMLTestReportCN.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="165">
<caret line="11" column="0" lean-forward="true" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
<caret line="11" column="0" lean-forward="false" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
<folding />
</state>
</provider>
......@@ -252,10 +268,10 @@
<option value="$PROJECT_DIR$/testcase/android_events/test_gettime.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_install.py" />
<option value="$PROJECT_DIR$/config/envcfg.py" />
<option value="$PROJECT_DIR$/report/result.html" />
<option value="/anaconda3/lib/python3.6/HTMLTestReportCN.py" />
<option value="/anaconda3/lib/python3.6/site-packages/HTMLTestRunner.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_login.py" />
<option value="$PROJECT_DIR$/report/result.html" />
<option value="$PROJECT_DIR$/testcase/run_all_cases.py" />
</list>
</option>
......@@ -303,28 +319,6 @@
<option name="myItemId" value="External Libraries" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="&lt; Python 3.6.4 (/anaconda3/bin/python3.6) &gt;" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="interfaceTest" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="External Libraries" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="&lt; Python 3.6.4 (/anaconda3/bin/python3.6) &gt;" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="python-skeletons" />
<option name="myItemType" value="com.jetbrains.python.projectView.PyUserSkeletonsNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
......@@ -673,13 +667,6 @@
<updated>1596505503233</updated>
<workItem from="1596786333197" duration="228000" />
</task>
<task id="LOCAL-00016" summary="add install enevt">
<created>1597646019465</created>
<option name="number" value="00016" />
<option name="presentableId" value="LOCAL-00016" />
<option name="project" value="LOCAL" />
<updated>1597646019466</updated>
</task>
<task id="LOCAL-00017" summary="add install enevt">
<created>1597646525172</created>
<option name="number" value="00017" />
......@@ -1016,7 +1003,14 @@
<option name="project" value="LOCAL" />
<updated>1604578821775</updated>
</task>
<option name="localTasksCounter" value="65" />
<task id="LOCAL-00065" summary="update">
<created>1604578896276</created>
<option name="number" value="00065" />
<option name="presentableId" value="LOCAL-00065" />
<option name="project" value="LOCAL" />
<updated>1604578896276</updated>
</task>
<option name="localTasksCounter" value="66" />
<servers />
</component>
<component name="TestHistory">
......@@ -1394,20 +1388,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/report/result.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="15">
<caret line="14" column="0" lean-forward="false" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
<folding>
<element signature="e#211#215#0" expanded="true" />
<element signature="e#225#229#0" expanded="true" />
<element signature="n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="e#3653#3657#0" expanded="true" />
<element signature="e#3667#3671#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_adclick.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
......@@ -1419,7 +1399,7 @@
<entry file="file://$PROJECT_DIR$/testcase/android_click/test_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300">
<caret line="25" column="27" lean-forward="true" selection-start-line="25" selection-start-column="27" selection-end-line="25" selection-end-column="27" />
<caret line="25" column="27" lean-forward="false" selection-start-line="25" selection-start-column="27" selection-end-line="25" selection-end-column="27" />
<folding />
</state>
</provider>
......@@ -1453,7 +1433,7 @@
<entry file="file://$PROJECT_DIR$/config/prod/params.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="205">
<caret line="74" column="34" lean-forward="true" selection-start-line="74" selection-start-column="34" selection-end-line="74" selection-end-column="34" />
<caret line="74" column="34" lean-forward="false" selection-start-line="74" selection-start-column="34" selection-end-line="74" selection-end-column="34" />
<folding />
</state>
</provider>
......@@ -1461,7 +1441,7 @@
<entry file="file:///anaconda3/lib/python3.6/HTMLTestReportCN.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="165">
<caret line="11" column="0" lean-forward="true" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
<caret line="11" column="0" lean-forward="false" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
<folding />
</state>
</provider>
......@@ -1482,19 +1462,41 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/run_all_cases.py">
<entry file="file://$APPLICATION_HOME_DIR$/helpers/python-skeletons/HTMLTestReportCN.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="10" column="0" lean-forward="false" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
<state relative-caret-position="210">
<caret line="14" column="0" lean-forward="true" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$APPLICATION_HOME_DIR$/helpers/python-skeletons/HTMLTestReportCN.py">
<entry file="file://$PROJECT_DIR$/testcase/run_all_cases.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="111">
<caret line="11" column="10" lean-forward="false" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
<folding>
<element signature="e#105#120#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/report/result.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="30">
<caret line="2" column="43" lean-forward="true" selection-start-line="2" selection-start-column="43" selection-end-line="2" selection-end-column="43" />
<folding>
<element signature="e#211#215#0" expanded="true" />
<element signature="e#225#229#0" expanded="true" />
<element signature="n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="e#3653#3657#0" expanded="true" />
<element signature="e#3667#3671#0" expanded="true" />
<element signature="n#style#0;n#tr#0;n#table#0;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="e#5687#5691#0" expanded="true" />
<element signature="e#5705#5709#0" expanded="true" />
<marker date="1604891261903" expanded="false" signature="18943:18949" ph=" " />
<marker date="1604891261903" expanded="false" signature="18972:19051" ph="..." />
<marker date="1604891261903" expanded="false" signature="19119:19134" ph="..." />
</folding>
</state>
</provider>
</entry>
......
......@@ -123,9 +123,9 @@ function html_escape(s) {
<div class='heading'>
<h1 style="font-family: Microsoft YaHei">&lt;TKIO接口监控报告&gt;</h1>
<p class='attribute'><strong>测试人员 : </strong> 翟会涛</p>
<p class='attribute'><strong>开始时间 : </strong> 2020-11-05 20:20:07</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:00.391475</p>
<p class='attribute'><strong>测试结果 : </strong> 共 14,通过 1,错误 13,通过率= 7.14%</p>
<p class='attribute'><strong>开始时间 : </strong> 2020-11-09 11:07:36</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:05.010026</p>
<p class='attribute'><strong>测试结果 : </strong> 共 14,通过 14,通过率= 100.00%</p>
<p class='description'>TKIO接口自动化测试用例</p>
</div>
......@@ -133,9 +133,9 @@ function html_escape(s) {
<p id='show_detail_line'>
<a class="btn btn-primary" href='javascript:showCase(0)'>概要{ 7.14% }</a>
<a class="btn btn-primary" href='javascript:showCase(0)'>概要{ 100.00% }</a>
<a class="btn btn-danger" href='javascript:showCase(1)'>失败{ 0 }</a>
<a class="btn btn-success" href='javascript:showCase(2)'>通过{ 1 }</a>
<a class="btn btn-success" href='javascript:showCase(2)'>通过{ 14 }</a>
<a class="btn btn-info" href='javascript:showCase(3)'>所有{ 14 }</a>
</p>
<table id='result_table' class="table table-condensed table-bordered table-hover">
......@@ -156,37 +156,30 @@ function html_escape(s) {
<td>详细</td>
</tr>
<tr class='errorClass warning'>
<td>unittest.loader._FailedTest</td>
<td class="text-center">13</td>
<tr class='passClass warning'>
<td>android_click.test_click.clickTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center">13</td>
<td class="text-center"><a href="javascript:showClassDetail('c1',13)" class="detail" id='c1'>详细</a></td>
<td class="text-center"><a href="javascript:showClassDetail('c1',1)" class="detail" id='c1'>详细</a></td>
</tr>
<tr id='ft1_1' class='none'>
<td class='errorCase'><div class='testcase'>test_click</div></td>
<tr id='pt1_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testclick</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_1'>错误</button>
<div id='div_ft1_1' class="collapse"> -->
<button id='btn_pt1_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_1'>通过</button>
<div id='div_pt1_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_1'>错误</button>
<div id='div_ft1_1' class="collapse in">
<button id='btn_pt1_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_1'>通过</button>
<div id='div_pt1_1' class="collapse in">
<pre>
ft1_1: ImportError: Failed to import test module: android_click.test_click
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_click/test_click.py", line 10, in &lt;module&gt;
from config.envcfg import click_url
ModuleNotFoundError: No module named 'config'
pt1_1: 执行结果:
=================
&lt;Response [200]&gt;
</pre>
......@@ -194,28 +187,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_2' class='none'>
<td class='errorCase'><div class='testcase'>test_adclick</div></td>
<tr class='passClass warning'>
<td>android_events.test_adclick.adclickTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c2',1)" class="detail" id='c2'>详细</a></td>
</tr>
<tr id='pt2_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testadclick</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_2' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_2'>错误</button>
<div id='div_ft1_2' class="collapse"> -->
<button id='btn_pt2_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt2_1'>通过</button>
<div id='div_pt2_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_2' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_2'>错误</button>
<div id='div_ft1_2' class="collapse in">
<button id='btn_pt2_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt2_1'>通过</button>
<div id='div_pt2_1' class="collapse in">
<pre>
ft1_2: ImportError: Failed to import test module: android_events.test_adclick
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_adclick.py", line 12, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt2_1: 广告点击:{"status":0}
</pre>
......@@ -223,28 +216,29 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_3' class='none'>
<td class='errorCase'><div class='testcase'>test_adshow</div></td>
<tr class='passClass warning'>
<td>android_events.test_adshow.adshowTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c3',1)" class="detail" id='c3'>详细</a></td>
</tr>
<tr id='pt3_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testadshow</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_3' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_3'>错误</button>
<div id='div_ft1_3' class="collapse"> -->
<button id='btn_pt3_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt3_1'>通过</button>
<div id='div_pt3_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_3' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_3'>错误</button>
<div id='div_ft1_3' class="collapse in">
<button id='btn_pt3_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt3_1'>通过</button>
<div id='div_pt3_1' class="collapse in">
<pre>
ft1_3: ImportError: Failed to import test module: android_events.test_adshow
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_adshow.py", line 12, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt3_1:
广告展示:{"status":0}
</pre>
......@@ -252,28 +246,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_4' class='none'>
<td class='errorCase'><div class='testcase'>test_appduration</div></td>
<tr class='passClass warning'>
<td>android_events.test_appduration.appdurationTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c4',1)" class="detail" id='c4'>详细</a></td>
</tr>
<tr id='pt4_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testappduration</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_4' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_4'>错误</button>
<div id='div_ft1_4' class="collapse"> -->
<button id='btn_pt4_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt4_1'>通过</button>
<div id='div_pt4_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_4' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_4'>错误</button>
<div id='div_ft1_4' class="collapse in">
<button id='btn_pt4_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt4_1'>通过</button>
<div id='div_pt4_1' class="collapse in">
<pre>
ft1_4: ImportError: Failed to import test module: android_events.test_appduration
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_appduration.py", line 12, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt4_1: App使用时长:{"status":0}
</pre>
......@@ -281,28 +275,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_5' class='none'>
<td class='errorCase'><div class='testcase'>test_batchUpload</div></td>
<tr class='passClass warning'>
<td>android_events.test_batchUpload.batchUploadTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c5',1)" class="detail" id='c5'>详细</a></td>
</tr>
<tr id='pt5_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testbatchUpload</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_5' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_5'>错误</button>
<div id='div_ft1_5' class="collapse"> -->
<button id='btn_pt5_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt5_1'>通过</button>
<div id='div_pt5_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_5' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_5'>错误</button>
<div id='div_ft1_5' class="collapse in">
<button id='btn_pt5_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt5_1'>通过</button>
<div id='div_pt5_1' class="collapse in">
<pre>
ft1_5: ImportError: Failed to import test module: android_events.test_batchUpload
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_batchUpload.py", line 13, in &lt;module&gt;
from config.envcfg import prod_event_url, headers
ModuleNotFoundError: No module named 'config'
pt5_1: 自定义
</pre>
......@@ -310,28 +304,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_6' class='none'>
<td class='errorCase'><div class='testcase'>test_custom</div></td>
<tr class='passClass warning'>
<td>android_events.test_custom.customTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c6',1)" class="detail" id='c6'>详细</a></td>
</tr>
<tr id='pt6_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testcustom</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_6' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_6'>错误</button>
<div id='div_ft1_6' class="collapse"> -->
<button id='btn_pt6_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt6_1'>通过</button>
<div id='div_pt6_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_6' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_6'>错误</button>
<div id='div_ft1_6' class="collapse in">
<button id='btn_pt6_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt6_1'>通过</button>
<div id='div_pt6_1' class="collapse in">
<pre>
ft1_6: ImportError: Failed to import test module: android_events.test_custom
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_custom.py", line 11, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt6_1: 自定义{"status":0}
</pre>
......@@ -339,28 +333,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_7' class='none'>
<td class='errorCase'><div class='testcase'>test_install</div></td>
<tr class='passClass warning'>
<td>android_events.test_gettime.gettimeTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c7',1)" class="detail" id='c7'>详细</a></td>
</tr>
<tr id='pt7_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testgettime</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_7' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_7'>错误</button>
<div id='div_ft1_7' class="collapse"> -->
<button id='btn_pt7_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt7_1'>通过</button>
<div id='div_pt7_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_7' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_7'>错误</button>
<div id='div_ft1_7' class="collapse in">
<button id='btn_pt7_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt7_1'>通过</button>
<div id='div_pt7_1' class="collapse in">
<pre>
ft1_7: ImportError: Failed to import test module: android_events.test_install
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_install.py", line 11, in &lt;module&gt;
from config.envcfg import prod_event_url, event_interface, headers
ModuleNotFoundError: No module named 'config'
pt7_1: {"ts":1604891259987,"status":0}
</pre>
......@@ -368,28 +362,29 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_8' class='none'>
<td class='errorCase'><div class='testcase'>test_login</div></td>
<tr class='passClass warning'>
<td>android_events.test_install.installTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c8',1)" class="detail" id='c8'>详细</a></td>
</tr>
<tr id='pt8_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testinstall</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_8' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_8'>错误</button>
<div id='div_ft1_8' class="collapse"> -->
<button id='btn_pt8_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt8_1'>通过</button>
<div id='div_pt8_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_8' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_8'>错误</button>
<div id='div_ft1_8' class="collapse in">
<button id='btn_pt8_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt8_1'>通过</button>
<div id='div_pt8_1' class="collapse in">
<pre>
ft1_8: ImportError: Failed to import test module: android_events.test_login
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_login.py", line 13, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt8_1:
激活事件执行结果:{"status":0}
</pre>
......@@ -397,28 +392,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_9' class='none'>
<td class='errorCase'><div class='testcase'>test_pageduration</div></td>
<tr class='passClass warning'>
<td>android_events.test_login.loninTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c9',1)" class="detail" id='c9'>详细</a></td>
</tr>
<tr id='pt9_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testlogin</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_9' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_9'>错误</button>
<div id='div_ft1_9' class="collapse"> -->
<button id='btn_pt9_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt9_1'>通过</button>
<div id='div_pt9_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_9' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_9'>错误</button>
<div id='div_ft1_9' class="collapse in">
<button id='btn_pt9_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt9_1'>通过</button>
<div id='div_pt9_1' class="collapse in">
<pre>
ft1_9: ImportError: Failed to import test module: android_events.test_pageduration
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_pageduration.py", line 13, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt9_1: 登录{"status":0}
</pre>
......@@ -426,28 +421,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_10' class='none'>
<td class='errorCase'><div class='testcase'>test_payment</div></td>
<tr class='passClass warning'>
<td>android_events.test_pageduration.pagedurationTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c10',1)" class="detail" id='c10'>详细</a></td>
</tr>
<tr id='pt10_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testpageduration</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_10' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_10'>错误</button>
<div id='div_ft1_10' class="collapse"> -->
<button id='btn_pt10_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt10_1'>通过</button>
<div id='div_pt10_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_10' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_10'>错误</button>
<div id='div_ft1_10' class="collapse in">
<button id='btn_pt10_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt10_1'>通过</button>
<div id='div_pt10_1' class="collapse in">
<pre>
ft1_10: ImportError: Failed to import test module: android_events.test_payment
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_payment.py", line 12, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt10_1: App页面浏览时长分布:{"status":0}
</pre>
......@@ -455,28 +450,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_11' class='none'>
<td class='errorCase'><div class='testcase'>test_payorder</div></td>
<tr class='passClass warning'>
<td>android_events.test_payment.payTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c11',1)" class="detail" id='c11'>详细</a></td>
</tr>
<tr id='pt11_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testpayment</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_11' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_11'>错误</button>
<div id='div_ft1_11' class="collapse"> -->
<button id='btn_pt11_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt11_1'>通过</button>
<div id='div_pt11_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_11' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_11'>错误</button>
<div id='div_ft1_11' class="collapse in">
<button id='btn_pt11_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt11_1'>通过</button>
<div id='div_pt11_1' class="collapse in">
<pre>
ft1_11: ImportError: Failed to import test module: android_events.test_payorder
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_payorder.py", line 12, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt11_1: 付费{"status":0}
</pre>
......@@ -484,28 +479,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_12' class='none'>
<td class='errorCase'><div class='testcase'>test_register</div></td>
<tr class='passClass warning'>
<td>android_events.test_payorder.payorderTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c12',1)" class="detail" id='c12'>详细</a></td>
</tr>
<tr id='pt12_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testpayorder</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_12' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_12'>错误</button>
<div id='div_ft1_12' class="collapse"> -->
<button id='btn_pt12_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt12_1'>通过</button>
<div id='div_pt12_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_12' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_12'>错误</button>
<div id='div_ft1_12' class="collapse in">
<button id='btn_pt12_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt12_1'>通过</button>
<div id='div_pt12_1' class="collapse in">
<pre>
ft1_12: ImportError: Failed to import test module: android_events.test_register
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_register.py", line 13, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt12_1: 订单{"status":0}
</pre>
......@@ -513,28 +508,28 @@ ModuleNotFoundError: No module named 'config'
</td>
</tr>
<tr id='ft1_13' class='none'>
<td class='errorCase'><div class='testcase'>test_startup</div></td>
<tr class='passClass warning'>
<td>android_events.test_register.registerTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c13',1)" class="detail" id='c13'>详细</a></td>
</tr>
<tr id='pt13_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testregister</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_ft1_13' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_13'>错误</button>
<div id='div_ft1_13' class="collapse"> -->
<button id='btn_pt13_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt13_1'>通过</button>
<div id='div_pt13_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_ft1_13' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_13'>错误</button>
<div id='div_ft1_13' class="collapse in">
<button id='btn_pt13_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt13_1'>通过</button>
<div id='div_pt13_1' class="collapse in">
<pre>
ft1_13: ImportError: Failed to import test module: android_events.test_startup
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/testcase/android_events/test_startup.py", line 12, in &lt;module&gt;
from config.envcfg import prod_event_url, headers, event_interface
ModuleNotFoundError: No module named 'config'
pt13_1: 注册{"status":0}
</pre>
......@@ -543,27 +538,27 @@ ModuleNotFoundError: No module named 'config'
</tr>
<tr class='passClass warning'>
<td>android_events.test_gettime.gettimeTestCase</td>
<td>android_events.test_startup.startupTestCase</td>
<td class="text-center">1</td>
<td class="text-center">1</td>
<td class="text-center">0</td>
<td class="text-center">0</td>
<td class="text-center"><a href="javascript:showClassDetail('c2',1)" class="detail" id='c2'>详细</a></td>
<td class="text-center"><a href="javascript:showClassDetail('c14',1)" class="detail" id='c14'>详细</a></td>
</tr>
<tr id='pt2_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>testgettime</div></td>
<tr id='pt14_1' class='hiddenRow'>
<td class='passCase'><div class='testcase'>teststartup</div></td>
<td colspan='5' align='center'>
<!--默认收起错误信息 -Findyou
<button id='btn_pt2_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt2_1'>通过</button>
<div id='div_pt2_1' class="collapse"> -->
<button id='btn_pt14_1' type="button" class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt14_1'>通过</button>
<div id='div_pt14_1' class="collapse"> -->
<!-- 默认展开错误信息 -Findyou -->
<button id='btn_pt2_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt2_1'>通过</button>
<div id='div_pt2_1' class="collapse in">
<button id='btn_pt14_1' type="button" class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt14_1'>通过</button>
<div id='div_pt14_1' class="collapse in">
<pre>
pt2_1: {"ts":1604578807751,"status":0}
pt14_1: 启动{"status":0,"caid":"00_658BF93B71D8CCD446667DF1FC8F5112_A621A8F4404C9B0D3CF26AA86457456A","type":1}
</pre>
......@@ -574,10 +569,10 @@ pt2_1: {"ts":1604578807751,"status":0}
<tr id='total_row' class="text-center active">
<td>总计</td>
<td>14</td>
<td>1</td>
<td>14</td>
<td>0</td>
<td>0</td>
<td>13</td>
<td>通过率:7.14%</td>
<td>通过率:100.00%</td>
</tr>
</table>
......
......@@ -9,8 +9,12 @@
import unittest
import os
import HTMLTestReportCN
import sys
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)
case_path = os.path.join(os.getcwd())
report_path = r"/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/report/result.html"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment