tailieunhanh - Effective GUI Test Automation Developing an Automated GUI Testing Tool phần 9

Kể từ khi xác minh xảy ra sau khi thực hiện kiểm tra, sửa đổi, bổ sung của lớp AutomateGUITest và lớp GUITestDataCollector chuẩn bị thông tin cơ bản để xác minh. Việc xác minh cuối cùng xảy ra trong lớp GUITestScript. | Summary 351 FIGURE The appearance of the GUITestDataCollector form when collecting data to test a TextBox control 5. Go back to the testing tool interface. Repeat step 4 to locate and add the Add and Copy button clicks into the testing data store but leave the Text Entry field empty. Click the OK button. 6. Close the C API Text Viewer application. Click the Run Test button from the testing tool. When the save file dialog box appears navigate to a folder and type a filename for the data store such as C Temp . Click the Save button. The first execution of this testing case will be completed in a few seconds and the test result appears. From the result you can see that the C marshaling code for the Win32 AccessCheckAnd-AuditAlarm function is copied into the clipboard. The testing tool performed the testing task as expected and the test passes. Summary In the previous chapters the AutomatedGUITest tool was enabled to generate inputs from mouse actions. This chapter used the SendKeys class of the namespace of the .NET Framework to generate keystrokes for GUI testing. The chapter included an example that showed how to store text input and enable the tool to test a TextBox control. You can also use the AutomatedGUITest tool to test a shortcut for triggering a GUI event with a set of keystrokes. Chapter II Testing RadioButton and CheckBox .

TỪ KHÓA LIÊN QUAN