xxxxxxxxxx
I.goTo("https://www.paulsmith.com/uk")
I.click("Accept All")
I.click("Stripe")
I.click("Stripe")
I.see("Signature Stripe")
I.click("For Him")
I.see("Signature Stripe For Him")
I.click("Wool Sweater")
I.click("Add To Bag")
I.click("L")
I.click("Review bag & Checkout")
I.click("Checkout")
//Fill in needed details and choose desired options
I.fill("Email", "[email protected]")
I.click("Standard Delivery")
I.fill("First Name", "John")
I.fill("Last Name", "Kent")
I.fill("Address Line 1", "Sample Address")
I.fill("City", "Birmingham")
I.fill("Post Code", "A12 3BC")
I.fill("Phone Number", "123456789")
I.click("Go To Payment")
//Choose Payment and fill needed details
I.click("Debit/Credit Card")
UI.context("iframe[title='Iframe for secured card number']", ()=>{
I.fill("Card number field", "4242 4242 4242 4242")
})
UI.context("iframe[title='Iframe for secured card expiry date']", ()=>{
I.fill("Expiry date field", "12/29")
})
UI.context("iframe[title='Iframe for secured card security code']", ()=>{
I.fill("Security code field", "123")
})
I.fill("Name on card", "John Kent")
I.click("Place Order & Pay")
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 41s (36s)
1.
[start of test]
2.
I go to "https://www.paulsmith.com/uk"
3.7s
3.
I click "Accept All"
4.
I click "Stripe"
5.
I click "Stripe"
6.
I see "Signature Stripe"
0.2s
7.
I click "For Him"
8.
I see "Signature Stripe For Him"
0.3s
9.
I click "Wool Sweater"
10.
I click "Add To Bag"
11.
I click "L"
12.
I click "Review bag & Checkout"
13.
I click "Checkout"
15.
I click "Standard Delivery"
16.
I fill "First Name": "John"
0.4s
17.
I fill "Last Name": "Kent"
0.4s
18.
I fill "Address Line 1": "Sample Address"
1.0s
19.
I fill "City": "Birmingham"
0.8s
20.
I fill "Post Code": "A12 3BC"
0.7s
21.
I fill "Phone Number": "123456789"
0.8s
22.
I click "Go To Payment"
23.
I click "Debit/Credit Card"
24.
I fill "Card number field": "4242 4242 4242 4242"
1.8s
25.
I fill "Expiry date field": "12/29"
1.1s
26.
I fill "Security code field": "123"
0.9s
27.
I fill "Name on card": "John Kent"
13.9s
28.
I click "Place Order & Pay"
29.
I wait for 5s
5.0s
30.
I see "Refused"
0.1s
31.
[end of test]