ShopTeacherService_addTeacher_caseID_001: !!com.alipay.test.acts.model.PrepareData
args:
description: null
inputArgs:
- description: teacher
flags:
com.diantaoke.shop.school.base.api.domain.vo.ShopTeacherVO: {birthday: Y}
nodeDesc: null
nodeGroup: null
objBaseDesc: teacher
objBaseName: ShopTeacherVO
objClass: com.diantaoke.shop.school.base.api.domain.vo.ShopTeacherVO
object: !!com.diantaoke.shop.school.base.api.domain.vo.ShopTeacherVO {birthday: 1473230397944,
createTime: 1536049910000, idcardNum: null, instId: -1, introduction: test_introduction,
name: test, phone: '180xx24xx01', photoUrl: 'http://pic.xxxx.com/1fffff.gif',
sex: 1, sorts: !!java.math.BigDecimal '1', summary: test_summary, teacherId: 1,
teacherStatus: 1, updateTime: 1536049910000}
depDataSet:
description: null
virtualTables: []
description: 新增ShopTeacherService_addTeacher_TemplateCase
expectDataSet:
description: null
virtualTables:
- dataObjClazz: null
flags: {teacher_id: C, inst_id: Y, name: Y, phone: Y, sex: Y, birthday: Y, summary: Y,
teacher_status: Y, idcard_num: Y, photo_url: Y, introduction: N, sorts: N,
create_time: Y, update_time: Y}
nodeDesc: null
nodeGroup: null
tableBaseDesc: t_shop_teacher
tableData:
- {teacher_id: '1', inst_id: '-1', name: test, phone: '180xx24xx01', sex: '1',
birthday: '1473230397944', summary: test_summary, teacher_status: '1', idcard_num: '',
photo_url: 'http://pic.xxxx.com/1fffff.gif',
introduction: test_introduction, sorts: '1', create_time: '1536049910000',
update_time: '1536049910000'}
tableName: t_shop_teacher
expectEventSet:
description: null
virtualEventObjects: []
expectException:
description: null
exceptionClass: null
expectException:
description: null
flags: {}
nodeDesc: null
nodeGroup: null
objBaseDesc: null
objBaseName: null
objClass: null
object: null
expectExceptionObject: null
expectResult:
description: null
result:
description: null
flags: {}
nodeDesc: null
nodeGroup: null
objBaseDesc: null
objBaseName: null
objClass: java.lang.Long
object: 1
resultClazz: java.lang.Long
virtualParams:
description: null
params: {}
2019-03-22 10:26:15,197] [] [INFO ] main <c.a.t.a.c.h.TestUnitHandler> -Checking DB, tables checked(TestUnitHandler.java:checkExpectDbData:240)
[2019-03-22 10:26:15,197] [] [INFO ] main <c.a.t.a.c.h.TestUnitHandler> -t_shop_teacher(TestUnitHandler.java:checkExpectDbData:246)
[2019-03-22 10:26:15,225] [] [INFO ] main <c.a.t.a.c.d.DBDatasProcessor> -Executing sql:select teacher_id as teacher_id,inst_id as inst_id,name as name,phone as phone,sex as sex,birthday as birthday,summary as summary,teacher_status as teacher_status,idcard_num as idcard_num,photo_url as photo_url,introduction as introduction,sorts as sorts,create_time as create_time,update_time as update_time from t_shop_teacher where (teacher_id = ? ) ,parameters:1,(DBDatasProcessor.java:doSelectAndCompare:562)
[2019-03-22 10:26:15,232] [] [INFO ] main <c.a.t.a.c.d.DBDatasProcessor> -The comparison of the db fields is successful, table:t_shop_teacher ,key:teacher_id ,value is 1 expect vaule is 1(DBDatasProcessor.java:doSelectAndCompare:788)
.......
[2019-03-22 10:26:15,242] [] [INFO ] main <c.a.t.a.c.h.TestUnitHandler> -Checking Events(TestUnitHandler.java:checkExpectEvent:298)
[2019-03-22 10:26:15,243] [] [INFO ] main <c.a.t.a.c.h.TestUnitHandler> -Skip event check in rpc mode(TestUnitHandler.java:checkExpectEvent:379)
[2019-03-22 10:26:15,243] [] [INFO ] main <c.a.t.a.c.h.TestUnitHandler> -Checking invocation result:(DetailCollectUtils.java:appendAndLog:52)
[2019-03-22 10:26:15,243] [] [INFO ] main <c.a.t.a.c.h.TestUnitHandler> -
expect:1
actual:1(TestUnitHandler.java:checkExpectResult:275)
[2019-03-22 10:26:15,244] [] [INFO ] main <c.a.t.a.u.ObjectCompareUtil> -
expect:1
actual:1(DetailCollectUtils.java:appendAndLog:52)
[2019-03-22 10:26:15,249] [] [INFO ] main <acts-sql-logger> -Finish acts_caseId=ShopTeacherService_addTeacher_caseID_001(ActsTestBase.java:process:433)
........
java.lang.AssertionError:
check failed, actual value:1
Expected value:1
Expected :true
Actual :false
<Click to see difference>
at org.testng.Assert.fail(Assert.java:89)
at org.testng.Assert.failNotEquals(Assert.java:489)
at org.testng.Assert.assertTrue(Assert.java:37)
at com.alipay.test.acts.utils.ObjectCompareUtil.compare(ObjectCompareUtil.java:61)
at com.alipay.test.acts.component.handler.TestUnitHandler.checkExpectResult(TestUnitHandler.java:281)
at com.alipay.test.acts.template.ActsTestBase.check(ActsTestBase.java:531)
at com.alipay.test.acts.template.ActsTestBase.process(ActsTestBase.java:418)