First, increase user authentication
1. Add only one authenticated User: Java-jar fitnesse.jar-a username:password
2. Add multiple Authenticated Users (clear text password)
2.1 Create a new Password.txt text file, and set the contents of the file as follows:
tom:12345
jack:1234
2.2 Run command: Java-jar fitnesse.jar-a password.txt
3. Add multiple Authenticated Users (hashing password)
3.1 After executing the following command, it is indicated that an authenticated user store file named Password.txt is added, an authenticated user named Simon is added to the authentication file, and a prompt will be prompted to enter the corresponding user (Tom) password.
E:\AUTOMATION>JAVA-CP Fitnesse.jar fitnesse.authentication.password-f password.txt-c Fitnesse.authentication.HashingCipher Tom
3.2 Repeat 3.1 can add multiple authenticated users to the authentication file Password.txt
3.3 Run command: Java-jar fitnesse.jar-a password.txt
Second, set up the need to certify the page
Tools-Properties-Security
Secure-read = Authenticated Users can read the page
Secure-write = Only Authenticated Users can write the page.
Secure-test = Only Authenticated users can test the page.
FitNesse Page Add Certification