Start Time: 2018-01-15 11:22:52
+Duration: 0:01:10.454840
+Status: Pass 64 Failure 1 Error 7
+ + +Test Group/Test case | +Count | +Pass | +Fail | +Error | +View | +
app_record_statistic.AppRecordEveryday | +1 | +1 | +0 | +0 | +Detail | +
test_getAppRecordEveryday_success |
+ pass | +||||
app_record_statistic.AppRecordOneday | +1 | +1 | +0 | +0 | +Detail | +
test_getAppRecordOneday_success |
+ pass | +||||
app_record_statistic.AppRecordReset | +2 | +2 | +0 | +0 | +Detail | +
test_AppRecordReset_passwordError |
+ pass | +||||
test_AppRecordReset_success |
+ pass | +||||
app_record_statistic.AppRecordSave | +1 | +1 | +0 | +0 | +Detail | +
test_AppRecordSave_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt4.1: + ++ |
+||||
app_record_statistic.AppRecordStats | +4 | +4 | +0 | +0 | +Detail | +
test_getAppRecordStats_all_success |
+ pass | +||||
test_getAppRecordStats_month_success |
+ pass | +||||
test_getAppRecordStats_week_success |
+ pass | +||||
test_getAppRecordStats_year_success |
+ pass | +||||
app_record_statistic.AppRecordToday | +1 | +1 | +0 | +0 | +Detail | +
test_AppRecordToday_success |
+ pass | +||||
app_record_statistic.AppRecordTop | +2 | +2 | +0 | +0 | +Detail | +
test_getAppRecordTop_hjx |
+ pass | +||||
test_getAppRecordTop_other |
+ pass | +||||
eleccard_check.CheckElecCardBind | +3 | +3 | +0 | +0 | +Detail | +
test_checkElecCard_customerMachine |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt8.1: + ++ |
+||||
test_checkElecCard_sampleMachine |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt8.2: + ++ |
+||||
test_checkElecCard_unbind |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt8.3: + ++ |
+||||
eleccard_check.GetCardInfo | +1 | +1 | +0 | +0 | +Detail | +
test_getCardInfo_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt9.1: + ++ |
+||||
eleccard_setUp.Card_Modify | +2 | +2 | +0 | +0 | +Detail | +
test_modifyCardInfo_address_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt10.1: + ++ |
+||||
test_modifyCardInfo_phone_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt10.2: + ++ |
+||||
eleccard_setUp.SetToCustomer | +1 | +1 | +0 | +0 | +Detail | +
test_updateToCustomer_success |
+ pass | +||||
eleccard_setUp.SetToSample | +1 | +1 | +0 | +0 | +Detail | +
test_updateToSample_success |
+ pass | +||||
eleccard_setUp.SetUpElecCard | +1 | +0 | +1 | +0 | +Detail | +
test_addElecCard_success |
+
+
+
+
+ fail
+
+
+
+
+
+
+
+ [x]
+
+ + +ft13.1: Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/eleccard_setUp.py", line 34, in test_addElecCard_success + self.assertEqual(self.result['status'], 1, 'addElecCard Error') +AssertionError: 2003 != 1 : addElecCard Error +Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/eleccard_setUp.py", line 34, in test_addElecCard_success + self.assertEqual(self.result['status'], 1, 'addElecCard Error') +AssertionError: 2003 != 1 : addElecCard Error + + ++ |
+||||
eleccard_setUp.Unbind | +1 | +1 | +0 | +0 | +Detail | +
test_unbindCard_success |
+ pass | +||||
parent_space.ParentSpaceChangePassword | +1 | +1 | +0 | +0 | +Detail | +
test_ParentSpaceChangePassword_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt15.1: + ++ |
+||||
parent_space.ParentSpaceLogin | +2 | +2 | +0 | +0 | +Detail | +
test_ParentSpaceLogin_WrongPassword |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt16.1: + ++ |
+||||
test_ParentSpaceLogin_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt16.2: + ++ |
+||||
parent_space.ParentSpaceNewPassword | +2 | +2 | +0 | +0 | +Detail | +
test_ParentSpaceNewPassword_authCodeError |
+ pass | +||||
test_ParentSpaceNewPassword_success |
+ pass | +||||
personal_info.AddorUpdateSignature | +4 | +4 | +0 | +0 | +Detail | +
test_AddChildSignature_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt18.1: + ++ |
+||||
test_AddParentSignature_success |
+ pass | +||||
test_UpdateChildSignature_success |
+ pass | +||||
test_UpdateParentSignature_success |
+ pass | +||||
personal_info.GetPersonalInfo | +2 | +2 | +0 | +0 | +Detail | +
test_getChildAccountInfo_success |
+ pass | +||||
test_getParentAccountInfo_success |
+ pass | +||||
personal_info.GetSignature | +2 | +2 | +0 | +0 | +Detail | +
test_getChildSignature_success |
+ pass | +||||
test_getParentSignature_success |
+ pass | +||||
personal_info.UpdatePersonalInfo | +2 | +2 | +0 | +0 | +Detail | +
test_UpdateChildInfo_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt21.1: + ++ |
+||||
test_UpdateParentInfo_success |
+ pass | +||||
personal_info.UpdatePortrait | +2 | +2 | +0 | +0 | +Detail | +
test_UpdateChildPortrait_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt22.1: + ++ |
+||||
test_UpdateParentPortraitDefault_success |
+ pass | +||||
personal_info.UpdatePortraitDefault | +2 | +2 | +0 | +0 | +Detail | +
test_UpdateChildPortraitDefault_success |
+ pass | +||||
test_UpdateParentPortraitDefault_success |
+ pass | +||||
press.GetPressList | +1 | +1 | +0 | +0 | +Detail | +
test_getPressList_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt24.1: + ++ |
+||||
press.GetUserPressInfo | +1 | +1 | +0 | +0 | +Detail | +
test_getPressList_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt25.1: + ++ |
+||||
press.UpdateUserPressInfo | +1 | +0 | +0 | +1 | +Detail | +
test_getPressList_success |
+
+
+
+
+ error
+
+
+
+
+
+
+
+ [x]
+
+ + +ft26.1: Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/press.py", line 88, in test_getPressList_success + self.assertEqual(db_test.select_('acornuser.user_press', where), 1, 'UpdateUserPressInfo data Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 856, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1057, in _read_query_result + result.read() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1340, in read + first_packet = self.connection._read_packet() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 987, in _read_packet + packet_header = self._read_bytes(4) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1033, in _read_bytes + CR.CR_SERVER_LOST, "Lost connection to MySQL server during query") +pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query') +Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/press.py", line 88, in test_getPressList_success + self.assertEqual(db_test.select_('acornuser.user_press', where), 1, 'UpdateUserPressInfo data Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 856, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1057, in _read_query_result + result.read() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1340, in read + first_packet = self.connection._read_packet() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 987, in _read_packet + packet_header = self._read_bytes(4) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1033, in _read_bytes + CR.CR_SERVER_LOST, "Lost connection to MySQL server during query") +pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query') + + ++ |
+||||
region_grade_school.GetCities | +1 | +1 | +0 | +0 | +Detail | +
test_getCities_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt27.1: + ++ |
+||||
region_grade_school.GetCounties | +1 | +1 | +0 | +0 | +Detail | +
test_getCounties_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt28.1: + ++ |
+||||
region_grade_school.GetGrades | +1 | +1 | +0 | +0 | +Detail | +
test_getGrades_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt29.1: + ++ |
+||||
region_grade_school.GetProvince | +1 | +1 | +0 | +0 | +Detail | +
test_getProvince_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt30.1: + ++ |
+||||
region_grade_school.GetSchools | +1 | +1 | +0 | +0 | +Detail | +
test_getSchools_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt31.1: + ++ |
+||||
register.AddFeedBack | +1 | +0 | +0 | +1 | +Detail | +
test_AddFeedBack_success |
+
+
+
+
+ error
+
+
+
+
+
+
+
+ [x]
+
+ + +ft32.1: Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/register.py", line 213, in test_AddFeedBack_success + self.assertTrue(db_test.select_('acornuser.feedback', select) > 0, 'AddFeedBack data insert Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 856, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1057, in _read_query_result + result.read() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1340, in read + first_packet = self.connection._read_packet() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 987, in _read_packet + packet_header = self._read_bytes(4) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1033, in _read_bytes + CR.CR_SERVER_LOST, "Lost connection to MySQL server during query") +pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query') +Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/register.py", line 213, in test_AddFeedBack_success + self.assertTrue(db_test.select_('acornuser.feedback', select) > 0, 'AddFeedBack data insert Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 856, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1057, in _read_query_result + result.read() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1340, in read + first_packet = self.connection._read_packet() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 987, in _read_packet + packet_header = self._read_bytes(4) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1033, in _read_bytes + CR.CR_SERVER_LOST, "Lost connection to MySQL server during query") +pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query') + + ++ |
+||||
register.GetAuthCode | +1 | +1 | +0 | +0 | +Detail | +
test_getAuthCode_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt33.1: + ++ |
+||||
register.GetRecentVideo | +2 | +2 | +0 | +0 | +Detail | +
test_GetRecentVideo_noVideo_success |
+ pass | +||||
test_GetRecentVideo_success |
+ pass | +||||
register.PhoneUsedCheck | +2 | +2 | +0 | +0 | +Detail | +
test_phone_unused |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt35.1: + ++ |
+||||
test_phone_used |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt35.2: + ++ |
+||||
register.RegisterExtrainfoCheck | +2 | +2 | +0 | +0 | +Detail | +
test_checkRegisterExtrainfo_Complete_success |
+ pass | +||||
test_checkRegisterExtrainfo_inComplete_success |
+ pass | +||||
register.RegisterExtrainfoSubmit | +1 | +0 | +0 | +1 | +Detail | +
test_RegisterExtrainfoSubmit_success |
+
+
+
+
+ error
+
+
+
+
+
+
+
+ [x]
+
+ + +ft37.1: Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/register.py", line 143, in test_RegisterExtrainfoSubmit_success + self.assertEqual(db_test.select_('acornuser.acorn_user', where_1), 1, 'RegisterExtrainfoSubmit Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 855, in query + self._execute_command(COMMAND.COM_QUERY, sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1071, in _execute_command + raise err.InterfaceError("(0, '')") +pymysql.err.InterfaceError: (0, '') +Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/register.py", line 143, in test_RegisterExtrainfoSubmit_success + self.assertEqual(db_test.select_('acornuser.acorn_user', where_1), 1, 'RegisterExtrainfoSubmit Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 855, in query + self._execute_command(COMMAND.COM_QUERY, sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1071, in _execute_command + raise err.InterfaceError("(0, '')") +pymysql.err.InterfaceError: (0, '') + + ++ |
+||||
register.SignIn | +1 | +1 | +0 | +0 | +Detail | +
test_signIn_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt38.1: + ++ |
+||||
register.UpdateUserNameByUserId | +2 | +2 | +0 | +0 | +Detail | +
test_UpdateUserNameByUserId_phoneExists_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt39.1: + ++ |
+||||
test_UpdateUserNameByUserId_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt39.2: + ++ |
+||||
sub_account.AddSubAccount | +1 | +0 | +0 | +1 | +Detail | +
test_addSubAccount_success |
+
+
+
+
+ error
+
+
+
+
+
+
+
+ [x]
+
+ + +ft40.1: Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/sub_account.py", line 36, in test_addSubAccount_success + self.assertEqual(db_test.select_('acornuser.child_user', {'parent_id': Data.PARENT_ID}), 1, 'addSubAccount Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 856, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1057, in _read_query_result + result.read() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1340, in read + first_packet = self.connection._read_packet() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 987, in _read_packet + packet_header = self._read_bytes(4) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1033, in _read_bytes + CR.CR_SERVER_LOST, "Lost connection to MySQL server during query") +pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query') +Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/sub_account.py", line 36, in test_addSubAccount_success + self.assertEqual(db_test.select_('acornuser.child_user', {'parent_id': Data.PARENT_ID}), 1, 'addSubAccount Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 856, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1057, in _read_query_result + result.read() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1340, in read + first_packet = self.connection._read_packet() + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 987, in _read_packet + packet_header = self._read_bytes(4) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1033, in _read_bytes + CR.CR_SERVER_LOST, "Lost connection to MySQL server during query") +pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query') + + ++ |
+||||
sub_account.DelSubAccount | +1 | +0 | +0 | +1 | +Detail | +
test_delSubAccount_success |
+
+
+
+
+ error
+
+
+
+
+
+
+
+ [x]
+
+ + +ft41.1: Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/sub_account.py", line 76, in test_delSubAccount_success + self.assertEqual(db_test.select_('acornuser.child_user', {'subAccountId': self.subAccount}), 0, 'delSubAccount Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 855, in query + self._execute_command(COMMAND.COM_QUERY, sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1071, in _execute_command + raise err.InterfaceError("(0, '')") +pymysql.err.InterfaceError: (0, '') +Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/sub_account.py", line 76, in test_delSubAccount_success + self.assertEqual(db_test.select_('acornuser.child_user', {'subAccountId': self.subAccount}), 0, 'delSubAccount Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 855, in query + self._execute_command(COMMAND.COM_QUERY, sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1071, in _execute_command + raise err.InterfaceError("(0, '')") +pymysql.err.InterfaceError: (0, '') + + ++ |
+||||
sub_account.GetSubAccount | +1 | +1 | +0 | +0 | +Detail | +
test_getSubAccount_success |
+
+
+
+
+ pass
+
+
+
+
+
+
+
+ [x]
+
+ + +pt42.1: + ++ |
+||||
sub_account.SwitchAccounts | +2 | +0 | +0 | +2 | +Detail | +
test_swichToParentAccount_success |
+
+
+
+
+ error
+
+
+
+
+
+
+
+ [x]
+
+ + +ft43.1: Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/sub_account.py", line 112, in test_swichToParentAccount_success + self.assertEqual(db_test.select_('acornuser.acorn_user_status', where_data), 1, 'swichToParentAccount Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 855, in query + self._execute_command(COMMAND.COM_QUERY, sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1071, in _execute_command + raise err.InterfaceError("(0, '')") +pymysql.err.InterfaceError: (0, '') +Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/sub_account.py", line 112, in test_swichToParentAccount_success + self.assertEqual(db_test.select_('acornuser.acorn_user_status', where_data), 1, 'swichToParentAccount Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 855, in query + self._execute_command(COMMAND.COM_QUERY, sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1071, in _execute_command + raise err.InterfaceError("(0, '')") +pymysql.err.InterfaceError: (0, '') + + ++ |
+||||
test_swichToSubAccount_success |
+
+
+
+
+ error
+
+
+
+
+
+
+
+ [x]
+
+ + +ft43.2: Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/sub_account.py", line 99, in test_swichToSubAccount_success + self.assertEqual(db_test.select_('acornuser.child_user', where_data), 1, 'swichToSubAccount Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 855, in query + self._execute_command(COMMAND.COM_QUERY, sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1071, in _execute_command + raise err.InterfaceError("(0, '')") +pymysql.err.InterfaceError: (0, '') +Traceback (most recent call last): + File "/Users/shaozl/PycharmProjects/apiTest/test_cases/sub_account.py", line 99, in test_swichToSubAccount_success + self.assertEqual(db_test.select_('acornuser.child_user', where_data), 1, 'swichToSubAccount Error') + File "/Users/shaozl/PycharmProjects/apiTest/data_fixture/mysql_db.py", line 51, in select_ + cursor.execute(sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 166, in execute + result = self._query(query) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/cursors.py", line 322, in _query + conn.query(q) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 855, in query + self._execute_command(COMMAND.COM_QUERY, sql) + File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pymysql/connections.py", line 1071, in _execute_command + raise err.InterfaceError("(0, '')") +pymysql.err.InterfaceError: (0, '') + + ++ |
+||||
subject_sync.ClassNameVideo | +2 | +2 | +0 | +0 | +Detail | +
test_ClassNameVideo_noData |
+ pass | +||||
test_ClassNameVideo_success |
+ pass | +||||
subject_sync.ConsolidationExercise | +1 | +1 | +0 | +0 | +Detail | +
test_ConsolidationExercise_success |
+ pass | +||||
subject_sync.PointVideo | +2 | +2 | +0 | +0 | +Detail | +
test_PointVideo_noData |
+ pass | +||||
test_PointVideo_success |
+ pass | +||||
subject_sync.SubjectTest | +1 | +1 | +0 | +0 | +Detail | +
test_SubjectTest_success |
+ pass | +||||
Total | +72 | +64 | +1 | +7 | ++ |
Start Time: 2018-01-12 15:33:19
-Duration: 0:00:09.093848
+Start Time: 2018-01-15 17:44:45
+Duration: 0:00:12.495048
Status: Pass 1
diff --git a/run_test.py b/run_test.py index 2da3f28..210a8ed 100644 --- a/run_test.py +++ b/run_test.py @@ -12,15 +12,16 @@ from test_cases import parent_space from test_cases import app_record_statistic from test_cases import subject_sync + start_dir = './test_cases' suite_run = unittest.TestSuite() -#suite_run = unittest.defaultTestLoader.discover(start_dir=start_dir, pattern='subject_sync.py') +suite_run = unittest.defaultTestLoader.discover(start_dir=start_dir, pattern='*.py') -suite_run.addTest(app_record_statistic.AppRecordEveryday('test_getAppRecordEveryday_success')) +#suite_run.addTest(app_record_statistic.AppRecordEveryday('test_getAppRecordEveryday_success')) #suite_run.addTest(app_record_statistic.AppRecordReset('test_AppRecordReset_success')) -#suite_run.addTest(parent_space.ParentSpaceNewPassword('test_ParentSpaceNewPassword_success')) +#suite_run.addTest(parent_space.ParentSpaceChangePassword('test_ParentSpaceChangePassword_success')) #suite_run.addTest(parent_space.ParentSpaceNewPassword('test_ParentSpaceNewPassword_authCodeError')) runner = HTMLTestRunner.HTMLTestRunner(outputdir='report') diff --git a/test_cases/__pycache__/app_record_statistic.cpython-36.pyc b/test_cases/__pycache__/app_record_statistic.cpython-36.pyc index 6d088e0d6606a503cb50c0afe32d2a9df1c1d2e8..65bee461e16d2129e5aa3f10c03cec01c820df29 100644 GIT binary patch delta 1380 zcmah{+iMhO6yLL(ot?eR&g|?hS=VHD