Experimental report of Hubei Institute of automotive industry
Experiment 4 Automated test tools
* Complete the utilization according to the above experimental steps Junit yes Calculator Class test process , Test exceptions , The screenshots of the running results of the parameterized test and other test methods are guaranteed as follows .
2. use QTP yes Windows in “ Calculator ” Conduct tests ,“ Calculator ” The main operation step is to start the calculator , adopt “ see ” Menu selection “ Scientific type ”, calculation 90 Degree Sin value , A screenshot of the recorded script is shown below .
Recording scripts
Window(" Calculator ").WinButton("Button").Click
Window(" Calculator ").WinButton("Button_2").Click
Window(" Calculator ").WinButton("Button_3").Click
Window(" Calculator ").WinButton("Button_4").Click
Window(" Calculator ").Close
test Result Result screenshot
Modify script , Add two addends , Operator parameterization
1. Recording scripts
Window(" Calculator ").WinButton("Button").Click
Window(" Calculator ").WinButton("Button_2").Click
Window(" Calculator ").WinButton("Button_3").Click
Window(" Calculator ").WinButton("Button_4").Click
Window(" Calculator ").Close
2. Parameterize data sources
3. Manually select the modify key
4. Modifying data through scripts
5. Output results
6. test Result Result screenshot
Insert checklist
Recording scripts
Window(" Calculator ").WinButton("Button").Click
Window(" Calculator ").WinButton("Button_2").Click
Window(" Calculator ").WinButton("Button_3").Click
Window(" Calculator ").WinButton("Button_4").Click
Window(" Calculator ").WinButton("Button_4").Check CheckPoint("Button_4")
Window(" Calculator ").Close
test Result Result screenshot
3. The harvest and experience of this experiment .
Testing will exist throughout the project cycle , That is, it starts when various analysis and research are required at the beginning of the project . Especially when the requirements specification is formed, there are test requirements for the document , Even lead the trend of the whole project . The influence of software testing on logical thinking , learning ability , High response requirements , Whether there is strict thinking and reverse thinking is also very important . The test also takes into account the possibility of all errors , Sometimes some unconventional test methods are used .
Technology
Daily Recommendation