[ ]
[ ] // change stu2
[ ] stu2.iAge = 20
[ ] stu2.sName = "Jane"
[ ] stu2.sSex = "Female"
[ ]
[ ] // initialize stu3 from stu2
[ ] stu2.getStudent(stu3)
[ ] // pirnt stu3 data members
[ ] stu3.printInfo()
接下来是我的电脑上的运行结果
view plaincopy to clipboardprint?
01.[-] Testcase TestStudent - Passed
02. [ ] *** DefaultBaseState is setting TestApplication active, No window was active
03. [ ] 18
04. [ ] Mike
05. [ ] Male
06. [ ] ------------------------
07. [ ] 18
08. [ ] Mike
09. [ ] Male
10. [ ] ------------------------
11. [ ] Female student Jane is 20 years old
文章来源于领测软件测试网 https://www.ltesting.net/