Commit 0e96f097 by zhaihuitao

add install enevt

parent 4a0f7810
...@@ -2,8 +2,12 @@ ...@@ -2,8 +2,12 @@
<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$/config/prod/params.py" />
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/testcase/android_click/installEvent.py" />
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/testcase/android_click/test_install.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$/config/envcfg.py" afterPath="$PROJECT_DIR$/config/envcfg.py" /> <change type="MODIFICATION" beforePath="$PROJECT_DIR$/config/envcfg.py" afterPath="$PROJECT_DIR$/config/envcfg.py" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/testcase/android_click/baseEvent.py" afterPath="$PROJECT_DIR$/testcase/android_click/baseEvent.py" />
</list> </list>
<option name="TRACKING_ENABLED" value="true" /> <option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -13,11 +17,13 @@ ...@@ -13,11 +17,13 @@
</component> </component>
<component name="CoverageDataManager"> <component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/trackingIO$Nosetests_for_test_click_clickTestCase_click.coverage" NAME="Nosetests for test_click.clickTestCase.click Coverage Results" MODIFIED="1597028770011" 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_click_clickTestCase_click.coverage" NAME="Nosetests for test_click.clickTestCase.click Coverage Results" MODIFIED="1597028770011" 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_install.coverage" NAME="Nosetests for test_install.installTestCase.install Coverage Results" MODIFIED="1597134802392" 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$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$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$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" />
<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$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="1597025648987" 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="1597025648987" 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$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" /> <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" />
<SUITE FILE_PATH="coverage/trackingIO$Nosetests_in_test_install_py.coverage" NAME="Nosetests in test_install.py Coverage Results" MODIFIED="1597134766683" 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_click_clickTestCase.coverage" NAME="Nosetests for test_click.clickTestCase Coverage Results" MODIFIED="1596792693473" 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_click_clickTestCase.coverage" NAME="Nosetests for test_click.clickTestCase Coverage Results" MODIFIED="1596792693473" 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" />
</component> </component>
<component name="DatabaseView"> <component name="DatabaseView">
...@@ -45,9 +51,11 @@ ...@@ -45,9 +51,11 @@
<file leaf-file-name="click.py" pinned="false" current-in-tab="false"> <file leaf-file-name="click.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_click/click.py"> <entry file="file://$PROJECT_DIR$/testcase/android_click/click.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150"> <state relative-caret-position="105">
<caret line="10" column="13" lean-forward="true" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" /> <caret line="7" column="0" lean-forward="false" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
<folding /> <folding>
<marker date="1596792153402" expanded="true" signature="161:286" ph="import ..." />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -55,7 +63,7 @@ ...@@ -55,7 +63,7 @@
<file leaf-file-name="test_click.py" pinned="false" current-in-tab="false"> <file leaf-file-name="test_click.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_click/test_click.py"> <entry file="file://$PROJECT_DIR$/testcase/android_click/test_click.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="140"> <state relative-caret-position="-111">
<caret line="13" column="10" lean-forward="true" selection-start-line="13" selection-start-column="10" selection-end-line="13" selection-end-column="10" /> <caret line="13" column="10" lean-forward="true" selection-start-line="13" selection-start-column="10" selection-end-line="13" selection-end-column="10" />
<folding /> <folding />
</state> </state>
...@@ -65,9 +73,35 @@ ...@@ -65,9 +73,35 @@
<file leaf-file-name="baseEvent.py" pinned="false" current-in-tab="false"> <file leaf-file-name="baseEvent.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_click/baseEvent.py"> <entry file="file://$PROJECT_DIR$/testcase/android_click/baseEvent.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-652"> <state relative-caret-position="7305">
<caret line="11" column="24" lean-forward="true" selection-start-line="11" selection-start-column="24" selection-end-line="11" selection-end-column="24" /> <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 /> <folding>
<element signature="e#99#114#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="installEvent.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcase/android_click/installEvent.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="268">
<caret line="24" column="14" lean-forward="false" selection-start-line="24" selection-start-column="14" selection-end-line="24" selection-end-column="14" />
<folding>
<element signature="e#102#117#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="test_install.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/testcase/android_click/test_install.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="195">
<caret line="13" column="22" lean-forward="true" selection-start-line="13" selection-start-column="22" selection-end-line="13" selection-end-column="22" />
<folding>
<element signature="e#103#118#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -84,11 +118,11 @@ ...@@ -84,11 +118,11 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="envcfg.py" pinned="false" current-in-tab="true"> <file leaf-file-name="envcfg.py" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/config/envcfg.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="190"> <state relative-caret-position="281">
<caret line="33" column="10" lean-forward="false" selection-start-line="33" selection-start-column="10" selection-end-line="33" selection-end-column="10" /> <caret line="36" column="24" lean-forward="false" selection-start-line="36" selection-start-column="24" selection-end-line="36" selection-end-column="24" />
<folding> <folding>
<element signature="e#98#120#0" expanded="true" /> <element signature="e#98#120#0" expanded="true" />
</folding> </folding>
...@@ -96,6 +130,16 @@ ...@@ -96,6 +130,16 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<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="467">
<caret line="46" column="1" lean-forward="false" selection-start-line="46" selection-start-column="1" selection-end-line="46" selection-end-column="1" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf> </leaf>
</component> </component>
<component name="FileTemplateManagerImpl"> <component name="FileTemplateManagerImpl">
...@@ -127,8 +171,11 @@ ...@@ -127,8 +171,11 @@
<option value="$PROJECT_DIR$/common/randomUtil.py" /> <option value="$PROJECT_DIR$/common/randomUtil.py" />
<option value="$PROJECT_DIR$/testcase/android_click/click.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_click/test_click.py" />
<option value="$PROJECT_DIR$/testcase/android_click/baseEvent.py" />
<option value="$PROJECT_DIR$/config/envcfg.py" /> <option value="$PROJECT_DIR$/config/envcfg.py" />
<option value="$PROJECT_DIR$/config/prod/params.py" />
<option value="$PROJECT_DIR$/testcase/android_click/baseEvent.py" />
<option value="$PROJECT_DIR$/testcase/android_click/installEvent.py" />
<option value="$PROJECT_DIR$/testcase/android_click/test_install.py" />
</list> </list>
</option> </option>
</component> </component>
...@@ -284,26 +331,7 @@ ...@@ -284,26 +331,7 @@
</list> </list>
</option> </option>
</component> </component>
<component name="RunManager" selected="Python tests.Nosetests for test_click.clickTestCase.click"> <component name="RunManager" selected="Python tests.Nosetests for test_install.installTestCase.install">
<configuration default="false" name="click" 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="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" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/testcase/android_click/click.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 for test_click.clickTestCase.click" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true"> <configuration default="false" name="Nosetests for test_click.clickTestCase.click" 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" />
...@@ -338,7 +366,26 @@ ...@@ -338,7 +366,26 @@
<option name="_new_targetType" value="&quot;PYTHON&quot;" /> <option name="_new_targetType" value="&quot;PYTHON&quot;" />
<method /> <method />
</configuration> </configuration>
<configuration default="false" name="Nosetests in test_click.py" type="tests" factoryName="Nosetests" temporary="true" nameIsGenerated="true"> <configuration default="false" name="envcfg" 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$/config" />
<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$/config/envcfg.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 for test_install.installTestCase.install" 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 />
...@@ -351,27 +398,25 @@ ...@@ -351,27 +398,25 @@
<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_click/test_click.py&quot;" /> <option name="_new_target" value="&quot;test_install.installTestCase.install&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" /> <option name="_new_targetType" value="&quot;PYTHON&quot;" />
<method /> <method />
</configuration> </configuration>
<configuration default="false" name="envcfg" type="PythonConfigurationType" factoryName="Python" temporary="true"> <configuration default="false" name="Nosetests in test_install.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 />
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/config" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/testcase/android_click" />
<option name="IS_MODULE_SDK" value="true" /> <option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" /> <option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<module name="trackingIO" /> <module name="trackingIO" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/config/envcfg.py" /> <option name="_new_regexPattern" value="&quot;&quot;" />
<option name="PARAMETERS" value="" /> <option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="_new_target" value="&quot;$PROJECT_DIR$/testcase/android_click/test_install.py&quot;" />
<option name="EMULATE_TERMINAL" value="false" /> <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">
...@@ -524,19 +569,19 @@ ...@@ -524,19 +569,19 @@
<method /> <method />
</configuration> </configuration>
<list size="5"> <list size="5">
<item index="0" class="java.lang.String" itemvalue="Python.click" /> <item index="0" class="java.lang.String" itemvalue="Python tests.Nosetests for test_click.clickTestCase.click" />
<item index="1" class="java.lang.String" itemvalue="Python tests.Nosetests for test_click.clickTestCase.click" /> <item index="1" class="java.lang.String" itemvalue="Python tests.Nosetests for test_click.clickTestCase" />
<item index="2" class="java.lang.String" itemvalue="Python tests.Nosetests for test_click.clickTestCase" /> <item index="2" class="java.lang.String" itemvalue="Python.envcfg" />
<item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_click.py" /> <item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests for test_install.installTestCase.install" />
<item index="4" class="java.lang.String" itemvalue="Python.envcfg" /> <item index="4" class="java.lang.String" itemvalue="Python tests.Nosetests in test_install.py" />
</list> </list>
<recent_temporary> <recent_temporary>
<list size="5"> <list size="5">
<item index="0" class="java.lang.String" itemvalue="Python tests.Nosetests for test_click.clickTestCase.click" /> <item index="0" class="java.lang.String" itemvalue="Python tests.Nosetests for test_install.installTestCase.install" />
<item index="1" class="java.lang.String" itemvalue="Python.envcfg" /> <item index="1" class="java.lang.String" itemvalue="Python tests.Nosetests in test_install.py" />
<item index="2" class="java.lang.String" itemvalue="Python tests.Nosetests for test_click.clickTestCase" /> <item index="2" class="java.lang.String" itemvalue="Python tests.Nosetests for test_click.clickTestCase.click" />
<item index="3" class="java.lang.String" itemvalue="Python tests.Nosetests in test_click.py" /> <item index="3" class="java.lang.String" itemvalue="Python.envcfg" />
<item index="4" class="java.lang.String" itemvalue="Python.click" /> <item index="4" class="java.lang.String" itemvalue="Python tests.Nosetests for test_click.clickTestCase" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -608,25 +653,20 @@ ...@@ -608,25 +653,20 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1597128838751</updated> <updated>1597128838751</updated>
</task> </task>
<option name="localTasksCounter" value="9" /> <task id="LOCAL-00009" summary="添加配置地址">
<created>1597129512962</created>
<option name="number" value="00009" />
<option name="presentableId" value="LOCAL-00009" />
<option name="project" value="LOCAL" />
<updated>1597129512962</updated>
</task>
<option name="localTasksCounter" value="10" />
<servers /> <servers />
</component> </component>
<component name="TestHistory"> <component name="TestHistory">
<history-entry file="Nosetests_for_test_click_clickTestCase - 2020.08.07 at 17h 14m 50s.xml">
<configuration name="Nosetests for test_click.clickTestCase" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_for_test_click_clickTestCase - 2020.08.07 at 17h 31m 34s.xml"> <history-entry file="Nosetests_for_test_click_clickTestCase - 2020.08.07 at 17h 31m 34s.xml">
<configuration name="Nosetests for test_click.clickTestCase" configurationId="tests" /> <configuration name="Nosetests for test_click.clickTestCase" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_for_test_click_clickTestCase_click - 2020.08.07 at 17h 13m 45s.xml">
<configuration name="Nosetests for test_click.clickTestCase.click" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_for_test_click_clickTestCase_click - 2020.08.07 at 17h 15m 56s.xml">
<configuration name="Nosetests for test_click.clickTestCase.click" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_for_test_click_clickTestCase_click - 2020.08.07 at 17h 27m 32s.xml">
<configuration name="Nosetests for test_click.clickTestCase.click" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_for_test_click_clickTestCase_click - 2020.08.07 at 17h 32m 39s.xml"> <history-entry file="Nosetests_for_test_click_clickTestCase_click - 2020.08.07 at 17h 32m 39s.xml">
<configuration name="Nosetests for test_click.clickTestCase.click" configurationId="tests" /> <configuration name="Nosetests for test_click.clickTestCase.click" configurationId="tests" />
</history-entry> </history-entry>
...@@ -642,13 +682,25 @@ ...@@ -642,13 +682,25 @@
<history-entry file="Nosetests_for_test_click_clickTestCase_click - 2020.08.10 at 11h 06m 11s.xml"> <history-entry file="Nosetests_for_test_click_clickTestCase_click - 2020.08.10 at 11h 06m 11s.xml">
<configuration name="Nosetests for test_click.clickTestCase.click" configurationId="tests" /> <configuration name="Nosetests for test_click.clickTestCase.click" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Nosetests_for_test_install_installTestCase_install - 2020.08.11 at 16h 30m 28s.xml">
<configuration name="Nosetests for test_install.installTestCase.install" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_for_test_install_installTestCase_install - 2020.08.11 at 16h 32m 18s.xml">
<configuration name="Nosetests for test_install.installTestCase.install" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_for_test_install_installTestCase_install - 2020.08.11 at 16h 33m 24s.xml">
<configuration name="Nosetests for test_install.installTestCase.install" configurationId="tests" />
</history-entry>
<history-entry file="Nosetests_in_test_install_py - 2020.08.11 at 16h 32m 48s.xml">
<configuration name="Nosetests in test_install.py" configurationId="tests" />
</history-entry>
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="0" y="23" width="1280" height="724" extended-state="0" /> <frame x="0" y="23" width="1280" height="724" extended-state="0" />
<layout> <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.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" 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" /> <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" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32838285" sideWeight="0.49676898" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32838285" sideWeight="0.49676898" order="2" side_tool="false" content_ui="tabs" />
<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="7" side_tool="false" content_ui="tabs" /> <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="7" 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.33" sideWeight="0.5" order="7" 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.33" sideWeight="0.5" order="7" 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="7" 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="7" side_tool="false" content_ui="tabs" />
...@@ -671,12 +723,12 @@ ...@@ -671,12 +723,12 @@
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" 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.503231" order="7" side_tool="true" 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" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32838285" sideWeight="0.49676898" order="2" side_tool="false" content_ui="tabs" /> <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32838285" sideWeight="0.49676898" order="2" side_tool="false" content_ui="tabs" />
<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.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> <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="8" 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.33" sideWeight="0.5" order="9" 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.33" sideWeight="0.5" order="9" 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.33" sideWeight="0.5" order="10" 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="10" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25767368" 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.25767368" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" 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="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" />
...@@ -714,7 +766,9 @@ ...@@ -714,7 +766,9 @@
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1110"> <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" /> <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 /> <folding>
<marker date="1596792153402" expanded="true" signature="161:286" ph="import ..." />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -738,7 +792,9 @@ ...@@ -738,7 +792,9 @@
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1110"> <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" /> <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 /> <folding>
<marker date="1596792153402" expanded="true" signature="161:286" ph="import ..." />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -818,9 +874,11 @@ ...@@ -818,9 +874,11 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/testcase/android_click/click.py"> <entry file="file://$PROJECT_DIR$/testcase/android_click/click.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150"> <state relative-caret-position="105">
<caret line="10" column="13" lean-forward="true" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" /> <caret line="7" column="0" lean-forward="false" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
<folding /> <folding>
<marker date="1596792153402" expanded="true" signature="161:286" ph="import ..." />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -842,44 +900,74 @@ ...@@ -842,44 +900,74 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/testcase/android_click/test_click.py"> <entry file="file://$PROJECT_DIR$/config/prod/prod.yaml">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="140"> <state relative-caret-position="225">
<caret line="13" column="10" lean-forward="true" selection-start-line="13" selection-start-column="10" selection-end-line="13" selection-end-column="10" /> <caret line="15" column="31" lean-forward="true" selection-start-line="15" selection-start-column="31" selection-end-line="15" selection-end-column="31" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/config/prod/prod.yaml"> <entry file="file://$PROJECT_DIR$/unnamed.patch">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225"> <state relative-caret-position="0">
<caret line="15" column="31" lean-forward="true" selection-start-line="15" selection-start-column="31" selection-end-line="15" selection-end-column="31" /> <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 /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/testcase/android_click/baseEvent.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="-652"> <state relative-caret-position="281">
<caret line="11" column="24" lean-forward="true" selection-start-line="11" selection-start-column="24" selection-end-line="11" selection-end-column="24" /> <caret line="36" column="24" lean-forward="false" selection-start-line="36" selection-start-column="24" selection-end-line="36" selection-end-column="24" />
<folding>
<element signature="e#98#120#0" expanded="true" />
</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="467">
<caret line="46" column="1" lean-forward="false" selection-start-line="46" selection-start-column="1" selection-end-line="46" selection-end-column="1" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/unnamed.patch"> <entry file="file://$PROJECT_DIR$/testcase/android_click/baseEvent.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="7305">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> <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="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcase/android_click/installEvent.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="268">
<caret line="24" column="14" lean-forward="false" selection-start-line="24" selection-start-column="14" selection-end-line="24" selection-end-column="14" />
<folding>
<element signature="e#102#117#0" expanded="true" />
</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="-111">
<caret line="13" column="10" lean-forward="true" selection-start-line="13" selection-start-column="10" selection-end-line="13" selection-end-column="10" />
<folding /> <folding />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/config/envcfg.py"> <entry file="file://$PROJECT_DIR$/testcase/android_click/test_install.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="190"> <state relative-caret-position="195">
<caret line="33" column="10" lean-forward="false" selection-start-line="33" selection-start-column="10" selection-end-line="33" selection-end-column="10" /> <caret line="13" column="22" lean-forward="true" selection-start-line="13" selection-start-column="22" selection-end-line="13" selection-end-column="22" />
<folding> <folding>
<element signature="e#98#120#0" expanded="true" /> <element signature="e#103#118#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
......
...@@ -32,9 +32,9 @@ prod_params = { ...@@ -32,9 +32,9 @@ prod_params = {
"ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko)Version/5.1 " "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko)Version/5.1 "
"Mobile/9A334 Safari/7534.48.3", 'creativeId': '21321321312123', 'requestId': '312321321312', "Mobile/9A334 Safari/7534.48.3", 'creativeId': '21321321312123', 'requestId': '312321321312',
"adId": long('21231'), "adId": long('21231'),
'ry_adgroup_name': "头条广告组2", "ry_adgroup_name": "头条广告组2",
'ry_adplan_name': "头条广告计划2", "ry_adplan_name": "头条广告计划2",
'ry_adcreative_name': "头条广告名称2", "ry_adcreative_name": "头条广告名称2",
"ry_adgroup_id": 999, "ry_adgroup_id": 999,
"ry_adplan_id": 999, "ry_adplan_id": 999,
"ry_adcreative_id": 999, "ry_adcreative_id": 999,
......
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file: params.py
@time: 2020/8/11 15:08
@desc:
"""
import time
params_install = {
"what":'install',
"appid": "9b17c1568c3ce34599c5fd2778483ff9",
"context": {
"_carrier": "中国联通",
"_network_type": "5G",
"_ryosversion": "10.0.0",
"_model": "test1",
"_pkgname": "com.yanjing.yami",
"_campaignid": 'default',
"_deviceid": "CFFEF74E-B6BF-BD16-E7F8-DFDBFF5FB6E1",
"_imei": "cffef74e-b6bf-bd16-e7f8-dfdbff5fb6e1",
# "_idfa": 'DBC13622-E34B-440C-B7A7-FB6641D0D9AB',
# "_androidid": "43214532142142",
# "_imei2":"324323AAAA",
# "_meid": "CCC324323",
"_ip": "119.57.108.226",
# "_ipv6": i,
'_manufacturer': "HUAWEI",
'_ryos': "Android",
'_rydevicetype': "LYA-AL00",
'_network': "WIFI",
'_resolution': "1080*2265",
'_op': "中国移动",
'_timestamp': int(round(time.time() * 1000)),
'_oaid': '234B9U1T-A274-ED22-CEBF-4B6DDDFC18A9',
# '_mac': "12321321321321321",
"_istablet": "phone",
"_lib": "Android",
"_lib_version": "1.5.0",
},
# 'when': time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())),
# time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
# 'ds': ds,
'who': 'lxx_test'
}
\ No newline at end of file
...@@ -6,49 +6,17 @@ ...@@ -6,49 +6,17 @@
@desc: @desc:
""" """
class allEvent: import requests
# 激活 import json
def installUpload(self, i, IP, appkey): from config.envcfg import prod, prod_params
s = json.dumps({ from config.prod.params import params_install
# "what":'install',
"appid": appkey,
"context": {
"_carrier": carrier,
"_network_type": network_type,
"_ryosversion": ryosversion,
"_model": model,
"_pkgname": "com.yanjing.yami",
"_campaignid": 'default',
"_deviceid": i,
"_imei": i,
# "_idfa": 'DBC13622-E34B-440C-B7A7-FB6641D0D9AB',
# "_androidid": "43214532142142",
# "_imei2":"324323AAAA",
# "_meid": "CCC324323",
"_ip": IP,
# "_ipv6": i,
'_manufacturer': manufacturer,
'_ryos': ryos,
'_rydevicetype': rydevicetype,
'_network': network,
'_resolution': resolution,
'_op': op,
'_timestamp': current_time_13,
'_oaid': '234B9U1T-A274-ED22-CEBF-4B6DDDFC18A9',
# '_mac': "12321321321321321",
"_istablet": istablet,
"_lib": lib,
"_lib_version": lv,
},
# 'when': time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())),
# time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
# 'ds': ds,
'who': 'lxx_test'
}) class allEvent:
# 激活
def installUpload(self):
try: try:
p = requests.post(url=URL + 'install', data=s, headers=headers, timeout=5) p = requests.post(url=prod["events"]["url"] + 'install', data=json.dumps(params_install), headers=headers, timeout=5)
print("激活:" + p.text) print("激活:" + p.text)
print("设备id:" + i) print("设备id:" + i)
print(p.url) print(p.url)
...@@ -86,7 +54,6 @@ class allEvent: ...@@ -86,7 +54,6 @@ class allEvent:
p = requests.post(url=URL + 'form', data=s, headers=headers, timeout=10) p = requests.post(url=URL + 'form', data=s, headers=headers, timeout=10)
print("今日头条表单" + p.text) print("今日头条表单" + p.text)
# 启动 # 启动
def startupEvent(self, i, IP, appkey): def startupEvent(self, i, IP, appkey):
s = json.dumps( s = json.dumps(
...@@ -517,3 +484,5 @@ class allEvent: ...@@ -517,3 +484,5 @@ class allEvent:
print("App使用时长:" + p.text) print("App使用时长:" + p.text)
except Exception as err: except Exception as err:
print(err) print(err)
a = allEvent()
\ No newline at end of file
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file: installEvent.py
@time: 2020/8/11 15:29
@desc:
"""
import requests
import json
from config.envcfg import prod, prod_params
from config.prod.params import params_install
headers = {'Content-Type': 'application/json'}
class allEvent:
# 激活
def installUpload(self):
try:
p = requests.post(url=prod["events"]["url"] + 'install', data=json.dumps(params_install), headers=headers, timeout=5)
print("激活:" + p.text)
# print("设备id:" + i)
print(p.url)
except Exception as err:
print(err)
a = allEvent()
\ No newline at end of file
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file: test_install.py
@time: 2020/8/11 16:22
@desc:
"""
import unittest
from testcase.android_click.installEvent import allEvent
class installTestCase(unittest.TestCase):
def install(self):
allEvent.installUpload(self)
\ 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