Skip to content

Commit 85eef8f

Browse files
authored
Merge pull request #982 from Aman1905/stage
updated the app profiling documentation
2 parents 9810408 + c0a0634 commit 85eef8f

File tree

10 files changed

+37
-20
lines changed

10 files changed

+37
-20
lines changed

assets/images/appium-app/2.png

-64.4 KB
Binary file not shown.
64.8 KB
Loading
32.5 KB
Loading

assets/images/appium-app/cpu.png

70 KB
Loading
42.6 KB
Loading
44.6 KB
Loading
59.3 KB
Loading
33.7 KB
Loading

docs/appium-app-performance.md

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ site_name: LambdaTest
1313
slug: appium-app-performance-analytics/
1414
---
1515

16+
import CodeBlock from '@theme/CodeBlock';
17+
import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/component/keys";
18+
1619
<script type="application/ld+json"
1720
dangerouslySetInnerHTML={{ __html: JSON.stringify({
1821
"@context": "https://schema.org",
@@ -36,8 +39,6 @@ slug: appium-app-performance-analytics/
3639
})
3740
}}
3841
></script>
39-
40-
4142
When it comes to building an application, tracking its performance is crucial. You can follow the performance of your applications with LambdaTest's Real Device cloud platform on metrics like CPU consumption, network usage and many more. Go through the page below to understand each metric that LambdaTest provides you with.
4243

4344
## Metrics
@@ -54,6 +55,8 @@ LambdaTest provides you with two metrics in a time-series format representing th
5455

5556
2. **App CPU Usage (%)**: The share of "System CPU usage" being used by the AUT.
5657

58+
<img loading="lazy" src={require('../assets/images/appium-app/cpu.png').default} alt="cmd" width="768" height="373" className="doc_img"/>
59+
5760
***
5861

5962
### 2. Memory Consumption
@@ -68,6 +71,8 @@ LambdaTest provides you with three metrics in a time-series format representing
6871
2. Memory Consumed by your application (in MB) throughout the session
6972
3. Memory Available for use (in MB) throughout the session
7073

74+
<img loading="lazy" src={require('../assets/images/appium-app/memory.png').default} alt="cmd" width="768" height="373" className="doc_img"/>
75+
7176
***
7277

7378
### 3. Battery
@@ -76,15 +81,15 @@ A high-performing app could also drain the mobile device's battery quickly, affe
7681

7782
You can monitor the battery drained while using your app and subsequently optimize the features that may contribute to a lot of battery drain, improving the battery life of devices running your app.
7883

84+
<img loading="lazy" src={require('../assets/images/appium-app/battery.png').default} alt="cmd" width="768" height="373" className="doc_img"/>
85+
7986
***
8087

8188
### 4. Temperature
8289

83-
You can identify elements that cause the battery to overheat by monitoring the battery temperatures while using your app.
90+
You can identify elements that cause the battery to overheat by monitoring the battery temperatures while using your app. This might help you decide which features to optimise first to save energy and prolong the battery life of the devices running your app. You won't have to worry about your smartphone overheating or encountering performance issues due to a heated battery, improving the user experience.
8491

85-
This might help you decide which features to optimise first to save energy and prolong the battery life of the devices running your app.
86-
87-
Users won't have to worry about their smartphone overheating or encountering performance issues due to a heated battery, improving the user experience.
92+
<img loading="lazy" src={require('../assets/images/appium-app/temperature.png').default} alt="cmd" width="768" height="373" className="doc_img"/>
8893

8994
***
9095

@@ -94,6 +99,8 @@ Rendering performance is a typical performance issue that any app faces. Renderi
9499

95100
LambdaTest provides the frames rate or FPS (frames per second) observed throughout the session.
96101

102+
<img loading="lazy" src={require('../assets/images/appium-app/rendering.png').default} alt="cmd" width="768" height="373" className="doc_img"/>
103+
97104
***
98105

99106
### 6. Network Usage
@@ -106,13 +113,13 @@ LambdaTest provides the following information to capture network usage better:
106113
1. Network download size throughout the session in time-series
107114
2. Network upload size throughout the session in time-series
108115

116+
<img loading="lazy" src={require('../assets/images/appium-app/network.png').default} alt="cmd" width="768" height="373" className="doc_img"/>
117+
109118
***
110119

111120
### 7. ANR (Application Not Responding)
112121

113-
Sometimes, your application stops responding, and you receive a pop-up to wait or close the app. Knowing what part of the application's life cycle results in an ANR and in which condition is critical.
114-
115-
Such instances can ruin the user experience, especially when inputting any information.
122+
Sometimes, your application stops responding, and you receive a pop-up to wait or close the app. Knowing what part of the application's life cycle results in an ANR and in which condition is critical. Such instances can ruin the user experience, especially when inputting any information.
116123

117124
LambdaTest provides information on the number of times your app faced ANR and a dump of logs to find more details quickly. However, this feature is supported only for Android devices for now.
118125

@@ -130,20 +137,30 @@ This can result in a more responsive and smoother user experience. Currently, yo
130137

131138
### Track the Metrics via App Automation
132139

133-
You can track the performance metrics for your application inside an app automation test. The data will be captured at the test level and shown on the test details page.
140+
You can track the performance metrics for your application inside an app automation test. The data will be captured at the test level and shown on the test details page. Just add the following capability inside your test, and set it to `true`.
134141

135-
Just add the following capability inside your test, and set it to `true`.
136-
137-
```bash
142+
```javascript
138143
"appProfiling" : true;
139144
```
140145

141-
> **Note**: The `appProfiling` flag is supported for Appium tests on iOS and Android devices. However, it is only supported on devices with an Android version of 9 or above and tests where the `resignApp` capability is not set to `false`.
146+
:::tip
147+
The `appProfiling` flag is supported for Appium tests on iOS and Android devices. However, it is only supported on devices with an **Android version >=9** and tests where the `resignApp` capability is not set to `false`.
148+
:::
142149

143-
A sample output of this test will look like:
150+
:::note
151+
You can also also use this API to enable the app profiling feature in your tests:
144152

145-
<img loading="lazy" src={require('../assets/images/appium-app/2.png').default} alt="cmd" width="768" height="373" className="doc_img"/>
153+
<div className="lambdatest__codeblock">
154+
<CodeBlock className="language-bash">
155+
{`https://${ YOUR_LAMBDATEST_USERNAME()}:${ YOUR_LAMBDATEST_ACCESS_KEY()}@mobile-api.lambdatest.com/mobile-automation/api/v1/sessions/`}
156+
</CodeBlock>
157+
</div>
158+
159+
:::
160+
161+
A sample output of this test will look like:
146162

163+
<img loading="lazy" src={require('../assets/images/appium-app/app-profiling.png').default} alt="cmd" width="768" height="373" className="doc_img"/>
147164

148165
***
149166

docs/automated-ss-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ In case you wish to fetch all the details from an already executed screenshot te
189189
```javascript
190190
https://api.lambdatest.com/screenshots/v1/Test ID
191191
```
192-
>
193-
**Note:** Test ID is a mandatory field for making use of this GET request. This would fetch details in JSON format for all bulk screenshots captured in a test session specified by you.
192+
193+
> **Note:** Test ID is a mandatory field for making use of this GET request. This would fetch details in JSON format for all bulk screenshots captured in a test session specified by you.
194194
195195
Client URL would be:
196196

@@ -376,8 +376,8 @@ https://api.lambdatest.com/screenshots/v1/stop/TES11111111111111111111
376376
Client URL: curl -X PUT "https://api.lambdatest.com/screenshots/v1/stop/TES100962431563281759448763"
377377
-H "accept: application/json" -H "Authorization: Basic 123456789abcdefghijklmno="
378378
```
379-
>
380-
**Note:** This will terminate only a running test session. Providing a TestID of an already completed test session will provide you with a 404 error as the server response.
379+
380+
> **Note:** This will terminate only a running test session. Providing a TestID of an already completed test session will provide you with a 404 error as the server response.
381381
382382
<nav aria-label="breadcrumbs">
383383
<ul className="breadcrumbs">

0 commit comments

Comments
 (0)