xxxxxxxxxx
I.goTo("https://allblackshop.com/")
I.click("Accept")
I.hoverOn("Shop All")
I.click("Bags")
I.see("All Blacks Backpack")
I.click("Add To Cart")
I.click("Checkout")
//Fill in Address Details
I.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]")
//Choose Shipping option
I.select("Express")
I.wait(10)
//Fill In Credit Card Details
I.select("Credit Card")
UI.context("iframe[title='Secure card number input frame']",()=>{
I.fill("Card Number", "4242 4242 4242 4242")
})
UI.context("iframe[title='Secure expiration date input frame']",()=>{
I.fill("Expiry Date", "12/29")
})
UI.context("iframe[title='Secure CVC input frame']",()=>{
I.fill("Card Code", "123")
})
I.select("I have read and agree to the website")
I.click("Place Order")
I.see("The card was declined.")
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 (25s)
1.
[start of test]
2.
I go to "https://allblackshop.com/"
3.6s
3.
I click "Accept"
4.
I hover on "Shop All"
0.5s
5.
I click "Bags"
6.
I see "All Blacks Backpack"
0.1s
7.
I click "Add To Cart"
8.
I click "Checkout"
9.
I fill "First Name": "John"
0.5s
10.
I fill "Last Name": "Kent"
0.4s
11.
I fill "House Number": "12345"
0.4s
12.
I fill "Town / City": "Sample Town"
0.8s
13.
I fill "Postcode": "12345"
0.4s
14.
I fill "Phone": "123456789"
0.6s
16.
I select "Express"
0.2s
17.
I wait for 10s
10.0s
18.
I select "Credit Card"
0.1s
19.
I fill "Card Number": "4242 4242 4242 4242"
2.4s
20.
I fill "Expiry Date": "12/29"
2.0s
21.
I fill "Card Code": "123"
1.9s
22.
I select "I have read and agree to the website"
0.1s
23.
I click "Place Order"
24.
I see "The card was declined."
0.1s
25.
[end of test]