Effective GUI Test Automation Developing an Automated GUI Testing Tool phần 3

và quản lý kiểm tra hồi quy có hiệu quả bằng cách tái sử dụng thư viện kịch bản. Ngoài ra, xét nghiệm có thể sử dụng những công cụ này giúp học tập. Xét nghiệm có thể sử dụng các công cụ để tìm hiểu các thuộc tính của các thành phần giao diện khác nhau và tìm hiểu làm thế nào để hoạt động các thành phần giao diện lập trình | C API Text Viewer 75 Now you have prepared all the pieces for the C API Text Viewer. The last thing to do is display the converted C definitions stored in the definition lists. To do this you will program the Windows form and make a user-friendly GUI. GUI of the C API Text Viewer When you started the CSharpTextViewer project the Microsoft Visual Studio .NET IDE created a Windows form with a default name Forml. The code for this form is saved as . Open the Solution Explorer rename the file and keep the rest intact. Then add the GUI components onto the form as they are described in the following list just change the values of the listed properties and accept the default values of the other properties Control Property Value MainMenu Name mnuMainAPI OpenFileDialog Name opnFileDialog Label Text API Type Label Text Type the first few letters of the function name you look for Label Text Available functions Label Text Selected functions ComboBox Name cmbAPITypes TextBox Name txtLookfor Text Look for functions ListBox Name lstAvailableFuncs RichTextBox Name txtSelected Text Selected functions Button Name btnAdd Text Add Button Name btnRemove Text Remove Button Name btnClear Text Clear Button Name btnCopy Text Copy 76 Chapter 3 C Win32 API Programming and Test Monkeys Control Property Value GroupBox Name grpScope RadioButton Name rdPublic Text public RadioButton Name rdPrivate Text private Follow these steps to make a File menu and a Help menu. 1. Select the mnuMainAPI GUI object at the bottom below the form. The menu object on the top of the form displays a gray string Type Here. 2. Type File to replace the words Type Here. The word File appears on the main menu. Select the File menu and its Name property. Set its name to mnuFile. 3. Type Help as in step 2 to make its Name property mnuHelp. 4. Select the File menu. Replace the words Type Here with Open to create a submenu under the File menu. Set its Name property to mnuFileOpen. 5. Type a hyphen

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.