TAILIEUCHUNG - Java Development with Ant phần 6

và hành vi này phụ thuộc vào giá trị của các tập tin mở rộng của URL từ xa. Điều này đôi khi có vấn đề khi cố gắng để kiểm tra cài đặt trang JSP. Thậm chí còn có quirks khác của lớp mà có thể bạn sẽ không gặp phải khi sử dụng nhiệm vụ này. Những vấn đề này đã ngừng các đội Ant phát hành một khuôn khổ | going to write a few simple WebTest steps. The pages we will walk through are shown in figures through . Figure Login page of our example web application Figure The search page of our web application. Note the powerful Google-like expression that is used for searching Ant s documentation. Figure The results page of our web application As mentioned in section writing HttpUnit tests is a low-level exercise and likely involves rework and recompilation when site navigation changes. WebTest provides a higher-level way to describe functional web tests. Listing shows our build file to test these three pages. Listing WebTest example build file DOCTYPE project ENTITY properties SYSTEM file . project name canoo default main properties taskdef name testSpec classname Testing web applications with HttpUnit 307 classpath fileset dir includes .jar classpath taskdef A Defines the WebTest task property name location build canoo property name location xdocs stylesheets property name value antbook property name value 8080 property name value localhost property name value erik property name value hatcher property name query value http AND wait -title API property name expected value WaitFor Task target name init mkdir dir target Defines default query and expected result target name clean delete dir target target name main testSpec name test our site ----- Begins testing steps config host port protocol http basepath summary true verbose false saveresponse true resultpath haltonerror true haltonfailure true steps invoke stepid go to login page url setinputfield stepid set user name name username value setinputfield stepid set password name password value clickbutton stepid login name .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.