TAILIEUCHUNG - Effective GUI Test Automation Developing an Automated GUI Testing Tool phần 4

Các công cụ kiểm tra cũng đã khai thác thử nghiệm để quản lý các kịch bản thử nghiệm tự động. Xét nghiệm có thể sử dụng khai thác có sẵn lịch trình hành quyết kiểm tra 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. | Building a Dynamic Linking Library for GUI Testing 121 The GetGUIInfoType helper method returns a value of the GUIInfoType enumeration based on the known combination of the window text the class name and the parent window s text. The recognition of such a combination is achieved by a set of if-else statements. As we have discussed the last return statement assumes the window text is passed if no other variables are known. Subsequently it calls one more helper method ResetGUIInfo . The ResetGUIInfo method is coded as in Listing . Listing Code for the ResetGUIInfo Helper Method private static void ResetGUIInfo GUIInfoType guiInfoType int hwnd ref int hWndTarget ref string windowText ref string className ref string parentText StringBuilder sWindowText StringBuilder sClassname StringBuilder sParentText string clsStartedWith if . 0 clsStartedWith . . .Length-1 n else clsStartedWith className if guiInfoType if windowText hWndTarget hwnd className parentText else if guiInfoType if windowText .StartsWith clsStartedWith hWndTarget hwnd parentText else if guiInfoType if windowText parentText 122 Chapter 4 Developing a GUI Test Library hWndTarget hwnd className else if guiInfoType if windowText .StartsWith clsStartedWith parentText hWndTarget hwnd else if guiInfoType _ if .StartsWith clsStartedWith parentText hWndTarget hwnd windowText The first if statement of the ResetGUIInfo truncates the last part of the given class name and assigns the result to a clsStartedWith .

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
170    252    4    29-03-2024
46    179    0    29-03-2024
15    174    0    29-03-2024
23    147    0    29-03-2024
37    128    0    29-03-2024
5    118    0    29-03-2024
5    114    0    29-03-2024
Đã 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.