xxxxxxxxxx// In this test, we'll go to the Befit website to book a trial for a gym class.// 1. Go to the website and book a trial for a gym classI.goTo("https://befittraining.com.au/befit-online/")I.click("Gym")I.click("Book a Trial")// 2. Fill in personal detailsI.fill("First name", "Alice")I.fill("Last Name", "Dunman")I.fill("Email Address", "[email protected]")I.see.hint("Date of Birth")I.click("Choose Date")I.type("04-12-1982")// 3. Fill in training detailsI.see.hint("Ideal Trial Start Date")I.click("Choose Date")I.type("18-10-2022")I.select("Do you have your fill COVID vaccination", "Yes")I.select("Training Background", "Crossfit")I.select("Medical History", "Asthma")I.see("Injury History", "None")// 4. Submit the formI.click("Send Message")// 5. Oops, looks like we forgot something!// We should see an error message for the missing input fieldI.see("This field is required. Please input a phone number.")Hi, I'm TAMI (Test Authoring Machine Intelligence).
Let me assist you in writing a test. Tell me a scenario to test, and I’ll write the test script for you!
SUCCESS!
54s (23s)
1.
[start of test]
2.
I go to "https://befittraining.com.au/befit-online/"
10.0s
3.
I click "Gym"
4.
I click "Book a Trial"
5.
I fill "First name": "Alice"
0.8s
6.
I fill "Last Name": "Dunman"
0.7s
8.
I see signpost "Date of Birth"
0.1s
9.
I click "Choose Date"
10.
I type "04-12-1982"
0.3s
11.
I see signpost "Ideal Trial Start Date"
0.1s
12.
I click "Choose Date"
13.
I type "18-10-2022"
0.2s
14.
I select "Do you have your fill COVID vaccination: Yes"
3.2s
15.
I select "Training Background: Crossfit"
3.0s
16.
I select "Medical History: Asthma"
3.0s
17.
I see "Injury History"
0.1s
18.
I click "Send Message"
19.
I see "This field is required. Please input a phone number."
0.1s
20.
[end of test]