Skip to content

Commit cc6d57a

Browse files
committed
KaneAI Network Assertion
1 parent 4cc7d9c commit cc6d57a

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed
-1.12 MB
Loading
-1.19 MB
Loading
-595 KB
Loading
119 KB
Loading
-492 KB
Loading

docs/kaneai-network-assertions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,32 +46,32 @@ This is useful when you need to ensure that API calls, response codes, payloads,
4646

4747
# Let's see how to add Network Assertions in a Test
4848

49-
- Start a Desktop/Mobile Web Test.
49+
- **Start a test session** (Desktop or Mobile Web).
5050

5151
- To add Network Assertions you have to make some API calls. After going to your desired site or hitting API request, you can see the Network calls made so far through the **Assert Network Logs** option available in the " / " commands.
5252

5353
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/hit-network-req.png').default} alt="Image" className="doc_img img_center"/>
5454

5555
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-assertion-button.png').default} alt="Image" className="doc_img img_center"/>
5656

57-
- Here you will find all the Network requests made in this session so far, you can filter the requests on basis of **Statuses** or **Methods**:
57+
- Here you will find all the Network requests made in this session so far, you can filter the requests on basis of **Status Code** or **HTTP Methods**:
5858

5959
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-logs.png').default} alt="Image" className="doc_img img_center"/>
6060

61-
- You can select specific keys from the Request Headers or add entire Request or Response block in the Assertion by clicking on the `Add Assertion`. All the specified values will be asserted in a single step.
61+
- You can select specific keys from the **Request Headers**, or add entire **Request** or **Response blocks** in the assertion by clicking on `Add Assertion`. All chosen values are validated in a single step.
6262

6363
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-log-headers.png').default} alt="Image" className="doc_img img_center"/>
6464

65-
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-log-headers.png').default} alt="Image" className="doc_img img_center"/>
65+
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-log-response.png').default} alt="Image" className="doc_img img_center"/>
6666

67-
- The Request will be stored as an variable & assertions will be made using that.
67+
- Once added, the request will be stored as a **variable**. KaneAI then makes assertions based on this variable.
6868

6969
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-assertion-block.png').default} alt="Image" className="doc_img img_center"/>
7070

71-
- You can re-use that particular request again through the `{{` syntax.
71+
- You can re-use the request later in your test using the familiar `{{variable}}` syntax.
7272

7373
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/network-req-variable.png').default} alt="Image" className="doc_img img_center"/>
7474

75-
- Variable will be stored in Json format so you can use `header.status` type syntax to get the nested values/objects.
75+
- The stored variable is in **JSON format**, so you can easily access nested values with dot-notation (e.g., `header.status`).
7676

7777
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/child-variables.png').default} alt="Image" className="doc_img img_center"/>

0 commit comments

Comments
 (0)