xxxxxxxxxxI.goTo("https://shop.bjork.com/")I.click("Accept All")I.click("Browse the Store")I.see("Björk – Inez + Vinoodh – Volta Prints")I.click("Select Options")I.click("Complete Bundle")I.click("Add to Cart")I.see("“Björk – Inez + Vinoodh – Volta Prints” has been added to your cart.")//Go To CartI.click("View Cart")I.select("DPD")I.click("Proceed to Checkout")//Fill in Address DetailsI.fill("First Name", "John")I.fill("Last Name", "Kent")I.fill("House Number", "12345")I.fill("Town / City", "Sample Town")I.fill("Postcode", "12345")I.fill("Phone", "123456789")I.fill("Email", "[email protected]")//Fill In Credit Card DetailsI.select("Credit Cards")UI.context("//*[@id='ppcp-credit-card-gateway-card-number']//iframe",()=>{ I.fill("Card Number", "4242 4242 4242 4242")})UI.context("//*[@id='ppcp-credit-card-gateway-card-expiry']//iframe",()=>{ I.fill("Expiry", "12/29")})UI.context("//*[@id='ppcp-credit-card-gateway-card-cvc']//iframe",()=>{ I.fill("CVV", "123")})I.select("I have read and agree to the website")I.click("Place Order")I.wait(10)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!
56s (22s)
1.
[start of test]
2.
I go to "https://shop.bjork.com/"
3.3s
3.
I click "Accept All"
4.
I click "Browse the Store"
5.
I see "Björk – Inez + Vinoodh – Volta Prints"
0.1s
6.
I click "Select Options"
7.
I click "Complete Bundle"
8.
I click "Add to Cart"
9.
I see "“Björk – Inez + Vinoodh – Volta Prints” has been added to your cart."
0.2s
10.
I click "View Cart"
11.
I select "DPD"
0.2s
12.
I click "Proceed to Checkout"
13.
I fill "First Name": "John"
0.6s
14.
I fill "Last Name": "Kent"
0.4s
15.
I fill "House Number": "12345"
0.4s
16.
I fill "Town / City": "Sample Town"
0.6s
17.
I fill "Postcode": "12345"
0.4s
18.
I fill "Phone": "123456789"
0.6s
20.
I select "Credit Cards"
0.2s
21.
I fill "Card Number": "4242 4242 4242 4242"
1.4s
22.
I fill "Expiry": "12/29"
0.9s
23.
I fill "CVV": "123"
0.8s
24.
I select "I have read and agree to the website"
0.1s
25.
I click "Place Order"
26.
I wait for 10s
10.0s
27.
I see "Payer cannot pay for this transaction."
0.1s
28.
[end of test]