-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding put and delete api tests in simple api test
- Loading branch information
mishal.alexander
committed
Jan 5, 2024
1 parent
af6d9e6
commit 8ceadcd
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<!doctype html> | ||
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Mochawesome Report</title><link rel="stylesheet" href="assets\app.css"/></head><body data-raw="{"stats":{"suites":1,"tests":2,"passes":2,"pending":0,"failures":0,"testsRegistered":2,"passPercent":100,"pendingPercent":0,"other":0,"hasOther":false,"skipped":0,"hasSkipped":false,"start":"2024-01-04T18:43:42.668Z","end":"2024-01-04T18:43:43.908Z","duration":1240},"results":[{"uuid":"e055b045-d5eb-4c9e-ab19-d4a44e6d00a7","title":"","fullFile":"cypress\\e2e\\api-tests\\simpleApiTest.cy.js","file":"cypress\\e2e\\api-tests\\simpleApiTest.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"01a5d304-3668-44a8-9ef4-aacbc3734ded","title":"HTTP requests","fullFile":"cypress\\e2e\\api-tests\\simpleApiTest.cy.js","file":"cypress\\e2e\\api-tests\\simpleApiTest.cy.js","beforeHooks":[],"afterHooks":[],"tests":[{"title":"simple get request","fullTitle":"HTTP requests simple get request","timedOut":null,"duration":869,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"cy.request('GET', 'https://jsonplaceholder.typicode.com/posts/1').its('status').should('equal', 200);","err":{},"uuid":"9ed93023-371e-4ed8-85b5-b1b099511d2b","parentUUID":"01a5d304-3668-44a8-9ef4-aacbc3734ded","isHook":false,"skipped":false},{"title":"simple post request","fullTitle":"HTTP requests simple post request","timedOut":null,"duration":282,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"cy.request({\n method: 'POST',\n url: 'https://jsonplaceholder.typicode.com/posts/',\n body: {\n title: \"Test post\",\n body: \"This is a test post call\",\n userId: 1\n }\n}).its('status').should('equal', 201);","err":{},"uuid":"74c8c7c0-5d95-41ea-88b5-baeb19ba401b","parentUUID":"01a5d304-3668-44a8-9ef4-aacbc3734ded","isHook":false,"skipped":false}],"suites":[],"passes":["9ed93023-371e-4ed8-85b5-b1b099511d2b","74c8c7c0-5d95-41ea-88b5-baeb19ba401b"],"failures":[],"pending":[],"skipped":[],"duration":1151,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000}],"meta":{"mocha":{"version":"7.0.1"},"mochawesome":{"options":{"quiet":false,"reportFilename":"mochawesome","saveHtml":false,"saveJson":true,"consoleReporter":"spec","useInlineDiffs":false,"code":true},"version":"7.1.3"},"marge":{"options":{"overwrite":false,"html":false,"json":true,"reportDir":"cypress\\reports\\html\\.jsons"},"version":"6.2.0"}}}" data-config="{"reportFilename":"index.html","reportDir":"C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html","reportTitle":"cypress-e2e-framework","reportPageTitle":"Mochawesome Report","inline":false,"inlineAssets":false,"cdn":false,"charts":false,"enableCharts":false,"code":true,"enableCode":true,"autoOpen":false,"overwrite":true,"timestamp":false,"ts":false,"showPassed":true,"showFailed":true,"showPending":true,"showSkipped":false,"showHooks":"failed","saveJson":false,"saveHtml":true,"dev":false,"assetsDir":"C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html\\assets","htmlFile":"C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html\\index.html"}"><div id="report"></div><script src="assets\app.js"></script></body></html> | ||
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Mochawesome Report</title><link rel="stylesheet" href="assets\app.css"/></head><body data-raw="{"stats":{"suites":1,"tests":4,"passes":4,"pending":0,"failures":0,"testsRegistered":4,"passPercent":100,"pendingPercent":0,"other":0,"hasOther":false,"skipped":0,"hasSkipped":false,"start":"2024-01-05T11:36:43.412Z","end":"2024-01-05T11:36:46.016Z","duration":2604},"results":[{"uuid":"298be790-bb11-49d4-8060-ac8710ce554b","title":"","fullFile":"cypress\\e2e\\api-tests\\simpleApiTest.cy.js","file":"cypress\\e2e\\api-tests\\simpleApiTest.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"756b9082-be9c-442f-b055-506eb5bcee15","title":"HTTP requests","fullFile":"cypress\\e2e\\api-tests\\simpleApiTest.cy.js","file":"cypress\\e2e\\api-tests\\simpleApiTest.cy.js","beforeHooks":[],"afterHooks":[],"tests":[{"title":"simple get request","fullTitle":"HTTP requests simple get request","timedOut":null,"duration":304,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"cy.request('GET', 'https://jsonplaceholder.typicode.com/posts/1').its('status').should('equal', 200);","err":{},"uuid":"5030971e-fa15-43a1-b531-ff1516caf2e0","parentUUID":"756b9082-be9c-442f-b055-506eb5bcee15","isHook":false,"skipped":false},{"title":"simple post request","fullTitle":"HTTP requests simple post request","timedOut":null,"duration":918,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"cy.request({\n method: 'POST',\n url: 'https://jsonplaceholder.typicode.com/posts/',\n body: {\n title: \"Test post\",\n body: \"This is a test post call\",\n userId: 1\n }\n}).its('status').should('equal', 201);","err":{},"uuid":"29999d38-82b9-40f1-90ca-0fd4a62e7e97","parentUUID":"756b9082-be9c-442f-b055-506eb5bcee15","isHook":false,"skipped":false},{"title":"simple put request","fullTitle":"HTTP requests simple put request","timedOut":null,"duration":922,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"cy.request({\n method: 'PUT',\n url: 'https://jsonplaceholder.typicode.com/posts/1',\n body: {\n title: \"Test post - updated via put\",\n body: \"This is a test post call\",\n userId: 1\n }\n}).its('status').should('equal', 200);","err":{},"uuid":"6d1c1006-b7e8-4bf9-9a28-1c8ac6f47ced","parentUUID":"756b9082-be9c-442f-b055-506eb5bcee15","isHook":false,"skipped":false},{"title":"simple delete request","fullTitle":"HTTP requests simple delete request","timedOut":null,"duration":367,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"cy.request({\n method: 'DELETE',\n url: 'https://jsonplaceholder.typicode.com/posts/1'\n}).its('status').should('equal', 200);","err":{},"uuid":"b7720247-a453-4c48-a096-c6b44d972a47","parentUUID":"756b9082-be9c-442f-b055-506eb5bcee15","isHook":false,"skipped":false}],"suites":[],"passes":["5030971e-fa15-43a1-b531-ff1516caf2e0","29999d38-82b9-40f1-90ca-0fd4a62e7e97","6d1c1006-b7e8-4bf9-9a28-1c8ac6f47ced","b7720247-a453-4c48-a096-c6b44d972a47"],"failures":[],"pending":[],"skipped":[],"duration":2511,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000}],"meta":{"mocha":{"version":"7.0.1"},"mochawesome":{"options":{"quiet":false,"reportFilename":"mochawesome","saveHtml":false,"saveJson":true,"consoleReporter":"spec","useInlineDiffs":false,"code":true},"version":"7.1.3"},"marge":{"options":{"overwrite":false,"html":false,"json":true,"reportDir":"cypress\\reports\\html\\.jsons"},"version":"6.2.0"}}}" data-config="{"reportFilename":"index.html","reportDir":"C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html","reportTitle":"cypress-e2e-framework","reportPageTitle":"Mochawesome Report","inline":false,"inlineAssets":false,"cdn":false,"charts":false,"enableCharts":false,"code":true,"enableCode":true,"autoOpen":false,"overwrite":true,"timestamp":false,"ts":false,"showPassed":true,"showFailed":true,"showPending":true,"showSkipped":false,"showHooks":"failed","saveJson":false,"saveHtml":true,"dev":false,"assetsDir":"C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html\\assets","htmlFile":"C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html\\index.html"}"><div id="report"></div><script src="assets\app.js"></script></body></html> |