Skip to content

Commit

Permalink
Merge pull request #53 from AbuBakkar32/abu-bakkar
Browse files Browse the repository at this point in the history
API Call
  • Loading branch information
AbuBakkar32 authored Jun 30, 2024
2 parents cbad527 + 22a5021 commit 457c95f
Show file tree
Hide file tree
Showing 41 changed files with 397 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cypress/reports/index.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.474" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:41:27" tests="0" file="cypress\e2e\api\verify_login_with_valid_info.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Test: POST To Verify Login with valid details" timestamp="2024-06-30T13:41:27" tests="1" time="1.348" failures="0">
<testcase name="API Test: POST To Verify Login with valid details should return user exists message" time="1.459" classname="should return user exists message">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="18.775" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:28:59" tests="0" file="cypress\e2e\logout_user.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Logout User" timestamp="2024-06-30T13:28:59" tests="1" time="18.358" failures="0">
<testcase name="Logout User should login and logout a user" time="13.179" classname="should login and logout a user">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="27.986" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:26:10" tests="0" file="cypress\e2e\contact_us.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Contact Us Form" timestamp="2024-06-30T13:26:10" tests="1" time="27.574" failures="0">
<testcase name="Contact Us Form Contact Us Form validation checking...." time="22.281" classname="Contact Us Form validation checking....">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.490" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:40:03" tests="0" file="cypress\e2e\api\api.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Test using plugin cypress-plugin-api" timestamp="2024-06-30T13:40:03" tests="1" time="1.432" failures="0">
<testcase name="API Test using plugin cypress-plugin-api test api - GET " time="1.419" classname="test api - GET ">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.484" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:40:45" tests="0" file="cypress\e2e\api\get_user_account_detail_by_mail.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Test: GET User Account Detail by Email" timestamp="2024-06-30T13:40:45" tests="1" time="1.435" failures="0">
<testcase name="API Test: GET User Account Detail by Email should return user account details" time="1.424" classname="should return user account details">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="13.662" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:37:28" tests="0" file="cypress\e2e\verify_scroll_up_and_down_without_arrow_button.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Verify Scroll Up and Down without Arrow Button" timestamp="2024-06-30T13:37:28" tests="1" time="13.200" failures="0">
<testcase name="Verify Scroll Up and Down without Arrow Button should scroll down, verify &quot;SUBSCRIPTION&quot;, scroll up using JavaScript, and verify homepage text" time="6.312" classname="should scroll down, verify &quot;SUBSCRIPTION&quot;, scroll up using JavaScript, and verify homepage text">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="63.363" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:29:22" tests="0" file="cypress\e2e\place_order_login_before_checkout.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Place Order: Register Before Checkout" timestamp="2024-06-30T13:29:23" tests="1" time="62.909" failures="0">
<testcase name="Place Order: Register Before Checkout Register before cart adds products into the cart, and process shippment" time="57.594" classname="Register before cart adds products into the cart, and process shippment">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.392" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:39:47" tests="0" file="cypress\e2e\api\ApiChaining.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Chaining" timestamp="2024-06-30T13:39:47" tests="1" time="1.337" failures="0">
<testcase name="API Chaining Should make API requests and chain them together" time="1.337" classname="Should make API requests and chain them together">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.436" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:41:00" tests="0" file="cypress\e2e\api\post_to_all_products_list.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Test: POST To All Products List" timestamp="2024-06-30T13:41:00" tests="1" time="1.384" failures="0">
<testcase name="API Test: POST To All Products List should return method not supported message" time="1.380" classname="should return method not supported message">
</testcase>
</testsuite>
</testsuites>
17 changes: 17 additions & 0 deletions cypress/reports/junit/results-308d95e03618dc51e85a1939e7a6400e.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="3.626" tests="5" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:40:51" tests="0" file="cypress\e2e\api\placeholder_api_tesing.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="JSONPlaceholder User Management API Tests" timestamp="2024-06-30T13:40:51" tests="5" time="3.571" failures="0">
<testcase name="JSONPlaceholder User Management API Tests should create a new user (Mocked Response)" time="0.559" classname="should create a new user (Mocked Response)">
</testcase>
<testcase name="JSONPlaceholder User Management API Tests should get the created user by ID" time="0.984" classname="should get the created user by ID">
</testcase>
<testcase name="JSONPlaceholder User Management API Tests should update the user by ID" time="0.429" classname="should update the user by ID">
</testcase>
<testcase name="JSONPlaceholder User Management API Tests should list all users and contain the updated user" time="0.145" classname="should list all users and contain the updated user">
</testcase>
<testcase name="JSONPlaceholder User Management API Tests should delete the user by ID" time="1.280" classname="should delete the user by ID">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="19.411" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:38:53" tests="0" file="cypress\e2e\view_&amp;_cart_brand_products.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="View &amp; Cart Brand Products" timestamp="2024-06-30T13:38:53" tests="1" time="18.980" failures="0">
<testcase name="View &amp; Cart Brand Products Check brand products are visible or not" time="12.766" classname="Check brand products are visible or not">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="54.573" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:30:30" tests="0" file="cypress\e2e\place_order_registration_before_checkout.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Place Order: Register Before Checkout" timestamp="2024-06-30T13:30:31" tests="1" time="54.143" failures="0">
<testcase name="Place Order: Register Before Checkout Register before cart adds products into the cart, and process shippment" time="48.663" classname="Register before cart adds products into the cart, and process shippment">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.973" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:40:31" tests="0" file="cypress\e2e\api\get_all_brand_list.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Test: Get All Brands List" timestamp="2024-06-30T13:40:32" tests="1" time="1.438" failures="0">
<testcase name="API Test: Get All Brands List should return a list of brands" time="1.878" classname="should return a list of brands">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="15.326" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:36:19" tests="0" file="cypress\e2e\verify_product_quantity_in_cart.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Test Case 13: Verify Product quantity in Cart" timestamp="2024-06-30T13:36:20" tests="1" time="14.829" failures="0">
<testcase name="Test Case 13: Verify Product quantity in Cart increases quantity and verifies it in cart" time="9.209" classname="increases quantity and verifies it in cart">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="15.139" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:38:32" tests="0" file="cypress\e2e\verify_testCases_files.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Verify Test Cases Page" timestamp="2024-06-30T13:38:32" tests="1" time="14.691" failures="0">
<testcase name="Verify Test Cases Page Verify Test Cases Page" time="7.668" classname="Verify Test Cases Page">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="19.438" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:33:48" tests="0" file="cypress\e2e\remove_poducts_from_cart.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Remove Products From Cart" timestamp="2024-06-30T13:33:49" tests="1" time="18.823" failures="0">
<testcase name="Remove Products From Cart Check cart product successfully delete or not" time="12.340" classname="Check cart product successfully delete or not">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.458" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:41:20" tests="0" file="cypress\e2e\api\search_without_parameter.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Test: POST To Search Product without search_product parameter" timestamp="2024-06-30T13:41:20" tests="1" time="1.404" failures="0">
<testcase name="API Test: POST To Search Product without search_product parameter should return a 400 Bad Request error with appropriate message" time="1.363" classname="should return a 400 Bad Request error with appropriate message">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.397" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:41:13" tests="0" file="cypress\e2e\api\put_to_search_product.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Test: POST To Search Product" timestamp="2024-06-30T13:41:13" tests="1" time="1.337" failures="0">
<testcase name="API Test: POST To Search Product should return a list of searched products" time="1.335" classname="should return a list of searched products">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="42.830" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:34:37" tests="0" file="cypress\e2e\search_products_and_verify_cart_after_login.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Search Products and Verify Cart After Login" timestamp="2024-06-30T13:34:37" tests="1" time="42.398" failures="0">
<testcase name="Search Products and Verify Cart After Login searches products, adds to cart, verifies after login" time="36.555" classname="searches products, adds to cart, verifies after login">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="43.626" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:35:30" tests="0" file="cypress\e2e\verify_address_details_in_checkout_page.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Verify address details in checkout page" timestamp="2024-06-30T13:35:31" tests="1" time="43.053" failures="0">
<testcase name="Verify address details in checkout page Register before cart adds products and Verify address details in checkout page" time="36.987" classname="Register before cart adds products and Verify address details in checkout page">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="16.378" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:38:09" tests="0" file="cypress\e2e\verify_subscription_card_page.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Verify Subscription in card page" timestamp="2024-06-30T13:38:10" tests="1" time="15.933" failures="0">
<testcase name="Verify Subscription in card page Verify Subscription in card page" time="9.668" classname="Verify Subscription in card page">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="24.072" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:24:33" tests="0" file="cypress\e2e\add_product_cart.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Test Case 12: Add Products in Cart" timestamp="2024-06-30T13:24:33" tests="1" time="24.009" failures="0">
<testcase name="Test Case 12: Add Products in Cart Add Products in Cart" time="17.899" classname="Add Products in Cart">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="42.879" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:28:10" tests="0" file="cypress\e2e\login_user.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Login User" timestamp="2024-06-30T13:28:11" tests="1" time="42.445" failures="0">
<testcase name="Login User should login and delete a user" time="36.910" classname="should login and delete a user">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.347" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:39:41" tests="0" file="cypress\e2e\api\ApiCallUsingFixture.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Call UsingFixture" timestamp="2024-06-30T13:39:42" tests="1" time="0.896" failures="0">
<testcase name="API Call UsingFixture POST request using Fixture" time="1.286" classname="POST request using Fixture">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="15.518" tests="3" failures="-1" skipped="2">
<testsuite name="Root Suite" timestamp="2024-06-30T13:40:10" tests="0" file="cypress\e2e\api\fileUpload.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Upload File Request" timestamp="2024-06-30T13:40:10" tests="3" time="15.460" failures="0">
<testcase name="Upload File Request TC1 - No Input Field || upload File by changing action" time="9.044" classname="TC1 - No Input Field || upload File by changing action">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="1.582" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:40:38" tests="0" file="cypress\e2e\api\get_all_product_list.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="API Test: Get All Products List" timestamp="2024-06-30T13:40:38" tests="1" time="1.540" failures="0">
<testcase name="API Test: Get All Products List should return a list of products" time="1.507" classname="should return a list of products">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="39.088" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:25:02" tests="0" file="cypress\e2e\add_review_on_product.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Add review on product" timestamp="2024-06-30T13:25:03" tests="1" time="38.699" failures="0">
<testcase name="Add review on product adds a review and verifies success message" time="32.259" classname="adds a review and verifies success message">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="15.835" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:32:29" tests="0" file="cypress\e2e\register_existing_email.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Register User with existing email" timestamp="2024-06-30T13:32:29" tests="1" time="15.355" failures="0">
<testcase name="Register User with existing email Register User with existing email" time="9.841" classname="Register User with existing email">
</testcase>
</testsuite>
</testsuites>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="19.022" tests="1" failures="0">
<testsuite name="Root Suite" timestamp="2024-06-30T13:25:46" tests="0" file="cypress\e2e\add_to_cart_from_recommended_items.cy.js" time="0.000" failures="0">
</testsuite>
<testsuite name="Add to cart from Recommended items" timestamp="2024-06-30T13:25:47" tests="1" time="18.608" failures="0">
<testcase name="Add to cart from Recommended items adds a recommended product to cart and verifies" time="13.487" classname="adds a recommended product to cart and verifies">
</testcase>
</testsuite>
</testsuites>
Loading

0 comments on commit 457c95f

Please sign in to comment.