xxxxxxxxxx//Check if any error will appear due to invalid card details//Navigate to websiteI.goTo("https://www.etsy.com/")//Accept CookiesI.click("Accept")//Search for an item to purchaseI.fill("Search", "Puka Shell")I.pressEnter()I.click("Padangbai Puka Shell")//Check for error if color is not chosenI.click("Add to basket")I.see("Please select a colour")//Select color and quantity then add to basket I.select("Primary Colour", "Earth Tone")I.select("Quantity", "3")I.click("Add to basket")//Try Adding Invalid Coupon CodeI.click("Apply shop coupon codes")I.fill("Enter coupon code", "Sample Coupon")I.click("Apply")//Check for errorsI.see("That coupon code is invalid")//Proceed to CheckoutI.click("Proceed to checkout")I.click("Continue as a guest")//Fill in contact information and delivery addressI.fill("Email", "[email protected]")I.fill("Confirm Email", "[email protected]")I.select("Country", "Singapore")I.fill("Full Name", "John Kent")I.fill("Street Address", "Bukit Batok")I.fill("City", "Singapore")I.fill("Postal Code", "546080")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!
1m 2s (14s)
1.
[start of test]
2.
I go to "https://www.etsy.com/"
2.3s
3.
I click "Accept"
4.
I fill "Search": "Puka Shell"
0.9s
5.
I press "Enter"
1.2s
6.
I click "Padangbai Puka Shell"
7.
I click "Add to basket"
8.
I see "Please select a colour"
0.2s
9.
I select "Primary Colour: Earth Tone"
1.0s
10.
I select "Quantity: 3"
0.2s
11.
I click "Add to basket"
12.
I click "Apply shop coupon codes"
13.
I fill "Enter coupon code": "Sample Coupon"
0.8s
14.
I click "Apply"
15.
I see "That coupon code is invalid"
0.1s
16.
I click "Proceed to checkout"
17.
I click "Continue as a guest"
20.
I select "Country: Singapore"
0.2s
21.
I fill "Full Name": "John Kent"
0.6s
22.
I fill "Street Address": "Bukit Batok"
0.6s
23.
I fill "City": "Singapore"
0.6s
24.
I fill "Postal Code": "546080"
0.5s
25.
I click "Continue to payment"
26.
I click "Close"
27.
I click "Card"
28.
I fill "Name on card": "John Kent"
0.7s
29.
I fill "Card Number": "4242 4242 4242 4242"
1.0s
30.
I select "card[exp_mon]: 12"
0.2s
31.
I select "card[exp_year]: 2029"
0.2s
32.
I fill "Security Code": "123"
0.4s
33.
I click "Review your order"
34.
I see "Sorry, there was an error. Please try again."
0.1s
35.
[end of test]