Skip to content

Commit

Permalink
renamed test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
mishal.alexander committed Jan 5, 2024
1 parent 8ceadcd commit 1963d9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/api-tests/simpleApiTest.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
describe("HTTP requests",()=>{
describe("Simple Api request tests",()=>{
it('simple get request', ()=> {
cy.request('GET','https://jsonplaceholder.typicode.com/posts/1')
.its('status')
Expand Down
2 changes: 1 addition & 1 deletion cypress/reports/html/index.html
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="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:4,&quot;passes&quot;:4,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;testsRegistered&quot;:4,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false,&quot;start&quot;:&quot;2024-01-05T11:36:43.412Z&quot;,&quot;end&quot;:&quot;2024-01-05T11:36:46.016Z&quot;,&quot;duration&quot;:2604},&quot;results&quot;:[{&quot;uuid&quot;:&quot;298be790-bb11-49d4-8060-ac8710ce554b&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress\\e2e\\api-tests\\simpleApiTest.cy.js&quot;,&quot;file&quot;:&quot;cypress\\e2e\\api-tests\\simpleApiTest.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;756b9082-be9c-442f-b055-506eb5bcee15&quot;,&quot;title&quot;:&quot;HTTP requests&quot;,&quot;fullFile&quot;:&quot;cypress\\e2e\\api-tests\\simpleApiTest.cy.js&quot;,&quot;file&quot;:&quot;cypress\\e2e\\api-tests\\simpleApiTest.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;simple get request&quot;,&quot;fullTitle&quot;:&quot;HTTP requests simple get request&quot;,&quot;timedOut&quot;:null,&quot;duration&quot;:304,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;context&quot;:null,&quot;code&quot;:&quot;cy.request(&#x27;GET&#x27;, &#x27;https://jsonplaceholder.typicode.com/posts/1&#x27;).its(&#x27;status&#x27;).should(&#x27;equal&#x27;, 200);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;5030971e-fa15-43a1-b531-ff1516caf2e0&quot;,&quot;parentUUID&quot;:&quot;756b9082-be9c-442f-b055-506eb5bcee15&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false},{&quot;title&quot;:&quot;simple post request&quot;,&quot;fullTitle&quot;:&quot;HTTP requests simple post request&quot;,&quot;timedOut&quot;:null,&quot;duration&quot;:918,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;context&quot;:null,&quot;code&quot;:&quot;cy.request({\n method: &#x27;POST&#x27;,\n url: &#x27;https://jsonplaceholder.typicode.com/posts/&#x27;,\n body: {\n title: \&quot;Test post\&quot;,\n body: \&quot;This is a test post call\&quot;,\n userId: 1\n }\n}).its(&#x27;status&#x27;).should(&#x27;equal&#x27;, 201);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;29999d38-82b9-40f1-90ca-0fd4a62e7e97&quot;,&quot;parentUUID&quot;:&quot;756b9082-be9c-442f-b055-506eb5bcee15&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false},{&quot;title&quot;:&quot;simple put request&quot;,&quot;fullTitle&quot;:&quot;HTTP requests simple put request&quot;,&quot;timedOut&quot;:null,&quot;duration&quot;:922,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;context&quot;:null,&quot;code&quot;:&quot;cy.request({\n method: &#x27;PUT&#x27;,\n url: &#x27;https://jsonplaceholder.typicode.com/posts/1&#x27;,\n body: {\n title: \&quot;Test post - updated via put\&quot;,\n body: \&quot;This is a test post call\&quot;,\n userId: 1\n }\n}).its(&#x27;status&#x27;).should(&#x27;equal&#x27;, 200);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;6d1c1006-b7e8-4bf9-9a28-1c8ac6f47ced&quot;,&quot;parentUUID&quot;:&quot;756b9082-be9c-442f-b055-506eb5bcee15&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false},{&quot;title&quot;:&quot;simple delete request&quot;,&quot;fullTitle&quot;:&quot;HTTP requests simple delete request&quot;,&quot;timedOut&quot;:null,&quot;duration&quot;:367,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;context&quot;:null,&quot;code&quot;:&quot;cy.request({\n method: &#x27;DELETE&#x27;,\n url: &#x27;https://jsonplaceholder.typicode.com/posts/1&#x27;\n}).its(&#x27;status&#x27;).should(&#x27;equal&#x27;, 200);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;b7720247-a453-4c48-a096-c6b44d972a47&quot;,&quot;parentUUID&quot;:&quot;756b9082-be9c-442f-b055-506eb5bcee15&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;5030971e-fa15-43a1-b531-ff1516caf2e0&quot;,&quot;29999d38-82b9-40f1-90ca-0fd4a62e7e97&quot;,&quot;6d1c1006-b7e8-4bf9-9a28-1c8ac6f47ced&quot;,&quot;b7720247-a453-4c48-a096-c6b44d972a47&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:2511,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:false,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;overwrite&quot;:false,&quot;html&quot;:false,&quot;json&quot;:true,&quot;reportDir&quot;:&quot;cypress\\reports\\html\\.jsons&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;index.html&quot;,&quot;reportDir&quot;:&quot;C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html&quot;,&quot;reportTitle&quot;:&quot;cypress-e2e-framework&quot;,&quot;reportPageTitle&quot;:&quot;Mochawesome Report&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:true,&quot;timestamp&quot;:false,&quot;ts&quot;:false,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:false,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html\\assets&quot;,&quot;htmlFile&quot;:&quot;C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html\\index.html&quot;}"><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="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:4,&quot;passes&quot;:4,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;testsRegistered&quot;:4,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false,&quot;start&quot;:&quot;2024-01-05T11:38:24.243Z&quot;,&quot;end&quot;:&quot;2024-01-05T11:38:26.918Z&quot;,&quot;duration&quot;:2675},&quot;results&quot;:[{&quot;uuid&quot;:&quot;3851d008-10e6-44af-b0d2-11a8df2bf8e0&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress\\e2e\\api-tests\\simpleApiTest.cy.js&quot;,&quot;file&quot;:&quot;cypress\\e2e\\api-tests\\simpleApiTest.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;224b662e-4dda-412a-be57-e826682c2020&quot;,&quot;title&quot;:&quot;HTTP requests&quot;,&quot;fullFile&quot;:&quot;cypress\\e2e\\api-tests\\simpleApiTest.cy.js&quot;,&quot;file&quot;:&quot;cypress\\e2e\\api-tests\\simpleApiTest.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;simple get request&quot;,&quot;fullTitle&quot;:&quot;HTTP requests simple get request&quot;,&quot;timedOut&quot;:null,&quot;duration&quot;:398,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;context&quot;:null,&quot;code&quot;:&quot;cy.request(&#x27;GET&#x27;, &#x27;https://jsonplaceholder.typicode.com/posts/1&#x27;).its(&#x27;status&#x27;).should(&#x27;equal&#x27;, 200);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;f14cdd41-2930-4e3f-842f-7fa5975a620a&quot;,&quot;parentUUID&quot;:&quot;224b662e-4dda-412a-be57-e826682c2020&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false},{&quot;title&quot;:&quot;simple post request&quot;,&quot;fullTitle&quot;:&quot;HTTP requests simple post request&quot;,&quot;timedOut&quot;:null,&quot;duration&quot;:913,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;context&quot;:null,&quot;code&quot;:&quot;cy.request({\n method: &#x27;POST&#x27;,\n url: &#x27;https://jsonplaceholder.typicode.com/posts/&#x27;,\n body: {\n title: \&quot;Test post\&quot;,\n body: \&quot;This is a test post call\&quot;,\n userId: 1\n }\n}).its(&#x27;status&#x27;).should(&#x27;equal&#x27;, 201);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;846b6dd2-6cc6-4f76-85c1-fdfd882524f3&quot;,&quot;parentUUID&quot;:&quot;224b662e-4dda-412a-be57-e826682c2020&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false},{&quot;title&quot;:&quot;simple put request&quot;,&quot;fullTitle&quot;:&quot;HTTP requests simple put request&quot;,&quot;timedOut&quot;:null,&quot;duration&quot;:906,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;context&quot;:null,&quot;code&quot;:&quot;cy.request({\n method: &#x27;PUT&#x27;,\n url: &#x27;https://jsonplaceholder.typicode.com/posts/1&#x27;,\n body: {\n title: \&quot;Test post - updated via put\&quot;,\n body: \&quot;This is a test post call\&quot;,\n userId: 1\n }\n}).its(&#x27;status&#x27;).should(&#x27;equal&#x27;, 200);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;28fa1265-c93e-4f38-8ab8-dd187ea788f0&quot;,&quot;parentUUID&quot;:&quot;224b662e-4dda-412a-be57-e826682c2020&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false},{&quot;title&quot;:&quot;simple delete request&quot;,&quot;fullTitle&quot;:&quot;HTTP requests simple delete request&quot;,&quot;timedOut&quot;:null,&quot;duration&quot;:360,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;context&quot;:null,&quot;code&quot;:&quot;cy.request({\n method: &#x27;DELETE&#x27;,\n url: &#x27;https://jsonplaceholder.typicode.com/posts/1&#x27;\n}).its(&#x27;status&#x27;).should(&#x27;equal&#x27;, 200);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;8367aca0-caaf-41d2-8951-1bb9f51facac&quot;,&quot;parentUUID&quot;:&quot;224b662e-4dda-412a-be57-e826682c2020&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;f14cdd41-2930-4e3f-842f-7fa5975a620a&quot;,&quot;846b6dd2-6cc6-4f76-85c1-fdfd882524f3&quot;,&quot;28fa1265-c93e-4f38-8ab8-dd187ea788f0&quot;,&quot;8367aca0-caaf-41d2-8951-1bb9f51facac&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:2577,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:false,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;overwrite&quot;:false,&quot;html&quot;:false,&quot;json&quot;:true,&quot;reportDir&quot;:&quot;cypress\\reports\\html\\.jsons&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;index.html&quot;,&quot;reportDir&quot;:&quot;C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html&quot;,&quot;reportTitle&quot;:&quot;cypress-e2e-framework&quot;,&quot;reportPageTitle&quot;:&quot;Mochawesome Report&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:true,&quot;timestamp&quot;:false,&quot;ts&quot;:false,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:false,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html\\assets&quot;,&quot;htmlFile&quot;:&quot;C:\\Users\\Mishal\\Desktop\\cypress-e2e-framework\\cypress\\reports\\html\\index.html&quot;}"><div id="report"></div><script src="assets\app.js"></script></body></html>

0 comments on commit 1963d9c

Please sign in to comment.