|
The file add the following variables to provide the key that the authentication service uses to encrypt your password. In practical applications this value should be replaced by a long random string containing numeric and alphabetic characters. Contains database. s position. View the repository As mentioned above, unlike the previous parts of this series, the repository you will use in this article is one that contains two separate applications. Below is the folder structure of the project. The folder contains its integration and unit tests. This project is the same one used in the previous part of this series. This folder contains a new front-end application. The application has been completed for this series and will not be modified. as in previous articles in this series. Contains this file and contains scripts to help run and set up the test environment.
The remaining files are where the package confi photo editing servies guration container and workspace are defined. If you look at the login page you will see the following in that section Login Page 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. Users should be redirected .
To the 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 redirected 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 .
|
|