Đang chuẩn bị liên kết để tải về tài liệu:
Effective GUI Test Automation Developing an Automated GUI Testing Tool phần 5
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Lệnh này phải được nhập trên một dòng, sau đó nhấn phím Enter. Các loại và các thành viên # C Tiêu đề API Viewer được tạo ra trong Chương 3 được hiển thị. Trong dự án này, bạn đã học được làm thế nào để thao tác các bộ sưu tập các vòng lặp foreach, phương pháp của lớp Type và không gian tên Reflection. | Late Binding 167 This command must be entered on one line then press the Enter key. The types and members of the C API Text Viewer created in Chapter 3 are displayed. In this project you have learned how to manipulate collections by foreach loops methods of the Type class and Reflection namespace. You are ready for using late binding and accomplishing more advanced tasks. NOTE The Microsoft Visual Studio .NET IDE comes with an ILDasm.exe utility ILD stands for Intermediate Language Disassembler . This utility uses a GUI front end to enable you to load up any .NET assembly EXE or DLL and investigate the associated manifest Intermediate Language IL instruction set and type metadata. You can start the ILDasm by opening a Visual Studio .NET command prompt and typing the ILDasm.exe command. Then choose File Open to navigate to the application you wish to explore. You can find the same information the example project in this section reveals. FIGURE 5.5 The first part of the types and members of the GUITestLibrary discovered by reflection C GUISourceCode Chapter05 GUrTestDiscovery bin Debug GU. BSD GUI TestLibrary Uersion l.0.1558.39640 Culture-neutral PublicKeyToken null has A the following types POINTAPI has the following nenbers X y . GetHashCode Equals ToString GetType RECT has the following ne Fibers Left Top Right Botton GetHashCode Equals ToString GetType ionkeyButtons has the following members value btcLeft btcRight btgWhlel ToString GetTypeCode ToString Conpareio GetHashCode Equals Late Binding With the assistance of the System.Type class and the System.Reflection namespace using the late binding technique can enable a program to resolve the existence of the functionality at runtime rather than at compile time . With regard to a given application once the presence of a type has been determined you can code a program to dynamically invoke any of the methods access properties and manipulate the fields. Thus at runtime the System.Reflection namespace discovers .