You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/http-examples.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,14 @@ title: Http examples
6
6
7
7
- This page should be use as reference for specification files.
8
8
- This page is subject to change. It is requested to check this page frequently.
9
+
9
10
:::
10
11
11
12
:::note
12
13
Case-wise more example can be found in [https://github.com/chkware/cli](https://github.com/chkware/cli/tree/main/tests/resources/storage/sample_config) repository
Following examples are using HTTP _GET_ and _POST_ method. Although all these example are still valid for _POST_, _PUT_, _PATCH_, _DELETE_, _OPTIONS_, _HEAD_ method as well. You can still send a request body with _GET_ or _HEAD_ method for the sake of testing API.
Copy file name to clipboardExpand all lines: docs/home.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ API quality test, and automation management is not easy to develop, and maintain
16
16
17
17
**_CHKware_** (pronounced as _/tʃek-wer/_, i.e. _check-ware_) is a low-code API quality testing, and automation toolbox. It helps you write accurate, robust, and expressive feature tests for your API in less time than usual.
18
18
19
-
Read [about the problems](/introduction)_CHKware_ addresses. Find [changelog](https://github.com/chkware/cli/blob/main/docs/CHANGELOG.md).
19
+
Read [about the problems](/docs/introduction)_CHKware_ addresses. Find [changelog](https://github.com/chkware/cli/blob/main/docs/CHANGELOG.md).
20
20
21
21
### Setup
22
22
@@ -26,11 +26,11 @@ With [**Python 3.11**](https://www.python.org/downloads/) and [**Pipx**](https:/
26
26
pipx install chk
27
27
```
28
28
29
-
Jump to the [setup guide](/setup) for different ways to install **_CHKware_**.
29
+
Jump to the [setup guide](/docs/setup) for different ways to install **_CHKware_**.
Copy file name to clipboardExpand all lines: docs/quick-start.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ title: Quick Start
4
4
5
5
:::note
6
6
7
-
-**Prerequisite**: First, [setup **CHKware**](/setup) to continue
8
-
- Find [More `http` examples](/examples/http-examples) here
7
+
-**Prerequisite**: First, [setup **CHKware**](/docs/setup) to continue
8
+
- Find [More `http` examples](/docs/examples/http-examples) here
9
9
10
10
:::
11
11
@@ -56,13 +56,13 @@ Let's call an API that returns current bitcoin price in USD, and test it. Please
56
56
57
57
### Explanation
58
58
59
-
We call this `bitcoin-usd-testcase.chk` a spec or specification file. The content that you put was a [testcase specification](/references/testcase-reference).
59
+
We call this `bitcoin-usd-testcase.chk` a spec or specification file. The content that you put was a [testcase specification](/docs/references/testcase-reference).
60
60
61
61
Let us look into the content and see what we wrote.
62
62
63
63
On 1st line we wrote document version with `version:` same as we do on other config files i.e. terraform, ansible, etc. This is not all too important now.
64
64
65
-
On 2nd line, we wrote a `request:` block, which define how to sent the request to server. More on this block on [http specification](/references/http-reference).
65
+
On 2nd line, we wrote a `request:` block, which define how to sent the request to server. More on this block on [http specification](/docs/references/http-reference).
66
66
67
67
Then we wrote a `asserts:` sub-section under `spec:` block which defines how to check the response those we received.
Copy file name to clipboardExpand all lines: docs/references/assertion-reference.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ title: Assertion reference
10
10
11
11
:::
12
12
13
-
Assertions are integral part of [Testcase spec.](/references/testcase-reference) Following are the assertion keys supported in most latest version of Testcase spec.
13
+
Assertions are integral part of [Testcase spec.](/docs/references/testcase-reference) Following are the assertion keys supported in most latest version of Testcase spec.
14
14
15
15
Assertions are used to validate data in testcase specification after http request execution has successfully returned the response.
Copy file name to clipboardExpand all lines: docs/references/concepts.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ There are two parts to **`CHKware`** tool.
15
15
16
16
This sub command runs a file written in [http specification file](http-reference) format.
17
17
18
-
After you execute this command `chk` should make request by given request format, and display the response. You can also customize the response with `expose` key. see [usage](/examples/http-examples#request-with-form) and [documentation](/references/http-reference).
18
+
After you execute this command `chk` should make request by given request format, and display the response. You can also customize the response with `expose` key. see [usage](/docs/examples/http-examples#request-with-form) and [documentation](/docs/references/http-reference).
19
19
20
20
#### Options
21
21
@@ -33,7 +33,7 @@ There are two parts to **`CHKware`** tool.
33
33
34
34
This sub command runs a file written in [testcase specification file](testcase-reference) format.
35
35
36
-
After you execute this command `chk` should re-use `http` utility to request as per given structure on the file, execute test assertions, and display the result of the assertions. See [example](/examples/testcase-examples).
36
+
After you execute this command `chk` should re-use `http` utility to request as per given structure on the file, execute test assertions, and display the result of the assertions. See [example](/docs/examples/testcase-examples).
Copy file name to clipboardExpand all lines: docs/references/http-reference.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ The **Http specification format** is how anyone express a Http request. Followin
13
13
14
14
Http specification document is a _**versioned document**_, meaning there MUST be a `version:` key on the document.
15
15
16
-
It's also an _**exposable document**_ meaning you can expose local data using `expose:` key in the document. More on this in [variable spec. reference](/references/variable-reference)
16
+
It's also an _**exposable document**_ meaning you can expose local data using `expose:` key in the document. More on this in [variable spec. reference](/docs/references/variable-reference)
17
17
18
18
### All supported nodes in http specification document
19
19
@@ -120,13 +120,13 @@ expose:
120
120
121
121
### `version` (<small>_`required`_</small>)
122
122
123
-
`version`is a top-level block that defines a document version. How to write a `version:` block is already defined in [_version reference_](/references/version-reference).
123
+
`version`is a top-level block that defines a document version. How to write a `version:` block is already defined in [_version reference_](/docs/references/version-reference).
124
124
125
125
### `variables`
126
126
127
-
`variables`is a top-level block that defines local variables. These variables are file scoped. How to write a `variables:` block is already defined in [_variable-reference_](/references/variable-reference).
127
+
`variables`is a top-level block that defines local variables. These variables are file scoped. How to write a `variables:` block is already defined in [_variable-reference_](/docs/references/variable-reference).
128
128
129
-
One special local variable named `_response` get added after the response received successfully. This local variable is accessible under [_exposable block_](/references/variable-reference#exposable).
129
+
One special local variable named `_response` get added after the response received successfully. This local variable is accessible under [_exposable block_](/docs/references/variable-reference#exposable).
130
130
131
131
### `request` (<small>_`required`_</small>)
132
132
@@ -304,4 +304,4 @@ request:
304
304
305
305
For http specification document local variable called `_response` which holds successful response, is available.
306
306
307
-
See docs on [expose node](/references/variable-reference#expose-node)
307
+
See docs on [expose node](/docs/references/variable-reference#expose-node)
Copy file name to clipboardExpand all lines: docs/references/testcase-reference.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The _Testcase specification_ format is how anyone express one or more test case(
16
16
17
17
Testcase specification document is a versioned document, meaning there MUST be a `version:` key on the document.
18
18
19
-
It's also an _**exposable document**_ meaning you can expose local data using `expose:` key in the document. More on this in [variable spec. reference](/references/variable-reference)
19
+
It's also an _**exposable document**_ meaning you can expose local data using `expose:` key in the document. More on this in [variable spec. reference](/docs/references/variable-reference)
20
20
21
21
### Reference as example
22
22
@@ -60,7 +60,7 @@ expose:
60
60
- "{$_response}"
61
61
```
62
62
63
-
#### 2. `request` in separate http spec. doc.
63
+
#### 2. `request` in separate http spec. doc
64
64
65
65
```yaml
66
66
# file: some-request.chk
@@ -103,20 +103,20 @@ expose: ~
103
103
104
104
### `version` (<small>_`required`_</small>)
105
105
106
-
`version`is a top-level block that defines a document version. How to write a `version:` block, is [already defined here](/references/version-reference).
106
+
`version`is a top-level block that defines a document version. How to write a `version:` block, is [already defined here](/docs/references/version-reference).
107
107
108
108
### `request`
109
109
110
110
- _`required`_ if no external http spec. doc to be linked
111
111
- _`must not`_ if `spec.execute.file` if a http specification doc is linked
112
112
113
-
`request`is a top-level block that defines a http request. How to write a `request:` block, is [already defined here](/references/http-reference#request-required).
113
+
`request`is a top-level block that defines a http request. How to write a `request:` block, is [already defined here](/docs/references/http-reference#request-required).
114
114
115
115
`request`block, and `spec.execute.file` MUST NOT stay on same file. System will throw an error on that case.
116
116
117
117
### `variables`
118
118
119
-
`variables`is a top-level block that defines local variables. These variables are file scoped. How to write a `variables:` block, is [already defined here](/references/variable-reference).
119
+
`variables`is a top-level block that defines local variables. These variables are file scoped. How to write a `variables:` block, is [already defined here](/docs/references/variable-reference).
120
120
121
121
### `spec` (<small>_`required`_</small>)
122
122
@@ -169,12 +169,12 @@ spec:
169
169
actual: "{$Response}"
170
170
```
171
171
172
-
[More about assertions](/references/assertion-reference) can be found here.
172
+
[More about assertions](/docs/references/assertion-reference) can be found here.
173
173
174
174
### `expose`
175
175
176
176
`expose`is a sub-block, that can be used to expose local variable of this file to outer scope.
177
177
178
178
For testcase specification document local variable called `_assertion_results` which holds after assertion output, and `_response` which holds response after request execute, are available.
179
179
180
-
See docs on [expose node](/references/variable-reference#expose-node)
180
+
See docs on [expose node](/docs/references/variable-reference#expose-node)
0 commit comments