diff --git a/pom.xml b/pom.xml
index 3a4b17d..2d9cfa4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
https://rickandmortyapi.com/api
--glue io/lippia/api/lowcode/steps --glue ar/steps
--glue com/crowdar/bdd/cukes --glue ar/apiExampleProject/hook
- @petstore
+ @Clockify
--plugin pretty --plugin ar.reports.CucumberReporter:
src/test/resources/features ${cucumber.hooks} ${cucumber.stepsDefinitions} --tags 'not @Ignore' --tags ${cucumber.tags} ${cucumber.reporters}
API
diff --git a/src/test/resources/features/Sample.feature b/src/test/resources/features/Sample.feature
index 46b64f9..c961578 100644
--- a/src/test/resources/features/Sample.feature
+++ b/src/test/resources/features/Sample.feature
@@ -1,60 +1,74 @@
-@Sample
-Feature: Sample
-
- Background:
- And header Content-Type = application/json
- And header Accept = */*
-
-
- @RickAndMorty
- Scenario Outline: Get character
- Given base url env.base_url_rickAndMorty
- And endpoint character/
- When execute method GET
- Then the status code should be 200
- And response should be $.name =
- And response should be $.status =
- And validate schema character.json
-
- Examples:
- | id_character | name | status |
- | 1 | Rick Sanchez | Alive |
- | 2 | Morty Smith | Alive |
-
- @petstore
- Scenario Outline: Add a new pet to the store
- Given base url env.base_url_petstore
- And endpoint pet
- And header accept = application/json
- And header Content-Type = application/json
- And body body.json
- When execute method POST
- Then the status code should be 200
- And response should be name =
- And validate schema pet.json
-
- Examples:
- | name |
- | doggie |
-
- @petstore
- Scenario Outline: Add a new pet to the store
- Given base url env.base_url_petstore
- And endpoint pet
- And header accept = application/json
- And header Content-Type = application/json
- And delete keyValue tags[0].id in body body.json
- And set value 15 of key tags[1].id in body body.json
- And set value "tag2" of key tags[1].name in body body.json
- When execute method POST
- Then the status code should be 200
- And response should be name =
- And validate schema pet.json
-
- Examples:
- | name |
- | doggie |
-
-
-
-
+@Clockify
+Feature: clockify
+ @Listar_espacios_de_trabajos
+ Scenario:listar espacios de trabajos
+ Given base url https://api.clockify.me/api
+ And endpoint /v1/workspaces
+ And header Content-Type = application/json
+ And header Accept = */*
+ And header x-api-key = NGRhZjQ2ZTMtYTczYS00ZDk2LTk3ZGMtNDQ0MDNjZTFkNTFi
+ When execute method GET
+ Then the status code should be 200
+ * define workspaceId = $.[0].id
+
+ @ListarClientes
+ Scenario: Listar clientes
+ Given call Sample.feature@Listar_espacios_de_trabajos
+ And base url https://api.clockify.me/api
+ And endpoint /v1/workspaces/{{workspaceId}}/clients
+ And header Content-Type = application/json
+ And header Accept = */*
+ And header x-api-key = NGRhZjQ2ZTMtYTczYS00ZDk2LTk3ZGMtNDQ0MDNjZTFkNTFi
+ When execute method GET
+ Then the status code should be 200
+
+ @Agregar_clientes_a_Workspaces
+ Scenario: Agregar clientes
+ Given call Sample.feature@Listar_espacios_de_trabajos
+ And base url https://api.clockify.me/api/
+ And endpoint /v1/workspaces/{{workspaceId}}/clients
+ And header Content-Type = application/json
+ And header Accept = */*
+ And header x-api-key = NGRhZjQ2ZTMtYTczYS00ZDk2LTk3ZGMtNDQ0MDNjZTFkNTFi
+ And body addClient.json
+ When execute method POST
+ Then the status code should be 201
+ * define idClient = $.id
+
+ @DeleteClient @Execute
+ Scenario:Eliminar cliente
+ Given call Sample.feature@Agregar_clientes_a_Workspaces
+ And base url https://api.clockify.me/api/
+ And endpoint v1/workspaces/{{workspaceId}}/clients/{{idClient}}
+ And header Content-Type = application/json
+ And header Accept = */*
+ And header x-api-key = NGRhZjQ2ZTMtYTczYS00ZDk2LTk3ZGMtNDQ0MDNjZTFkNTFi
+ When execute method DELETE
+ Then the status code should be 200
+
+ @CrearWorkspaces
+ Scenario: Crear workspaces
+ Given base url https://api.clockify.me/api/
+ And endpoint /v1/workspaces
+ And header Content-Type = application/json
+ And header Accept = */*
+ And header x-api-key = NGRhZjQ2ZTMtYTczYS00ZDk2LTk3ZGMtNDQ0MDNjZTFkNTFi
+ And set value "Work5" of key name in body addWorkspaces.json
+ When execute method POST
+ Then the status code should be 201
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/test/resources/jsons/bodies/addClient.json b/src/test/resources/jsons/bodies/addClient.json
new file mode 100644
index 0000000..dceae81
--- /dev/null
+++ b/src/test/resources/jsons/bodies/addClient.json
@@ -0,0 +1,6 @@
+{
+ "address": "Direcion01",
+ "email": "nestorcordoba@gmail.com",
+ "name": "newClient6",
+ "note": "Ninguna nota"
+}
\ No newline at end of file
diff --git a/src/test/resources/jsons/bodies/addWorkspaces.json b/src/test/resources/jsons/bodies/addWorkspaces.json
new file mode 100644
index 0000000..4a60b89
--- /dev/null
+++ b/src/test/resources/jsons/bodies/addWorkspaces.json
@@ -0,0 +1,3 @@
+{
+ "name": "string"
+}
\ No newline at end of file