Commit 21bcd882 by zhaihuitao

add payment enevt

parent 153ffcb9
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6.4 (/anaconda3/bin/python3.6)" project-jdk-type="Python SDK" />
<component name="SvnConfiguration">
<configuration />
</component>
</project>
\ No newline at end of file
......@@ -2,8 +2,10 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="d0064643-2990-4ed3-bfb0-875849b30f4e" name="Default" comment="">
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/testcase/android_events/test_register.py" />
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/testcase/android_events/test_pay.py" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.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" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
......@@ -14,7 +16,9 @@
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/interfaceTest$Nosetests_in_test_register_py.coverage" NAME="Nosetests in test_register.py Coverage Results" MODIFIED="1597894259904" 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$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/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_for_test_install_installTestCase.coverage" NAME="Nosetests for test_install.installTestCase Coverage Results" MODIFIED="1597283305272" 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$randomUtil.coverage" NAME="randomUtil Coverage Results" MODIFIED="1596785449001" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/common" />
......@@ -24,11 +28,13 @@
<SUITE FILE_PATH="coverage/trackingIO$Nosetests_in_test_login_py.coverage" NAME="Nosetests in test_login.py Coverage Results" MODIFIED="1597741887424" 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$click.coverage" NAME="click Coverage Results" MODIFIED="1596787513773" 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$params.coverage" NAME="params Coverage Results" MODIFIED="1597666659921" 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_login_py.coverage" NAME="Nosetests in test_login.py Coverage Results" MODIFIED="1597913967120" 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$mysqlTest.coverage" NAME="mysqlTest Coverage Results" MODIFIED="1596697811466" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/common/test" />
<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$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$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" />
</component>
<component name="DatabaseView">
<option name="SHOW_INTERMEDIATE" value="true" />
......@@ -42,43 +48,11 @@
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="click.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_click/click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="589">
<caret line="109" column="0" lean-forward="false" selection-start-line="109" selection-start-column="0" selection-end-line="109" selection-end-column="0" />
<folding>
<element signature="e#109#118#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="test_click.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_click/test_click.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="775">
<caret line="62" column="0" lean-forward="false" selection-start-line="62" selection-start-column="0" selection-end-line="62" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="__init__.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_events/__init__.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>
</provider>
</entry>
</file>
<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="300">
<caret line="20" column="0" lean-forward="false" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
<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>
......@@ -89,8 +63,8 @@
<file leaf-file-name="randomUtil.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/common/randomUtil.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="315">
<caret line="23" column="16" lean-forward="false" selection-start-line="23" selection-start-column="16" selection-end-line="23" selection-end-column="16" />
<state relative-caret-position="268">
<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 />
</state>
</provider>
......@@ -99,7 +73,7 @@
<file leaf-file-name="envcfg.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/config/envcfg.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-403">
<state relative-caret-position="24">
<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>
<element signature="e#98#120#0" expanded="true" />
......@@ -121,8 +95,8 @@
<file leaf-file-name="params.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/config/prod/params.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="179" column="28" lean-forward="true" selection-start-line="179" selection-start-column="28" selection-end-line="179" selection-end-column="28" />
<state relative-caret-position="301">
<caret line="219" column="0" lean-forward="true" selection-start-line="219" selection-start-column="0" selection-end-line="219" selection-end-column="0" />
<folding>
<element signature="e#97#108#0" expanded="true" />
</folding>
......@@ -130,23 +104,43 @@
</provider>
</entry>
</file>
<file leaf-file-name="test_register.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_register.py">
<file leaf-file-name="test_pay.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_pay.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="73">
<caret line="7" column="0" lean-forward="true" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
<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" />
<folding>
<element signature="e#121#136#0" expanded="true" />
<element signature="e#99#114#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="constants.py" pinned="false" current-in-tab="false">
<entry file="file:///anaconda3/lib/python3.6/site-packages/xlwings/constants.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="72">
<caret line="376" column="6" lean-forward="false" selection-start-line="376" selection-start-column="6" selection-end-line="376" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="test_register.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_register.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="163">
<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>
</file>
<file leaf-file-name="test_login.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_login.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="12" selection-end-column="43" />
<state relative-caret-position="180">
<caret line="12" column="43" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="12" selection-end-column="43" />
<folding>
<element signature="e#101#116#0" expanded="true" />
</folding>
......@@ -167,6 +161,7 @@
<findStrings>
<find>ry</find>
<find>event</find>
<find>background</find>
</findStrings>
</component>
<component name="Git.Settings">
......@@ -187,14 +182,15 @@
<option value="$PROJECT_DIR$/testcase/android_click/installEvent.py" />
<option value="$PROJECT_DIR$/testcase/android_events/installEvent.py" />
<option value="$PROJECT_DIR$/config/envcfg.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_install.py" />
<option value="$PROJECT_DIR$/common/randomUtil.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_login.py" />
<option value="$PROJECT_DIR$/testcase/android_click/click.py" />
<option value="$PROJECT_DIR$/testcase/android_click/test_click.py" />
<option value="$PROJECT_DIR$/testcase/android_events/test_startup.py" />
<option value="$PROJECT_DIR$/config/prod/params.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_pay.py" />
<option value="$PROJECT_DIR$/common/randomUtil.py" />
<option value="$PROJECT_DIR$/config/prod/params.py" />
</list>
</option>
</component>
......@@ -353,7 +349,8 @@
</component>
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
<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" />
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
......@@ -374,27 +371,27 @@
</list>
</option>
</component>
<component name="RunManager" selected="Python tests.Nosetests in test_register.py">
<configuration default="false" name="installEvent" type="PythonConfigurationType" factoryName="Python" temporary="true">
<component name="RunManager" selected="Python tests.Nosetests in test_pay.py">
<configuration default="false" name="params" type="PythonConfigurationType" factoryName="Python" temporary="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/testcase/android_click" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/config/prod" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="trackingIO" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/testcase/android_events/test_install.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/config/prod/params.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<method />
</configuration>
<configuration default="false" name="Nosetests in test_startup.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<configuration default="false" name="Nosetests in test_login.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs />
......@@ -407,30 +404,28 @@
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" />
<option name="_new_regexPattern" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_events/test_startup.py&quot;" />
<option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_events/test_login.py&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" />
<method />
</configuration>
<configuration default="false" name="params" type="PythonConfigurationType" factoryName="Python" temporary="true">
<configuration default="false" name="Nosetests in test_register.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<envs />
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/config/prod" />
<option name="IS_MODULE_SDK" value="true" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/testcase/android_events" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<module name="trackingIO" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/config/prod/params.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" />
<option name="_new_regexPattern" 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_targetType" value="&quot;PATH&quot;" />
<method />
</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_pay.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs />
......@@ -443,11 +438,11 @@
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" />
<option name="_new_regexPattern" 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_pay.py&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" />
<method />
</configuration>
<configuration default="false" name="Nosetests in test_register.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<configuration default="false" name="Nosetests for test_pay.payTestCase" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true">
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs />
......@@ -460,8 +455,8 @@
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" />
<option name="_new_regexPattern" 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_targetType" value="&quot;PATH&quot;" />
<option name="_new_target" value="&quot;test_pay.payTestCase&quot;" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" />
<method />
</configuration>
<configuration default="true" type="DjangoTestsConfigurationType" factoryName="Django tests">
......@@ -614,25 +609,28 @@
<method />
</configuration>
<list size="5">
<item index="0" class="java.lang.String" itemvalue="Python.installEvent" />
<item index="1" class="java.lang.String" itemvalue="Python tests.Nosetests in test_startup.py" />
<item index="2" class="java.lang.String" itemvalue="Python.params" />
<item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_login.py" />
<item index="4" class="java.lang.String" itemvalue="Python tests.Nosetests in test_register.py" />
<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="2" class="java.lang.String" itemvalue="Python tests.Nosetests in test_register.py" />
<item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_pay.py" />
<item index="4" class="java.lang.String" itemvalue="Python tests.Nosetests for test_pay.payTestCase" />
</list>
<recent_temporary>
<list size="5">
<item index="0" class="java.lang.String" itemvalue="Python tests.Nosetests in test_register.py" />
<item index="1" class="java.lang.String" itemvalue="Python tests.Nosetests in test_login.py" />
<item index="2" class="java.lang.String" itemvalue="Python.params" />
<item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_startup.py" />
<item index="4" class="java.lang.String" itemvalue="Python.installEvent" />
<item index="0" class="java.lang.String" itemvalue="Python tests.Nosetests in test_pay.py" />
<item index="1" class="java.lang.String" itemvalue="Python.params" />
<item index="2" class="java.lang.String" itemvalue="Python tests.Nosetests for test_pay.payTestCase" />
<item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_login.py" />
<item index="4" class="java.lang.String" itemvalue="Python tests.Nosetests in test_register.py" />
</list>
</recent_temporary>
</component>
<component name="ShelveChangesManager" show_recycled="false">
<option name="remove_strategy" value="false" />
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="d0064643-2990-4ed3-bfb0-875849b30f4e" name="Default" comment="" />
......@@ -866,39 +864,46 @@
<option name="project" value="LOCAL" />
<updated>1597891225589</updated>
</task>
<option name="localTasksCounter" value="33" />
<task id="LOCAL-00033" summary="add formate enevt">
<created>1597905153317</created>
<option name="number" value="00033" />
<option name="presentableId" value="LOCAL-00033" />
<option name="project" value="LOCAL" />
<updated>1597905153317</updated>
</task>
<option name="localTasksCounter" value="34" />
<servers />
</component>
<component name="TestHistory">
<history-entry file="Nosetests_in_test_login_py - 2020.08.18 at 17h 11m 28s.xml">
<configuration name="Nosetests in test_login.py" configurationId="tests" />
<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" />
</history-entry>
<history-entry file="Nosetests_in_test_register_py - 2020.08.20 at 11h 31m 01s.xml">
<configuration name="Nosetests in test_register.py" configurationId="tests" />
<history-entry file="Nosetests_in_test_login_py - 2020.08.20 at 16h 59m 28s.xml">
<configuration name="Nosetests in test_login.py" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_in_test_startup_py - 2020.08.17 at 17h 27m 05s.xml">
<configuration name="Nosetests in test_startup.py" configurationId="tests" />
<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 file="Nosetests_in_test_startup_py - 2020.08.17 at 17h 30m 03s.xml">
<configuration name="Nosetests in test_startup.py" configurationId="tests" />
<history-entry file="Nosetests_in_test_pay_py - 2020.08.20 at 17h 00m 51s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_in_test_startup_py - 2020.08.17 at 17h 30m 50s.xml">
<configuration name="Nosetests in test_startup.py" configurationId="tests" />
<history-entry file="Nosetests_in_test_pay_py - 2020.08.20 at 17h 48m 26s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_in_test_startup_py - 2020.08.17 at 17h 45m 10s.xml">
<configuration name="Nosetests in test_startup.py" configurationId="tests" />
<history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 10h 45m 11s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_in_test_startup_py - 2020.08.17 at 17h 50m 59s.xml">
<configuration name="Nosetests in test_startup.py" configurationId="tests" />
<history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 10h 45m 50s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_in_test_startup_py - 2020.08.17 at 17h 57m 13s.xml">
<configuration name="Nosetests in test_startup.py" configurationId="tests" />
<history-entry file="Nosetests_in_test_pay_py - 2020.08.21 at 10h 50m 26s.xml">
<configuration name="Nosetests in test_pay.py" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_in_test_startup_py - 2020.08.17 at 17h 57m 50s.xml">
<configuration name="Nosetests in test_startup.py" configurationId="tests" />
<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" />
</history-entry>
<history-entry file="Nosetests_in_test_startup_py - 2020.08.17 at 17h 58m 08s.xml">
<configuration name="Nosetests in test_startup.py" configurationId="tests" />
<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" />
</history-entry>
</component>
<component name="TodoView">
......@@ -912,6 +917,7 @@
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="1280" height="724" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32838285" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32838285" sideWeight="0.5048465" order="7" side_tool="true" content_ui="tabs" />
......@@ -919,7 +925,7 @@
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32838285" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
<window_info id="Python Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32838285" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32838285" sideWeight="0.4951535" order="9" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.26979" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.20597738" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32956383" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32838285" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
......@@ -953,40 +959,12 @@
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_login.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="10" column="15" lean-forward="true" selection-start-line="10" selection-start-column="15" selection-end-line="10" selection-end-column="15" />
<folding>
<element signature="e#101#116#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/config/envcfg.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1005">
<caret line="70" column="1" lean-forward="true" selection-start-line="70" selection-start-column="1" selection-end-line="70" selection-end-column="1" />
<folding>
<element signature="e#98#120#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/data/prod.yaml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225">
<caret line="15" column="31" lean-forward="false" selection-start-line="15" selection-start-column="31" selection-end-line="15" selection-end-column="31" />
<folding />
</state>
</provider>
</entry>
<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="true" />
<element signature="e#109#118#0" expanded="false" />
</folding>
</state>
</provider>
......@@ -1072,7 +1050,7 @@
<state relative-caret-position="285">
<caret line="27" column="13" lean-forward="true" selection-start-line="24" selection-start-column="7" selection-end-line="27" selection-end-column="13" />
<folding>
<element signature="e#109#118#0" expanded="true" />
<element signature="e#109#118#0" expanded="false" />
</folding>
</state>
</provider>
......@@ -1151,7 +1129,7 @@
<state relative-caret-position="1110">
<caret line="74" column="13" lean-forward="false" selection-start-line="74" selection-start-column="13" selection-end-line="74" selection-end-column="13" />
<folding>
<element signature="e#109#118#0" expanded="true" />
<element signature="e#109#118#0" expanded="false" />
</folding>
</state>
</provider>
......@@ -1176,7 +1154,7 @@
<state relative-caret-position="1110">
<caret line="74" column="13" lean-forward="true" selection-start-line="74" selection-start-column="13" selection-end-line="74" selection-end-column="13" />
<folding>
<element signature="e#109#118#0" expanded="true" />
<element signature="e#109#118#0" expanded="false" />
</folding>
</state>
</provider>
......@@ -1297,7 +1275,7 @@
<state relative-caret-position="589">
<caret line="109" column="0" lean-forward="false" selection-start-line="109" selection-start-column="0" selection-end-line="109" selection-end-column="0" />
<folding>
<element signature="e#109#118#0" expanded="true" />
<element signature="e#109#118#0" expanded="false" />
</folding>
</state>
</provider>
......@@ -1318,22 +1296,28 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_install.py">
<entry file="file:///anaconda3/lib/python3.6/site-packages/xlwings/constants.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300">
<caret line="20" column="0" lean-forward="false" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
<folding>
<element signature="e#102#117#0" expanded="true" />
</folding>
<state relative-caret-position="72">
<caret line="376" column="6" lean-forward="false" selection-start-line="376" selection-start-column="6" selection-end-line="376" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/config/envcfg.py">
<entry file="file:///anaconda3/lib/python3.6/site-packages/imageio/plugins/_swf.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-403">
<caret line="12" column="6" lean-forward="false" selection-start-line="12" selection-start-column="6" selection-end-line="12" selection-end-column="6" />
<state relative-caret-position="978">
<caret line="402" column="6" lean-forward="false" selection-start-line="402" selection-start-column="6" selection-end-line="402" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<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#98#120#0" expanded="true" />
<element signature="e#102#117#0" expanded="true" />
</folding>
</state>
</provider>
......@@ -1346,40 +1330,58 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/common/randomUtil.py">
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_register.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="315">
<caret line="23" column="16" lean-forward="false" selection-start-line="23" selection-start-column="16" selection-end-line="23" selection-end-column="16" />
<state relative-caret-position="163">
<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$/config/prod/params.py">
<entry file="file://$PROJECT_DIR$/config/envcfg.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="179" column="28" lean-forward="true" selection-start-line="179" selection-start-column="28" selection-end-line="179" selection-end-column="28" />
<state relative-caret-position="24">
<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>
<element signature="e#97#108#0" expanded="true" />
<element signature="e#98#120#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_login.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="8" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="12" selection-end-column="43" />
<state relative-caret-position="180">
<caret line="12" column="43" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="12" selection-end-column="43" />
<folding>
<element signature="e#101#116#0" expanded="true" />
</folding>
</state>
</provider>
</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">
<state relative-caret-position="268">
<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 />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/config/prod/params.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="301">
<caret line="219" column="0" lean-forward="true" selection-start-line="219" selection-start-column="0" selection-end-line="219" selection-end-column="0" />
<folding>
<element signature="e#97#108#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_events/test_pay.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="73">
<caret line="7" column="0" lean-forward="true" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
<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" />
<folding>
<element signature="e#121#136#0" expanded="true" />
<element signature="e#99#114#0" expanded="true" />
</folding>
</state>
</provider>
......
......@@ -21,4 +21,7 @@ class randomUtil:
i = ''.join(str(random.choice(range(10))) for _ in range(12))
return i
def transactionid(self):
t = ''.join(str(random.choice(range(10))) for _ in range(19))
return t
r = randomUtil()
\ No newline at end of file
......@@ -7,6 +7,7 @@
"""
import time
import random
from config.envcfg import prod
from common import randomUtil
......@@ -191,3 +192,28 @@ params_register = {
# 'ds': ds,
'who': 'lxx_test'
}
params_pay = {
'what': 'payment',
'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",
'_ryos': "android",
'_currencytype': "CNY",
'_currencyamount': "10",
"_lib_version": "1.5.0",
'_oaid': "unknow",
# "_idfa": "00000000-0000-0000-0000-000000000000",
# "_idfv": ""
},
# '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_pay.py
@time: 2020/8/20 15:43
@desc:
"""
import unittest
import json
import requests
from config.envcfg import prod, headers
from config.prod.params import params_pay
class payTestCase(unittest.TestCase):
def testpayment(self):
r = requests.post(url=prod['events']['url'] + 'payment', data=json.dumps(params_pay), headers=headers, timeout=5)
print("付费" + r.text)
print(prod['events']['url'] + 'payment')
print(json.dumps(params_pay))
print(r)
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