Slide 31
Slide 31 text
Navigate to URL https://hotel.testplanisphere.dev/en-US/signup.html
// Log out once if being logged in
If UI element "Logout" button is visible
Click "Logout" button
Navigate to URL https://hotel.testplanisphere.dev/en-US/signup.html
End branch
// Sing up by using an unique email address
Store unique value generated based on the current time to variable UNIQUE_KEY
Input test-user${UNIQUE_KEY}@example.com to "Email" input area
Input ${PASSWORD} to "Password" input area
Input ${PASSWORD} to "Password(confirmation)" input area
Input Test user to "Name" input area
Input Tokyo, Japan to "Address" input area
Input 00011122233 to "Tel" input area
Select I do not answer. from "Gender" combo box
Input 2000-07-04 to "Date of birth" input area
Check "Receive notification" checkbox
Click "Sign up" button
// Assert values set on the previous page are correctly displayed
Assert value of UI element Email value equals test-user${UNIQUE_KEY}@example.com
Assert value of UI element Name value equals Test user
Assert value of UI element Membership value equals Premium
Assert value of UI element Address value equals Tokyo, Japan
Assert value of UI element Tel value equals 00011122233
Assert value of UI element Gender value equals not answered
Assert value of UI element Date of birth value equals July 4, 2000
Assert value of UI element Notification value equals received
// Confirm that the user is successfully created and log-in by the user succeeds
Click "Logout" button
Click Login
Input test-user${UNIQUE_KEY}@example.com to "Email" input area
Input ${PASSWORD} to "Password" input area
Click "Login" button
Assert UI element "MyPage" header exists
Updated the script by modifying the
user's name, address, and telephone
number inputs to use new values for
improved clarity and specificity in test
data.
3. Use of Generative AI -
②Generate change comments
Experiment
Human-readable text (old)
Test script (old)
change comment
Generative AI
Test script (new)
Navigate to URL https://hotel.testplanisphere.dev/en-US/signup.html
// Log out once if being logged in
If UI element "Logout" button is visible
Click "Logout" button
Navigate to URL https://hotel.testplanisphere.dev/en-US/signup.html
End branch
// Sing up by using an unique email address
Store unique value generated based on the current time to variable UNIQUE_KEY
Input test-user${UNIQUE_KEY}@example.com to "Email" input area
Input ${PASSWORD} to "Password" input area
Input ${PASSWORD} to "Password(confirmation)" input area
Input Test user to "Name" input area
Input Tokyo, Japan to "Address" input area
Input 00011122233 to "Tel" input area
Select I do not answer. from "Gender" combo box
Input 2000-07-04 to "Date of birth" input area
Check "Receive notification" checkbox
Click "Sign up" button
// Assert values set on the previous page are correctly displayed
Assert value of UI element Email value equals test-user${UNIQUE_KEY}@example.com
Assert value of UI element Name value equals Test user
Assert value of UI element Membership value equals Premium
Assert value of UI element Address value equals Tokyo, Japan
Assert value of UI element Tel value equals 00011122233
Assert value of UI element Gender value equals not answered
Assert value of UI element Date of birth value equals July 4, 2000
Assert value of UI element Notification value equals received
// Confirm that the user is successfully created and log-in by the user succeeds
Click "Logout" button
Click Login
Input test-user${UNIQUE_KEY}@example.com to "Email" input area
Input ${PASSWORD} to "Password" input area
Click "Login" button
Assert UI element "MyPage" header exists
Human-readable text (new)