Skip to content

Instantly share code, notes, and snippets.

@RabeaWahab
Created February 11, 2015 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RabeaWahab/e2ed97133d2afbdc7d8e to your computer and use it in GitHub Desktop.
Save RabeaWahab/e2ed97133d2afbdc7d8e to your computer and use it in GitHub Desktop.
{
"tests": [
{
"id": "test2",
"name": "EXAMPLE.com HomePage",
"browser": "PhantomJS",
"status": true,
"passedAssertions": 5,
"failedAssertions": 0,
"actions": [
{
"value": "http://www.EXAMPLE.com",
"type": "open",
"uuid": "uuid-8",
"kind": "action"
},
{
"success": true,
"expected": [
1,
15
],
"value": 4,
"message": "Testing if More than one slide exists on the homepage.",
"type": "numberOfElements",
"kind": "assertion"
},
{
"success": true,
"expected": [
5,
15
],
"value": 11,
"message": "Testing if Menu exists.",
"type": "numberOfElements",
"kind": "assertion"
},
{
"success": true,
"value": "true",
"message": "Testing if Video Exists.",
"type": "exists",
"kind": "assertion"
},
{
"success": true,
"value": "true",
"message": "Testing if (Need a product we don't have?) Block Exists.",
"type": "exists",
"kind": "assertion"
},
{
"success": true,
"value": "true",
"message": "Testing if Footer Exists.",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/homepage/home_1423671192.png",
"type": "screenshot",
"uuid": "uuid-7",
"kind": "action"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671197.png",
"uuid": "uuid-12",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671198.png",
"uuid": "uuid-15",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671199.png",
"uuid": "uuid-18",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671200.png",
"uuid": "uuid-21",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671201.png",
"uuid": "uuid-24",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671202.png",
"uuid": "uuid-27",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671203.png",
"uuid": "uuid-30",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671204.png",
"uuid": "uuid-33",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671205.png",
"uuid": "uuid-36",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671206.png",
"uuid": "uuid-39",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/categories/category_1423671207.png",
"uuid": "uuid-42",
"kind": "screenshot"
}
]
},
{
"id": "test3",
"name": "EXAMPLE.com Parent Categories",
"browser": "PhantomJS",
"status": true,
"passedAssertions": 11,
"failedAssertions": 0,
"actions": [
{
"value": "http://www.EXAMPLE.com/tv-home-theater",
"type": "open",
"uuid": "uuid-43",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: TV and Home Theatre is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671197.png",
"type": "screenshot",
"uuid": "uuid-12",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/computers-tablets",
"type": "open",
"uuid": "uuid-45",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Computer and Teblets is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671198.png",
"type": "screenshot",
"uuid": "uuid-15",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/furniture",
"type": "open",
"uuid": "uuid-47",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Furniture is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671199.png",
"type": "screenshot",
"uuid": "uuid-18",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/furniture/bedroom-furniture/mattresses",
"type": "open",
"uuid": "uuid-49",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Mattresses is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671200.png",
"type": "screenshot",
"uuid": "uuid-21",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/cameras-camcorders",
"type": "open",
"uuid": "uuid-51",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Cameras and Camcoders is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671201.png",
"type": "screenshot",
"uuid": "uuid-24",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/audio",
"type": "open",
"uuid": "uuid-53",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Audio is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671202.png",
"type": "screenshot",
"uuid": "uuid-27",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/musical-instruments",
"type": "open",
"uuid": "uuid-55",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Musical Instruments is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671203.png",
"type": "screenshot",
"uuid": "uuid-30",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/health-fitness-sports",
"type": "open",
"uuid": "uuid-57",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Health, Fitness, and Sports is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671204.png",
"type": "screenshot",
"uuid": "uuid-33",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/video-games",
"type": "open",
"uuid": "uuid-59",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Video Games is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671205.png",
"type": "screenshot",
"uuid": "uuid-36",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/outdoor-living",
"type": "open",
"uuid": "uuid-61",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Home Garden and tools is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671206.png",
"type": "screenshot",
"uuid": "uuid-39",
"kind": "action"
},
{
"value": "http://www.EXAMPLE.com/appliances",
"type": "open",
"uuid": "uuid-63",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Test If category: Appliances and Vacuums is working",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/categories/category_1423671207.png",
"type": "screenshot",
"uuid": "uuid-42",
"kind": "action"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/products/product_1423671215.png",
"uuid": "uuid-71",
"kind": "screenshot"
},
{
"pathname": "/path/to/directory/EXAMPLE.com/cart/cart_1423671215.png",
"uuid": "uuid-74",
"kind": "screenshot"
}
]
},
{
"id": "test4",
"name": "EXAMPLE.com Add a product to cart",
"browser": "PhantomJS",
"status": true,
"passedAssertions": 4,
"failedAssertions": 0,
"actions": [
{
"kind": "message",
"message": "MESSAGE: Opening a random category"
},
{
"value": "http://www.EXAMPLE.com/computers-tablets",
"type": "open",
"uuid": "uuid-76",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Opening category: http://www.EXAMPLE.com/computers-tablets",
"type": "exists",
"kind": "assertion"
},
{
"value": ".products-grid li:first-child > a",
"type": "click",
"uuid": "uuid-77",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Testing if product page has a gallery.",
"type": "exists",
"kind": "assertion"
},
{
"success": true,
"value": "true",
"message": "Testing if product has title.",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/products/product_1423671215.png",
"type": "screenshot",
"uuid": "uuid-71",
"kind": "action"
},
{
"value": ".add-to-cart .btn-success",
"type": "click",
"uuid": "uuid-79",
"kind": "action"
},
{
"success": true,
"value": "true",
"message": "Products is added to cart",
"type": "exists",
"kind": "assertion"
},
{
"value": "/path/to/directory/EXAMPLE.com/cart/cart_1423671215.png",
"type": "screenshot",
"uuid": "uuid-74",
"kind": "action"
}
]
}
],
"elapsedTime": {
"seconds": 28.143531947
},
"status": true,
"assertions": 20,
"assertionsFailed": 0,
"assertionsPassed": 20
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment