Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 4|回復: 0

Users should be redirected to the

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 2023-12-26 19:15:05 | 顯示全部樓層 |閱讀模式
Configuration Options Output Empty Test Suite Results Login Page If they try to access the homepage without being logged in they will be redirected to the login page. Successful account creation will redirect you to the homepage. After successful login, you will be redirected to the homepage. Receive a warning if their login attempt is unsuccessful. Be aware if they try to register using an existing username. Be aware if they submit an empty form. Return to the login page when exiting. In this article you will Write tests for only some of these scenarios to keep the content to a manageable length. Specifically you will cover the following scenarios in this article.login page if they try to access the home page without being logged in. Successful account creation will redirect you to the homepage.

After successful login, you will be red photo editing servies irected to the homepage. Receive a warning if their login attempt is unsuccessful. Be aware if they submit an empty form. Note that these scenarios will cover all the major concepts we hope to convey in this article. We encourage you to try writing tests for other scenarios yourself too. Now that you have set specific goals, you will now start writing tests. Test Examples provides a vast library of helpers and tools that allow you to test your applications very intuitively. Take a look at the example test below for a hypothetical application that allows you to post messages to a forum. The above test verifies that when you post a message it automatically displays on the web page. To achieve this the test must follow the process that the user takes to achieve the desired result. More specifically the test must be logged in using a test account Submit the post Verify that the post is showing up on the web page You.



May have noticed that many steps such as logging in may end up being repeated many times. Especially in test suites that contain dozens or more tests that require logged in users. To avoid duplicating a set of instructions in each test you will utilize two concepts to group these instructions into reusable chunks. These are pages and fixtures. Pages First you will set up a page for your login page. This is essentially just a helper class that groups the various sets of interactions with the web page into individual member functions of the class. These functions will ultimately be used by the fixtures and the tests themselves. Create a new folder in that folder .


回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|GameHost抗攻擊論壇

GMT+8, 2025-4-29 18:05 , Processed in 0.096486 second(s), 18 queries .

抗攻擊 by GameHost X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |