TAILIEUCHUNG - Extreme Programming in Perl Robert Nagler phần 5

Tham khảo tài liệu 'extreme programming in perl robert nagler phần 5', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | implement the functions on demand for the customer. The functions are responsible for checking the computer s role in the script. For example this test script states that the user clicks on the Dogs link on the home page. If the Dogs link is missing from the home page or spelled incorrectly the follow_link action stops and indicates that the test script has failed. This approach is called fast fail and makes it easy to write and maintain test scripts. In keeping with the movie script analogy it s like when the director sees computer screwing up its lines and yells cut . Everybody stops. The director corrects what s wrong and the actors start over again. The next section tests the search facility. We should be able to find our dog by searching for corgi CORGI and dogs wales. We aren t particularly interested in Corgis7 rather our goal is to test that the search mechanism is case-insensitive and supports multiple words. And most importantly the list of search results allows the buyer to place found animals in their cart easily. Shoppers should be given an opportunity to buy what they find. Group Multiple Paths . GROUP MULTIPLE PATHS The previous example demonstrated testing multiple paths that is different ways of doing the same thing. In one case we searched for a Female Puppy Corgi hierarchically and then we used the search box to find the same dog using different keywords. Here is another example that demonstrates multiple paths test_setup PetShop home_page follow_link Reptiles follow_link Rattlesnake add_to_cart Rattleless Rattlesnake remove_from_cart Rattleless Rattlesnake search_for Angelfish add_to_cart Large Angelfish update_cart Large Angelfish 0 7 Or other high-energy small dogs. Copyright 2004 Robert Nagler All rights reserved nagler@ 60 This example tests the two ways you can remove animals from the cart. remove_from_cart uses a button labeled Remove to delete the item from the cart. update_cart allows buyers to change the quantity .

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.