diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 98e8351..acc3662 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -13,7 +13,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '16' # Altere para '20' se necessário + node-version: '20' # Altere para '20' se necessário - name: Install Newman and HTML Extra Reporter run: npm install -g newman newman-reporter-htmlextra diff --git "a/exports_reports/Relat\303\263rio_ServRest.html" "b/exports_reports/Relat\303\263rio_ServRest.html" deleted file mode 100644 index 623dfb8..0000000 --- "a/exports_reports/Relat\303\263rio_ServRest.html" +++ /dev/null @@ -1,3401 +0,0 @@ - - -
- -Variable Name | Variable Value |
---|---|
baseURL | -https://serverest.dev | -
Esta é a collection de testes da API de ServeRest do site [https://serverest.dev/](https://serverest.dev/).
-
-API gratuita de testes gratuita que **simula uma loja virtual com intuito de servir de material de estudos de testes de API.**
-
-EndFragment
-
-Nesses testes irão validar alguns tópicos importantes sobre a API.
-
-1. Testes de acesso via Token.
-2. Testes de respostas e Velocidade da API.
-3. Requisições via GET,PUT,DELETE e PUT.
-4. Documentação.
-5. Automação comk Newman.
-6. Integração.
-7. CI/CD via Azure DevOps.
- Summary Item | -Total | -Failed | -
---|---|---|
Requests | -7 | -0 | -
Prerequest Scripts | -11 | -0 | -
Test Scripts | -14 | -0 | -
Assertions | -28 | -5 | -
Skipped Tests | -0 | -- | -
expected 394 to be below 200
- expected 472 to be below 200
- expected 212 to be below 200
- expected 200 to be below 200
- expected 213 to be below 200
- Header Name | Header Value |
---|---|
Authorization | -Bearer {{authorization}} | -
User-Agent | -PostmanRuntime/7.37.1 | -
Accept | -*/* | -
Cache-Control | -no-cache | -
Postman-Token | -4d5d60b9-eadc-4718-824b-55fb3aaeebe6 | -
Host | -randomuser.me | -
Accept-Encoding | -gzip, deflate, br | -
Connection | -keep-alive | -
Header Name | Header Value |
---|---|
Date | -Wed, 29 May 2024 16:42:31 GMT | -
Content-Type | -application/json; charset=utf-8 | -
Transfer-Encoding | -chunked | -
Connection | -keep-alive | -
X-Powered-By | -Express | -
Access-Control-Allow-Origin | -* | -
Cache-Control | -no-cache | -
ETag | -W/"491-7e4oRQMet6cCJI72iwtn01PZC+4" | -
Vary | -Accept-Encoding | -
Content-Encoding | -gzip | -
CF-Cache-Status | -DYNAMIC | -
Report-To | -{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=NfE5U8IyT%2BYUjePDlhVhrMBIwXScj7BPh1z2SjxTujlP%2FBWrcasBJQhgKH5ZR6FpW5phxiMxghFYvdC52v4iK79kzHAWJkpcifsnlX36cj9k0t%2FNO2EM3qXBtx5BM8z5"}],"group":"cf-nel","max_age":604800} | -
NEL | -{"success_fraction":0,"report_to":"cf-nel","max_age":604800} | -
Server | -cloudflare | -
CF-RAY | -88b7f02a197f1aec-GRU | -
alt-svc | -h3=":443"; ma=86400 | -
{"results":[{"gender":"male","name":{"title":"Mr","first":"Louis","last":"French"},"location":{"street":{"number":2229,"name":"Dufferin St"},"city":"Trout Lake","state":"Newfoundland and Labrador","country":"Canada","postcode":"J5M 6S8","coordinates":{"latitude":"-72.4033","longitude":"-25.2078"},"timezone":{"offset":"-12:00","description":"Eniwetok, Kwajalein"}},"email":"louis.french@example.com","login":{"uuid":"84036e4e-7229-4889-a30e-ee24c7b0a5d1","username":"beautifultiger901","password":"colin","salt":"DjkMGHJ4","md5":"ddfac6da56892190ccdd878184838933","sha1":"b2cf304806f5adaf1de05bd592cbf7491038b012","sha256":"4acd606260374de27de1f6580694251b65b71f717a029851ae906c71fcc6c337"},"dob":{"date":"1994-12-24T21:45:56.387Z","age":29},"registered":{"date":"2005-05-17T07:52:13.155Z","age":19},"phone":"U47 B63-8048","cell":"Q01 N17-1938","id":{"name":"SIN","value":"618644231"},"picture":{"large":"https://randomuser.me/api/portraits/men/30.jpg","medium":"https://randomuser.me/api/portraits/med/men/30.jpg","thumbnail":"https://randomuser.me/api/portraits/thumb/men/30.jpg"},"nat":"CA"}],"info":{"seed":"ad85461ce4f52ba0","results":1,"page":1,"version":"1.4"}}
- Name | Passed | Failed | Skipped |
---|---|---|---|
Status code is 200 | -1 | -0 | -0 | -
Status code name has string | -1 | -0 | -0 | -
Response time is less than 200ms | -0 | -1 | -0 | -
Content-Type is present | -1 | -0 | -0 | -
Total | -3 | -1 | -0 | -
Test Name | Assertion Error |
---|---|
Response time is less than 200ms | -
|
-
Realizar login com e-mail e senha VÁLIDO.
-
- StartFragment
-
- Resultados esperados:
-
- \- Response code 200
-
- \- String "Login realizado com sucesso" no corpo do response
-
- \- Tempo de resposta < 2000ms
-
-
-
- EndFragment
- Header Name | Header Value |
---|---|
Content-Type | -application/json | -
Authorization | -Bearer {{authorization}} | -
User-Agent | -PostmanRuntime/7.37.1 | -
Accept | -*/* | -
Cache-Control | -no-cache | -
Postman-Token | -01b28048-0aa1-47f4-b0e4-21b81d712725 | -
Host | -serverest.dev | -
Accept-Encoding | -gzip, deflate, br | -
Connection | -keep-alive | -
Content-Length | -56 | -
{
- "email": "fulano@qa.com",
- "password": "teste"
- }
- Header Name | Header Value |
---|---|
access-control-allow-origin | -* | -
x-dns-prefetch-control | -off | -
x-frame-options | -SAMEORIGIN | -
strict-transport-security | -max-age=15552000; includeSubDomains | -
x-download-options | -noopen | -
x-content-type-options | -nosniff | -
x-xss-protection | -1; mode=block | -
content-type | -application/json; charset=utf-8 | -
X-Cloud-Trace-Context | -2fe6c6dc408a1180a2f3f39de3c6864f;o=1 | -
Date | -Wed, 29 May 2024 16:42:32 GMT | -
Server | -Google Frontend | -
Content-Length | -265 | -
{
- "message": "Login realizado com sucesso",
- "authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImZ1bGFub0BxYS5jb20iLCJwYXNzd29yZCI6InRlc3RlIiwiaWF0IjoxNzE3MDAwOTUyLCJleHAiOjE3MTcwMDE1NTJ9.vaM4akQdlrs-N_d5LXF3q9zum7-VKqA8lggSYPRvNEw"
- }
- Name | Passed | Failed | Skipped |
---|---|---|---|
Response time is less than 200ms | -0 | -1 | -0 | -
Content-Type is present | -1 | -0 | -0 | -
Body matches string | -1 | -0 | -0 | -
Total | -2 | -1 | -0 | -
Test Name | Assertion Error |
---|---|
Response time is less than 200ms | -
|
-
StartFragment
-
- Nesse teste será validado se é permitido cadastrar usuário com email e senha.
-
- Resultados esperados:
-
- \- Response code 201
-
- \- String "Cadastro realizado com sucesso" no corpo do response
-
- \- Tempo de resposta < 2000ms
-
- EndFragment
- Header Name | Header Value |
---|---|
Content-Type | -application/json | -
Authorization | -Bearer Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImZ1bGFub0BxYS5jb20iLCJwYXNzd29yZCI6InRlc3RlIiwiaWF0IjoxNzE3MDAwOTUyLCJleHAiOjE3MTcwMDE1NTJ9.vaM4akQdlrs-N_d5LXF3q9zum7-VKqA8lggSYPRvNEw | -
User-Agent | -PostmanRuntime/7.37.1 | -
Accept | -*/* | -
Cache-Control | -no-cache | -
Postman-Token | -b31c3919-293c-4a21-9c45-9f41eee6e627 | -
Host | -serverest.dev | -
Accept-Encoding | -gzip, deflate, br | -
Connection | -keep-alive | -
Content-Length | -115 | -
{
- "nome": "Louis",
- "email": "louis.french@example.com",
- "password": "colin",
- "administrador": "true"
- }
- Header Name | Header Value |
---|---|
access-control-allow-origin | -* | -
x-dns-prefetch-control | -off | -
x-frame-options | -SAMEORIGIN | -
strict-transport-security | -max-age=15552000; includeSubDomains | -
x-download-options | -noopen | -
x-content-type-options | -nosniff | -
x-xss-protection | -1; mode=block | -
content-type | -application/json; charset=utf-8 | -
X-Cloud-Trace-Context | -cc76e99cb5a04f93c8ec6dc9fac4f21a | -
Date | -Wed, 29 May 2024 16:42:32 GMT | -
Server | -Google Frontend | -
Content-Length | -82 | -
{
- "message": "Cadastro realizado com sucesso",
- "_id": "PCgnwKTjLSFKynSa"
- }
- Name | Passed | Failed | Skipped |
---|---|---|---|
Response time is less than 200ms | -0 | -1 | -0 | -
Content-Type is present | -1 | -0 | -0 | -
Status code is 201 | -1 | -0 | -0 | -
Descrição da resposta | -1 | -0 | -0 | -
Capiturar ID | -1 | -0 | -0 | -
Validar a estrutura do corpo da resposta | -1 | -0 | -0 | -
Total | -5 | -1 | -0 | -
Test Name | Assertion Error |
---|---|
Response time is less than 200ms | -
|
-
Busca lista de usuários completa
-
- Resultados esperados:
-
- \- Response code 20
-
- \- String "Lista de usuários" no corpo do response
-
- \- Tempo de resposta < 2000ms
- Header Name | Header Value |
---|---|
Content-Type | -application/json | -
Authorization | -Bearer Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImZ1bGFub0BxYS5jb20iLCJwYXNzd29yZCI6InRlc3RlIiwiaWF0IjoxNzE3MDAwOTUyLCJleHAiOjE3MTcwMDE1NTJ9.vaM4akQdlrs-N_d5LXF3q9zum7-VKqA8lggSYPRvNEw | -
User-Agent | -PostmanRuntime/7.37.1 | -
Accept | -*/* | -
Cache-Control | -no-cache | -
Postman-Token | -46c93b81-11cd-4b5a-961e-ad33ccf22fb3 | -
Host | -serverest.dev | -
Accept-Encoding | -gzip, deflate, br | -
Connection | -keep-alive | -
Header Name | Header Value |
---|---|
access-control-allow-origin | -* | -
x-dns-prefetch-control | -off | -
x-frame-options | -SAMEORIGIN | -
strict-transport-security | -max-age=15552000; includeSubDomains | -
x-download-options | -noopen | -
x-content-type-options | -nosniff | -
x-xss-protection | -1; mode=block | -
content-type | -application/json; charset=utf-8 | -
X-Cloud-Trace-Context | -14cecf33d8221f835cbe7cae63ee13b2 | -
Date | -Wed, 29 May 2024 16:42:32 GMT | -
Server | -Google Frontend | -
Content-Length | -149 | -
{
- "nome": "Louis",
- "email": "louis.french@example.com",
- "password": "colin",
- "administrador": "true",
- "_id": "PCgnwKTjLSFKynSa"
- }
- Name | Passed | Failed | Skipped |
---|---|---|---|
Status code is 200 | -1 | -0 | -0 | -
Status code name has string | -1 | -0 | -0 | -
Response time is less than 200ms | -0 | -1 | -0 | -
Content-Type is present | -1 | -0 | -0 | -
Validar se Id foi retornado está de acordo | -1 | -0 | -0 | -
Validar se Email foi retornado está de acordo | -1 | -0 | -0 | -
Validar se Password foi retornado está de acordo | -1 | -0 | -0 | -
Validar (Contrato) a estrutura do corpo da resposta | -1 | -0 | -0 | -
Total | -7 | -1 | -0 | -
Test Name | Assertion Error |
---|---|
Response time is less than 200ms | -
|
-
Editar um usuário
- \* Não é permitido cadastrar usuário com email já utilizado.
- Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
-
-
- Resultados esperados:
-
- \- Response code 201 para Cadastro com sucesso
-
- \- Response code 400 para Cadastro com sucesso
-
- \- Tempo de resposta < 2000ms
- Header Name | Header Value |
---|---|
Accept | -application/json | -
Content-Type | -application/json | -
Authorization | -Bearer Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImZ1bGFub0BxYS5jb20iLCJwYXNzd29yZCI6InRlc3RlIiwiaWF0IjoxNzE3MDAwOTUyLCJleHAiOjE3MTcwMDE1NTJ9.vaM4akQdlrs-N_d5LXF3q9zum7-VKqA8lggSYPRvNEw | -
User-Agent | -PostmanRuntime/7.37.1 | -
Cache-Control | -no-cache | -
Postman-Token | -95cf8e3c-9f86-4d34-9053-07438146fa37 | -
Host | -serverest.dev | -
Accept-Encoding | -gzip, deflate, br | -
Connection | -keep-alive | -
Content-Length | -115 | -
{
- "nome": "Louis",
- "email": "louis.french@example.com",
- "password": "colin",
- "administrador": "true"
- }
- Header Name | Header Value |
---|---|
access-control-allow-origin | -* | -
x-dns-prefetch-control | -off | -
x-frame-options | -SAMEORIGIN | -
strict-transport-security | -max-age=15552000; includeSubDomains | -
x-download-options | -noopen | -
x-content-type-options | -nosniff | -
x-xss-protection | -1; mode=block | -
content-type | -application/json; charset=utf-8 | -
X-Cloud-Trace-Context | -df1c87aaa4ebc5ba529c77df6f193eab | -
Date | -Wed, 29 May 2024 16:42:32 GMT | -
Server | -Google Frontend | -
Content-Length | -50 | -
{
- "message": "Registro alterado com sucesso"
- }
- Name | Passed | Failed | Skipped |
---|---|---|---|
Body matches string | -1 | -0 | -0 | -
Total | -1 | -0 | -0 | -
Test Name | Assertion Error |
---|
Busca lista de usuários completa
-
- Resultados esperados:
-
- \- Response code 20
-
- \- String "Lista de usuários" no corpo do response
-
- \- Tempo de resposta < 2000ms
- Header Name | Header Value |
---|---|
Content-Type | -application/json | -
Authorization | -Bearer Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImZ1bGFub0BxYS5jb20iLCJwYXNzd29yZCI6InRlc3RlIiwiaWF0IjoxNzE3MDAwOTUyLCJleHAiOjE3MTcwMDE1NTJ9.vaM4akQdlrs-N_d5LXF3q9zum7-VKqA8lggSYPRvNEw | -
User-Agent | -PostmanRuntime/7.37.1 | -
Accept | -*/* | -
Cache-Control | -no-cache | -
Postman-Token | -98b3b267-4af8-46a9-8afa-d3f79934d574 | -
Host | -serverest.dev | -
Accept-Encoding | -gzip, deflate, br | -
Connection | -keep-alive | -
Header Name | Header Value |
---|---|
access-control-allow-origin | -* | -
x-dns-prefetch-control | -off | -
x-frame-options | -SAMEORIGIN | -
strict-transport-security | -max-age=15552000; includeSubDomains | -
x-download-options | -noopen | -
x-content-type-options | -nosniff | -
x-xss-protection | -1; mode=block | -
content-type | -application/json; charset=utf-8 | -
X-Cloud-Trace-Context | -d5ad1fbbc7731ca5ee658f6d0e1725e1 | -
Date | -Wed, 29 May 2024 16:42:33 GMT | -
Server | -Google Frontend | -
Content-Length | -149 | -
{
- "nome": "Louis",
- "email": "louis.french@example.com",
- "password": "colin",
- "administrador": "true",
- "_id": "PCgnwKTjLSFKynSa"
- }
- Name | Passed | Failed | Skipped |
---|---|---|---|
Status code is 200 | -1 | -0 | -0 | -
Status code name has string | -1 | -0 | -0 | -
Response time is less than 200ms | -0 | -1 | -0 | -
Content-Type is present | -1 | -0 | -0 | -
Validar se administrador foi alterado para true | -1 | -0 | -0 | -
Total | -4 | -1 | -0 | -
Test Name | Assertion Error |
---|---|
Response time is less than 200ms | -
|
-
Busca lista de usuários completa
-
- Resultados esperados:
-
- \- Response code 20
-
- \- String "Lista de usuários" no corpo do response
-
- \- Tempo de resposta < 2000ms
- Header Name | Header Value |
---|---|
Content-Type | -application/json | -
Authorization | -Bearer Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImZ1bGFub0BxYS5jb20iLCJwYXNzd29yZCI6InRlc3RlIiwiaWF0IjoxNzE3MDAwOTUyLCJleHAiOjE3MTcwMDE1NTJ9.vaM4akQdlrs-N_d5LXF3q9zum7-VKqA8lggSYPRvNEw | -
User-Agent | -PostmanRuntime/7.37.1 | -
Accept | -*/* | -
Cache-Control | -no-cache | -
Postman-Token | -68ac9a4d-bf81-4fc6-b938-88502de78a64 | -
Host | -serverest.dev | -
Accept-Encoding | -gzip, deflate, br | -
Connection | -keep-alive | -
Header Name | Header Value |
---|---|
access-control-allow-origin | -* | -
x-dns-prefetch-control | -off | -
x-frame-options | -SAMEORIGIN | -
strict-transport-security | -max-age=15552000; includeSubDomains | -
x-download-options | -noopen | -
x-content-type-options | -nosniff | -
x-xss-protection | -1; mode=block | -
content-type | -application/json; charset=utf-8 | -
X-Cloud-Trace-Context | -7206f0f53d44b2454a794b4eda20a350 | -
Date | -Wed, 29 May 2024 16:42:33 GMT | -
Server | -Google Frontend | -
Content-Length | -51 | -
{
- "message": "Registro excluído com sucesso"
- }
- Name | Passed | Failed | Skipped |
---|---|---|---|
Body matches string | -1 | -0 | -0 | -
Total | -1 | -0 | -0 | -
Test Name | Assertion Error |
---|