Skip to content

Commit bc06b43

Browse files
Manuraj-7Ishavyas9
authored andcommitted
network assertions doc changes
1 parent b24f4b6 commit bc06b43

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

docs/kaneai-network-assertions.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
id: kane-ai-network-assertions
3-
title: Network Assertions
3+
title: Network Logs Assertions
44
hide_title: false
5-
sidebar_label: Network Assertions
6-
description: In this detailed guide, you will learn how you can add network assertions in your tests.
5+
sidebar_label: Network Logs Assertions
6+
description: In this detailed guide, you will learn how you can add network logs assertions in your tests.
77
keywords:
88
- network
9-
- network assertion
9+
- network logs assertion
1010
- assertion
1111
- lambdatest kaneai
1212
url: https://www.lambdatest.com/support/docs/kane-ai-network-assertions
@@ -40,21 +40,21 @@ import TabItem from '@theme/TabItem';
4040
})
4141
}}
4242
></script>
43-
# Network Assertions
44-
The **Network Assertions** feature in KaneAI enables you to test and validate the behavior of your application at the **network layer**.
43+
# Network Logs Assertions
44+
The **Network Logs Assertions** feature in KaneAI enables you to test and validate the behavior of your application at the **network layer**.
4545
This is useful when you need to ensure that API calls, response codes, payloads, or request timings meet expected conditions during your test executions.
4646

47-
# Let's see how to add Network Assertions in a Test
47+
# Let's see how to add Network Logs Assertions in a Test
4848

4949
- **Start a test session** (Desktop or Mobile Web).
5050

51-
- 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.
51+
- All network calls are automatically recorded in the background as you navigate through your application, 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 **Status Code** or **HTTP Methods**:
57+
- Here you will find all the Network requests made in this session so far and **having the Json data format**, 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

@@ -68,10 +68,16 @@ This is useful when you need to ensure that API calls, response codes, payloads,
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+
#### How to validate a specific object in request or response of an API?
72+
7173
- You can re-use the request later in your test using the familiar `{{variable}}` syntax.
7274

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

7577
- The stored variable is in **JSON format**, so you can easily access nested values with dot-notation (e.g., `header.status`).
7678

77-
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/child-variables.png').default} alt="Image" className="doc_img img_center"/>
79+
<img loading="lazy" src={require('../assets/images/kane-ai/features/network-assertions/child-variables.png').default} alt="Image" className="doc_img img_center"/>
80+
81+
:::note
82+
This feature is not enabled for all users. Please contact our support team to request access.
83+
:::

0 commit comments

Comments
 (0)