Commit bb218573 by zhaihuitao

add adshow enevt

parent 21bcd882
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <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="">
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/testcase/android_events/test_pay.py" /> <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/testcase/android_events/test_adshow.py" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" /> <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/testcase/android_events/test_custom.py" />
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/testcase/android_events/test_payorder.py" />
<change type="MOVED" beforePath="$PROJECT_DIR$/testcase/android_events/test_pay.py" afterPath="$PROJECT_DIR$/testcase/android_events/test_payment.py" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/common/randomUtil.py" afterPath="$PROJECT_DIR$/common/randomUtil.py" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/config/prod/params.py" afterPath="$PROJECT_DIR$/config/prod/params.py" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/config/prod/params.py" afterPath="$PROJECT_DIR$/config/prod/params.py" />
</list> </list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
...@@ -17,6 +18,8 @@ ...@@ -17,6 +18,8 @@
</component> </component>
<component name="CoverageDataManager"> <component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/interfaceTest$Nosetests_in_test_pay_py.coverage" NAME="Nosetests in test_pay.py Coverage Results" MODIFIED="1597980100675" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" /> <SUITE FILE_PATH="coverage/interfaceTest$Nosetests_in_test_pay_py.coverage" NAME="Nosetests in test_pay.py Coverage Results" MODIFIED="1597980100675" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" />
<SUITE FILE_PATH="coverage/interfaceTest$Nosetests_in_test_custom_py.coverage" NAME="Nosetests in test_custom.py Coverage Results" MODIFIED="1597999802477" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" />
<SUITE FILE_PATH="coverage/interfaceTest$Nosetests_in_test_adshow_py.coverage" NAME="Nosetests in test_adshow.py Coverage Results" MODIFIED="1598004274765" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" />
<SUITE FILE_PATH="coverage/interfaceTest$params.coverage" NAME="params Coverage Results" MODIFIED="1597980084524" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/config/prod" /> <SUITE FILE_PATH="coverage/interfaceTest$params.coverage" NAME="params Coverage Results" MODIFIED="1597980084524" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/config/prod" />
<SUITE FILE_PATH="coverage/interfaceTest$Nosetests_in_test_register_py.coverage" NAME="Nosetests in test_register.py Coverage Results" MODIFIED="1597913123658" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" /> <SUITE FILE_PATH="coverage/interfaceTest$Nosetests_in_test_register_py.coverage" NAME="Nosetests in test_register.py Coverage Results" MODIFIED="1597913123658" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" />
<SUITE FILE_PATH="coverage/trackingIO$Nosetests_in_test_click_py.coverage" NAME="Nosetests in test_click.py Coverage Results" MODIFIED="1596791537385" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_click" /> <SUITE FILE_PATH="coverage/trackingIO$Nosetests_in_test_click_py.coverage" NAME="Nosetests in test_click.py Coverage Results" MODIFIED="1596791537385" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_click" />
...@@ -33,6 +36,7 @@ ...@@ -33,6 +36,7 @@
<SUITE FILE_PATH="coverage/trackingIO$envcfg.coverage" NAME="envcfg Coverage Results" MODIFIED="1597136533680" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/config" /> <SUITE FILE_PATH="coverage/trackingIO$envcfg.coverage" NAME="envcfg Coverage Results" MODIFIED="1597136533680" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/config" />
<SUITE FILE_PATH="coverage/trackingIO$Nosetests_in_test_install_py.coverage" NAME="Nosetests in test_install.py Coverage Results" MODIFIED="1597283375565" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_click" /> <SUITE FILE_PATH="coverage/trackingIO$Nosetests_in_test_install_py.coverage" NAME="Nosetests in test_install.py Coverage Results" MODIFIED="1597283375565" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_click" />
<SUITE FILE_PATH="coverage/trackingIO$installEvent.coverage" NAME="installEvent Coverage Results" MODIFIED="1597657118438" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_click" /> <SUITE FILE_PATH="coverage/trackingIO$installEvent.coverage" NAME="installEvent Coverage Results" MODIFIED="1597657118438" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_click" />
<SUITE FILE_PATH="coverage/interfaceTest$Nosetests_in_test_payorder_py.coverage" NAME="Nosetests in test_payorder.py Coverage Results" MODIFIED="1597991384638" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" />
<SUITE FILE_PATH="coverage/trackingIO$Nosetests_in_test_startup_py.coverage" NAME="Nosetests in test_startup.py Coverage Results" MODIFIED="1597658287658" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" /> <SUITE FILE_PATH="coverage/trackingIO$Nosetests_in_test_startup_py.coverage" NAME="Nosetests in test_startup.py Coverage Results" MODIFIED="1597658287658" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" />
<SUITE FILE_PATH="coverage/interfaceTest$Nosetests_for_test_pay_payTestCase.coverage" NAME="Nosetests for test_pay.payTestCase Coverage Results" MODIFIED="1597978779361" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" /> <SUITE FILE_PATH="coverage/interfaceTest$Nosetests_for_test_pay_payTestCase.coverage" NAME="Nosetests for test_pay.payTestCase Coverage Results" MODIFIED="1597978779361" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/testcase/android_events" />
</component> </component>
...@@ -48,18 +52,6 @@ ...@@ -48,18 +52,6 @@
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" /> <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="test_install.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_install.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="253">
<caret line="22" column="19" lean-forward="true" selection-start-line="22" selection-start-column="19" selection-end-line="22" selection-end-column="19" />
<folding>
<element signature="e#102#117#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="randomUtil.py" pinned="false" current-in-tab="false"> <file leaf-file-name="randomUtil.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/common/randomUtil.py"> <entry file="file://$PROJECT_DIR$/common/randomUtil.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
...@@ -85,18 +77,30 @@ ...@@ -85,18 +77,30 @@
<file leaf-file-name="test_startup.py" pinned="false" current-in-tab="false"> <file leaf-file-name="test_startup.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_startup.py"> <entry file="file://$PROJECT_DIR$/testcase/android_events/test_startup.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270"> <state relative-caret-position="255">
<caret line="22" column="19" lean-forward="false" selection-start-line="22" selection-start-column="19" selection-end-line="22" selection-end-column="19" /> <caret line="21" column="26" lean-forward="true" selection-start-line="21" selection-start-column="26" selection-end-line="21" selection-end-column="26" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="params.py" pinned="false" current-in-tab="false"> <file leaf-file-name="test_payorder.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_payorder.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="118">
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="12" selection-end-column="46" />
<folding>
<element signature="e#104#119#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="params.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/config/prod/params.py"> <entry file="file://$PROJECT_DIR$/config/prod/params.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="301"> <state relative-caret-position="153">
<caret line="219" column="0" lean-forward="true" selection-start-line="219" selection-start-column="0" selection-end-line="219" selection-end-column="0" /> <caret line="260" column="15" lean-forward="false" selection-start-line="260" selection-start-column="14" selection-end-line="260" selection-end-column="15" />
<folding> <folding>
<element signature="e#97#108#0" expanded="true" /> <element signature="e#97#108#0" expanded="true" />
</folding> </folding>
...@@ -104,24 +108,38 @@ ...@@ -104,24 +108,38 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="test_pay.py" pinned="false" current-in-tab="true"> <file leaf-file-name="test_adshow.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_pay.py"> <entry file="file://$PROJECT_DIR$/testcase/android_events/test_adshow.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="5" column="6" lean-forward="true" selection-start-line="5" selection-start-column="6" selection-end-line="5" selection-end-column="6" />
<folding>
<element signature="e#102#117#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="test_payment.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_payment.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="133"> <state relative-caret-position="133">
<caret line="12" column="41" lean-forward="true" selection-start-line="12" selection-start-column="41" selection-end-line="12" selection-end-column="41" /> <caret line="13" column="0" lean-forward="true" selection-start-line="13" selection-start-column="0" selection-end-line="13" selection-end-column="0" />
<folding> <folding>
<element signature="e#99#114#0" expanded="true" /> <element signature="e#103#118#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="constants.py" pinned="false" current-in-tab="false"> <file leaf-file-name="test_custom.py" pinned="false" current-in-tab="false">
<entry file="file:///anaconda3/lib/python3.6/site-packages/xlwings/constants.py"> <entry file="file://$PROJECT_DIR$/testcase/android_events/test_custom.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="72"> <state relative-caret-position="118">
<caret line="376" column="6" lean-forward="false" selection-start-line="376" selection-start-column="6" selection-end-line="376" selection-end-column="6" /> <caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="12" selection-end-column="44" />
<folding /> <folding>
<element signature="e#102#117#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -162,6 +180,7 @@ ...@@ -162,6 +180,7 @@
<find>ry</find> <find>ry</find>
<find>event</find> <find>event</find>
<find>background</find> <find>background</find>
<find>adshow</find>
</findStrings> </findStrings>
</component> </component>
<component name="Git.Settings"> <component name="Git.Settings">
...@@ -188,9 +207,12 @@ ...@@ -188,9 +207,12 @@
<option value="$PROJECT_DIR$/testcase/android_events/test_startup.py" /> <option value="$PROJECT_DIR$/testcase/android_events/test_startup.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_install.py" /> <option value="$PROJECT_DIR$/testcase/android_events/test_install.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_register.py" /> <option value="$PROJECT_DIR$/testcase/android_events/test_register.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_pay.py" />
<option value="$PROJECT_DIR$/common/randomUtil.py" /> <option value="$PROJECT_DIR$/common/randomUtil.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_pay.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_payorder.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_custom.py" />
<option value="$PROJECT_DIR$/config/prod/params.py" /> <option value="$PROJECT_DIR$/config/prod/params.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_adshow.py" />
</list> </list>
</option> </option>
</component> </component>
...@@ -351,6 +373,7 @@ ...@@ -351,6 +373,7 @@
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="settings.editor.selected.configurable" value="preferences.lookFeel" /> <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
<property name="SearchEverywhereHistoryKey" value="set &#9;ACTION&#9;Images.SetBackgroundImage&#10;set background&#9;null&#9;null&#10;backg&#9;null&#9;null" /> <property name="SearchEverywhereHistoryKey" value="set &#9;ACTION&#9;Images.SetBackgroundImage&#10;set background&#9;null&#9;null&#10;backg&#9;null&#9;null" />
<property name="com.intellij.database.dataSource.DataSourceTemplate" value="MySQL" />
</component> </component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS"> <key name="MoveFile.RECENT_KEYS">
...@@ -371,7 +394,7 @@ ...@@ -371,7 +394,7 @@
</list> </list>
</option> </option>
</component> </component>
<component name="RunManager" selected="Python tests.Nosetests in test_pay.py"> <component name="RunManager" selected="Python tests.Nosetests in test_adshow.py">
<configuration default="false" name="params" type="PythonConfigurationType" factoryName="Python" temporary="true"> <configuration default="false" name="params" type="PythonConfigurationType" factoryName="Python" temporary="true">
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
...@@ -391,7 +414,7 @@ ...@@ -391,7 +414,7 @@
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
<method /> <method />
</configuration> </configuration>
<configuration default="false" name="Nosetests in test_login.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true"> <configuration default="false" name="Nosetests in test_payment.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<envs /> <envs />
...@@ -404,11 +427,11 @@ ...@@ -404,11 +427,11 @@
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" />
<option name="_new_regexPattern" value="&quot;&quot;" /> <option name="_new_regexPattern" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;&quot;" /> <option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_events/test_login.py&quot;" /> <option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_events/test_payment.py&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" /> <option name="_new_targetType" value="&quot;PATH&quot;" />
<method /> <method />
</configuration> </configuration>
<configuration default="false" name="Nosetests in test_register.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true"> <configuration default="false" name="Nosetests in test_payorder.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<envs /> <envs />
...@@ -421,11 +444,11 @@ ...@@ -421,11 +444,11 @@
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" />
<option name="_new_regexPattern" value="&quot;&quot;" /> <option name="_new_regexPattern" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;&quot;" /> <option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_events/test_register.py&quot;" /> <option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_events/test_payorder.py&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" /> <option name="_new_targetType" value="&quot;PATH&quot;" />
<method /> <method />
</configuration> </configuration>
<configuration default="false" name="Nosetests in test_pay.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true"> <configuration default="false" name="Nosetests in test_custom.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<envs /> <envs />
...@@ -438,11 +461,11 @@ ...@@ -438,11 +461,11 @@
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" />
<option name="_new_regexPattern" value="&quot;&quot;" /> <option name="_new_regexPattern" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;&quot;" /> <option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_events/test_pay.py&quot;" /> <option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_events/test_custom.py&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" /> <option name="_new_targetType" value="&quot;PATH&quot;" />
<method /> <method />
</configuration> </configuration>
<configuration default="false" name="Nosetests for test_pay.payTestCase" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true"> <configuration default="false" name="Nosetests in test_adshow.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<envs /> <envs />
...@@ -455,8 +478,8 @@ ...@@ -455,8 +478,8 @@
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" />
<option name="_new_regexPattern" value="&quot;&quot;" /> <option name="_new_regexPattern" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;&quot;" /> <option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;test_pay.payTestCase&quot;" /> <option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_events/test_adshow.py&quot;" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" /> <option name="_new_targetType" value="&quot;PATH&quot;" />
<method /> <method />
</configuration> </configuration>
<configuration default="true" type="DjangoTestsConfigurationType" factoryName="Django tests"> <configuration default="true" type="DjangoTestsConfigurationType" factoryName="Django tests">
...@@ -610,18 +633,18 @@ ...@@ -610,18 +633,18 @@
</configuration> </configuration>
<list size="5"> <list size="5">
<item index="0" class="java.lang.String" itemvalue="Python.params" /> <item index="0" class="java.lang.String" itemvalue="Python.params" />
<item index="1" class="java.lang.String" itemvalue="Python tests.Nosetests in test_login.py" /> <item index="1" class="java.lang.String" itemvalue="Python tests.Nosetests in test_payment.py" />
<item index="2" class="java.lang.String" itemvalue="Python tests.Nosetests in test_register.py" /> <item index="2" class="java.lang.String" itemvalue="Python tests.Nosetests in test_payorder.py" />
<item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_pay.py" /> <item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_custom.py" />
<item index="4" class="java.lang.String" itemvalue="Python tests.Nosetests for test_pay.payTestCase" /> <item index="4" class="java.lang.String" itemvalue="Python tests.Nosetests in test_adshow.py" />
</list> </list>
<recent_temporary> <recent_temporary>
<list size="5"> <list size="5">
<item index="0" class="java.lang.String" itemvalue="Python tests.Nosetests in test_pay.py" /> <item index="0" class="java.lang.String" itemvalue="Python tests.Nosetests in test_adshow.py" />
<item index="1" class="java.lang.String" itemvalue="Python.params" /> <item index="1" class="java.lang.String" itemvalue="Python tests.Nosetests in test_custom.py" />
<item index="2" class="java.lang.String" itemvalue="Python tests.Nosetests for test_pay.payTestCase" /> <item index="2" class="java.lang.String" itemvalue="Python tests.Nosetests in test_payorder.py" />
<item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_login.py" /> <item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_payment.py" />
<item index="4" class="java.lang.String" itemvalue="Python tests.Nosetests in test_register.py" /> <item index="4" class="java.lang.String" itemvalue="Python.params" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -871,33 +894,37 @@ ...@@ -871,33 +894,37 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1597905153317</updated> <updated>1597905153317</updated>
</task> </task>
<option name="localTasksCounter" value="34" /> <task id="LOCAL-00034" summary="add payment enevt">
<created>1597980128481</created>
<option name="number" value="00034" />
<option name="presentableId" value="LOCAL-00034" />
<option name="project" value="LOCAL" />
<updated>1597980128482</updated>
</task>
<option name="localTasksCounter" value="35" />
<servers /> <servers />
</component> </component>
<component name="TestHistory"> <component name="TestHistory">
<history-entry file="Nosetests_for_test_pay_payTestCase - 2020.08.21 at 10h 59m 40s.xml"> <history-entry file="Nosetests_for_test_pay_payTestCase - 2020.08.21 at 10h 59m 40s.xml">
<configuration name="Nosetests for test_pay.payTestCase" configurationId="tests" /> <configuration name="Nosetests for test_pay.payTestCase" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_in_test_login_py - 2020.08.20 at 16h 59m 28s.xml"> <history-entry file="Nosetests_in_test_adshow_py - 2020.08.21 at 18h 02m 43s.xml">
<configuration name="Nosetests in test_login.py" configurationId="tests" /> <configuration name="Nosetests in test_adshow.py" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_in_test_pay_py - 2020.08.20 at 16h 57m 26s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_in_test_pay_py - 2020.08.20 at 17h 00m 51s.xml"> <history-entry file="Nosetests_in_test_adshow_py - 2020.08.21 at 18h 04m 36s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" /> <configuration name="Nosetests in test_adshow.py" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_in_test_pay_py - 2020.08.20 at 17h 48m 26s.xml"> <history-entry file="Nosetests_in_test_custom_py - 2020.08.21 at 16h 48m 48s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" /> <configuration name="Nosetests in test_custom.py" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 10h 45m 11s.xml"> <history-entry file="Nosetests_in_test_custom_py - 2020.08.21 at 16h 49m 16s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" /> <configuration name="Nosetests in test_custom.py" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 10h 45m 50s.xml"> <history-entry file="Nosetests_in_test_custom_py - 2020.08.21 at 16h 49m 44s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" /> <configuration name="Nosetests in test_custom.py" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 10h 50m 26s.xml"> <history-entry file="Nosetests_in_test_custom_py - 2020.08.21 at 16h 50m 03s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" /> <configuration name="Nosetests in test_custom.py" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 10h 55m 23s.xml"> <history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 10h 55m 23s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" /> <configuration name="Nosetests in test_pay.py" configurationId="tests" />
...@@ -905,6 +932,9 @@ ...@@ -905,6 +932,9 @@
<history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 11h 21m 42s.xml"> <history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 11h 21m 42s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" /> <configuration name="Nosetests in test_pay.py" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_in_test_payorder_py - 2020.08.21 at 14h 29m 46s.xml">
<configuration name="Nosetests in test_payorder.py" configurationId="tests" />
</history-entry>
</component> </component>
<component name="TodoView"> <component name="TodoView">
<todo-panel id="selected-file"> <todo-panel id="selected-file">
...@@ -952,43 +982,14 @@ ...@@ -952,43 +982,14 @@
<MESSAGE value="添加配置地址" /> <MESSAGE value="添加配置地址" />
<MESSAGE value="add install enevt" /> <MESSAGE value="add install enevt" />
<MESSAGE value="add formate enevt" /> <MESSAGE value="add formate enevt" />
<option name="LAST_COMMIT_MESSAGE" value="add formate enevt" /> <MESSAGE value="add payment enevt" />
<option name="LAST_COMMIT_MESSAGE" value="add payment enevt" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager /> <breakpoint-manager />
<watches-manager /> <watches-manager />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/testcase/android_click/click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="285">
<caret line="27" column="13" lean-forward="false" selection-start-line="24" selection-start-column="7" selection-end-line="27" selection-end-column="13" />
<folding>
<element signature="e#109#118#0" expanded="false" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_click/test_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="14" column="10" lean-forward="true" selection-start-line="14" selection-start-column="10" selection-end-line="14" selection-end-column="10" />
<folding>
<element signature="e#100#115#0" expanded="false" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/baseEvent.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="7260">
<caret line="487" column="13" lean-forward="false" selection-start-line="487" selection-start-column="13" selection-end-line="487" selection-end-column="13" />
<folding>
<element signature="e#99#114#0" expanded="false" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_click/__init__.py"> <entry file="file://$PROJECT_DIR$/testcase/android_click/__init__.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0"> <state relative-caret-position="0">
...@@ -1002,7 +1003,7 @@ ...@@ -1002,7 +1003,7 @@
<state relative-caret-position="210"> <state relative-caret-position="210">
<caret line="18" column="119" lean-forward="false" selection-start-line="18" selection-start-column="119" selection-end-line="18" selection-end-column="119" /> <caret line="18" column="119" lean-forward="false" selection-start-line="18" selection-start-column="119" selection-end-line="18" selection-end-column="119" />
<folding> <folding>
<element signature="e#102#117#0" expanded="true" /> <element signature="e#102#117#0" expanded="false" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -1111,7 +1112,7 @@ ...@@ -1111,7 +1112,7 @@
<state relative-caret-position="225"> <state relative-caret-position="225">
<caret line="19" column="43" lean-forward="true" selection-start-line="19" selection-start-column="43" selection-end-line="19" selection-end-column="43" /> <caret line="19" column="43" lean-forward="true" selection-start-line="19" selection-start-column="43" selection-end-line="19" selection-end-column="43" />
<folding> <folding>
<element signature="e#102#117#0" expanded="true" /> <element signature="e#102#117#0" expanded="false" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -1317,33 +1318,45 @@ ...@@ -1317,33 +1318,45 @@
<state relative-caret-position="253"> <state relative-caret-position="253">
<caret line="22" column="19" lean-forward="true" selection-start-line="22" selection-start-column="19" selection-end-line="22" selection-end-column="19" /> <caret line="22" column="19" lean-forward="true" selection-start-line="22" selection-start-column="19" selection-end-line="22" selection-end-column="19" />
<folding> <folding>
<element signature="e#102#117#0" expanded="true" /> <element signature="e#102#117#0" expanded="false" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_startup.py"> <entry file="file://$PROJECT_DIR$/config/envcfg.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270"> <state relative-caret-position="24">
<caret line="22" column="19" lean-forward="false" selection-start-line="22" selection-start-column="19" selection-end-line="22" selection-end-column="19" /> <caret line="12" column="6" lean-forward="false" selection-start-line="12" selection-start-column="6" selection-end-line="12" selection-end-column="6" />
<folding /> <folding>
<element signature="e#98#120#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_register.py"> <entry file="file://$PROJECT_DIR$/common/randomUtil.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="163"> <state relative-caret-position="268">
<caret line="13" column="45" lean-forward="true" selection-start-line="13" selection-start-column="45" selection-end-line="13" selection-end-column="45" /> <caret line="25" column="16" lean-forward="false" selection-start-line="25" selection-start-column="16" selection-end-line="25" selection-end-column="16" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/config/envcfg.py"> <entry file="file://$PROJECT_DIR$/testcase/android_events/test_adshow.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="24"> <state relative-caret-position="75">
<caret line="12" column="6" lean-forward="false" selection-start-line="12" selection-start-column="6" selection-end-line="12" selection-end-column="6" /> <caret line="5" column="6" lean-forward="true" selection-start-line="5" selection-start-column="6" selection-end-line="5" selection-end-column="6" />
<folding> <folding>
<element signature="e#98#120#0" expanded="true" /> <element signature="e#102#117#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_custom.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="118">
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="12" selection-end-column="44" />
<folding>
<element signature="e#102#117#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
...@@ -1358,30 +1371,48 @@ ...@@ -1358,30 +1371,48 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/common/randomUtil.py"> <entry file="file://$PROJECT_DIR$/testcase/android_events/test_payment.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="268"> <state relative-caret-position="133">
<caret line="25" column="16" lean-forward="false" selection-start-line="25" selection-start-column="16" selection-end-line="25" selection-end-column="16" /> <caret line="13" column="0" lean-forward="true" selection-start-line="13" selection-start-column="0" selection-end-line="13" selection-end-column="0" />
<folding /> <folding>
<element signature="e#103#118#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/config/prod/params.py"> <entry file="file://$PROJECT_DIR$/testcase/android_events/test_payorder.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="301"> <state relative-caret-position="118">
<caret line="219" column="0" lean-forward="true" selection-start-line="219" selection-start-column="0" selection-end-line="219" selection-end-column="0" /> <caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="12" selection-end-column="46" />
<folding> <folding>
<element signature="e#97#108#0" expanded="true" /> <element signature="e#104#119#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_pay.py"> <entry file="file://$PROJECT_DIR$/testcase/android_events/test_register.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="133"> <state relative-caret-position="163">
<caret line="12" column="41" lean-forward="true" selection-start-line="12" selection-start-column="41" selection-end-line="12" selection-end-column="41" /> <caret line="13" column="45" lean-forward="true" selection-start-line="13" selection-start-column="45" selection-end-line="13" selection-end-column="45" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_startup.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255">
<caret line="21" column="26" lean-forward="true" selection-start-line="21" selection-start-column="26" selection-end-line="21" selection-end-column="26" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/config/prod/params.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="153">
<caret line="260" column="15" lean-forward="false" selection-start-line="260" selection-start-column="14" selection-end-line="260" selection-end-column="15" />
<folding> <folding>
<element signature="e#99#114#0" expanded="true" /> <element signature="e#97#108#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
""" """
import time import time
import random
from config.envcfg import prod from config.envcfg import prod
from common import randomUtil from common import randomUtil
...@@ -217,3 +216,74 @@ params_pay = { ...@@ -217,3 +216,74 @@ params_pay = {
# 'ds': ds, # 'ds': ds,
'who': 'lxx_test' 'who': 'lxx_test'
} }
params_payorder = {
'what': "order",
'appid': prod['events']['appkey'],
'context': {
'_deviceid': randomUtil.r.randimei(),
'_imei': randomUtil.r.randimei(),
'_androidid': randomUtil.r.randimei(),
'_ip': randomUtil.r.randip(),
'_timestamp': int(round(time.time() * 1000)),
'_transactionid': randomUtil.r.transactionid(),
'_paymenttype': "alipay",
"_lib_version": "1.5.0",
'_currencytype': "CNY",
'_ryos': "android",
'_currencyamount': "10",
},
# 'when': time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())),
# 'ds': ds,
'who': 'lxx_test'
}
params_custom = {
'what': "event",
'appid': prod['events']['appkey'],
'context': {
'_deviceid': randomUtil.r.randimei(),
'_imei': randomUtil.r.randimei(),
'_androidid': randomUtil.r.randimei(),
'_ip': randomUtil.r.randip(),
'_ryos': "android",
"_lib_version": "1..5.0",
# 识别是否为自定义事件,默认传1
'_isreyundefaultevent': '1'
},
# 'when': time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())),
# 'ds': ds,
'who': 'lxx_test'
}
params_adshow = {
"appid": prod["events"]["appkey"],
"context": {
'_adPlatform': "mintegral",
'_adId': "adid",
"_campaignid": 'default',
"_deviceid": randomUtil.r.randimei(),
"_imei": randomUtil.r.randimei(),
# "_idfa": '75463565745634546',
"_androidid": "424653325643",
# "_imei2":"324323AAAA",
# "_meid": "CCC324323",
"_ip": randomUtil.r.randip(),
# "_ipv6": i,
'_manufacturer': "vivo",
'_ryos': "android",
'_rydevicetype': "vivox9",
'_network': "wifi",
'_resolution': "1344*750",
'_op': "中国移动",
'_timestamp': int(round(time.time() * 1000)),
'_oaid': '999b6e3e-a274-ed22-cebf-2b6dddfc29b7',
"_fill": "1",
# '_mac':"565354131606"
},
# 'when': time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())),
# 'ds': ds,
'who': 'lxx_test'
}
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file: test_adshow.py
@time: 2020/8/21 18:00
@desc:
"""
import unittest
import json
import requests
from config.envcfg import prod, headers
from config.prod.params import params_adshow
class adshowTestCase(unittest.TestCase):
def testadshow(self):
r = requests.post(url=prod['events']['url'] + 'adshow', data=json.dumps(params_adshow), headers=headers, timeout=5)
print("\n广告展示:" + r.text)
\ No newline at end of file
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file: test_custom.py
@time: 2020/8/21 15:38
@desc:
"""
import unittest
import json
import requests
from config.envcfg import prod, headers
from config.prod.params import params_custom
class customTestCase(unittest.TestCase):
def testcustom(self):
p = requests.post(url=prod['events']['url'] + 'event', data=json.dumps(params_custom), headers=headers, timeout=5)
print("自定义" + p.text)
\ No newline at end of file
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
@author:zhaiht @author:zhaiht
@file: test_pay.py @file: test_payment.py
@time: 2020/8/20 15:43 @time: 2020/8/20 15:43
@desc: @desc:
""" """
......
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file: test_payorder.py
@time: 2020/8/21 11:30
@desc:
"""
import unittest
import json
import requests
from config.envcfg import prod, headers
from config.prod.params import params_payorder
class payorderTestCase(unittest.TestCase):
def testpayorder(self):
p = requests.post(url=prod['events']['url'] + 'order', data=json.dumps(params_payorder), headers=headers, timeout=5)
print("订单" + p.text)
\ No newline at end of file
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