Skip to content

Commit

Permalink
Merge pull request #149 from Ishavyas9/main
Browse files Browse the repository at this point in the history
Charles Proxy add.
  • Loading branch information
surishubham authored Feb 6, 2024
2 parents cde6cf0 + e9fdd68 commit 77e044b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 36 deletions.
Binary file added assets/images/charles/Charles_RD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion docs/app-auto-network-throttling.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ To utilize the **networkProfile** capability, ensure that you include `network:
| 4g-lte-advanced-good | 25 Mbps | 12 Mbps | 20 ms |
| default | NA | NA | NA |

---
> Download speed is currently stable, expect additional feature updates shortly.

### Custom Profiles

- **LambdaHook:** Define and implement custom network profiles with LambdaHook by specifying the maximum download speed (kbps), maximum upload speed (kbps), and latency (ms) for the custom condition, as illustrated in the example.
Expand Down
28 changes: 26 additions & 2 deletions docs/charles-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Now you need to setup and configure the LambdaTest Tunnel through which you will

To configure the tunnel, you need to download the **LambdaTest's Tunnel Binary File** following the steps mentioned in the pre-requisites before. You can find the shell command in the [LambdaTest Dashboard](https://accounts.lambdatest.com/dashboard) to setup a basic tunnel.

<img loading="lazy" src={require('../assets/images/charles/charles2.webp').default} alt="cmd" className="doc_img" width="806" height="544"/>
<img loading="lazy" src={require('../assets/images/charles/Charles_RD.png').default} alt="cmd" className="doc_img" width="806" height="544"/>

---

Expand Down Expand Up @@ -169,6 +169,30 @@ On clicking the **Launch** button, you will be able to start the tunnel with the

<img loading="lazy" src={require('../assets/images/charles/underpass3.png').default} alt="cmd" className="doc_img"/>

## Steps to download the SSL certificate in the LambdaTest Private Real Devices:

---
> Only for **Private Cloud** Users.
**Step 1:** Launch the session with the tunnel which we have enabled and visit http://chls.pro/ssl site to download the SSL certificate.

**Step 2:** Visit the settings of the device and search for "CA certificate"



**Step 3:** Click on CA certificate

<img loading="lazy" src={require('../assets/images/charles/real_device_ssl1.png').default} alt="cmd" className="doc_img"/>


**Step 4:** Confirm installation by clicking "Install Anyway" when prompted.

<img loading="lazy" src={require('../assets/images/charles/real_device_ssl2.png').default} alt="cmd" className="doc_img"/>

**Step 5:** Select the Charles Proxy SSL proxying certificate to install it.

<img loading="lazy" src={require('../assets/images/charles/real_device_ssl3.png').default} alt="cmd" className="doc_img"/>

## Viewing Network Logs Through Charles Proxy

---
Expand Down Expand Up @@ -275,4 +299,4 @@ Now when we try opening the URL, we can see the `lambdatest` appear in the place
</span>
</li>
</ul>
</nav>
</nav>
35 changes: 2 additions & 33 deletions docs/getting-started-with-appium-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,44 +83,13 @@ Upload your iOS application (.ipa file) or android application (.apk file) to th
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs className="docs__val">
<TabItem value="MacOS" label="MacOS" default>

```bash
curl -u "shantanuw:abcdefghijklmnopqrstuvwxyz" \
--location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \
--form 'name="Android_App"' \
--form 'appFile=@"/Users/shantanuwali/Desktop/LT_Java_Appium/proverbial_android.apk"'
```

</TabItem>
<TabItem value="windows" label="Windows" default>

<Tabs className="docs__val">
<TabItem value="macos-url" label="Linux / MacOS" default>

<div className="lambdatest__codeblock">
<CodeBlock className="language-bash">
{`curl -u "${ YOUR_LAMBDATEST_USERNAME()}:${ YOUR_LAMBDATEST_ACCESS_KEY()}" \\
--location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \\
--form 'name="Android_App"' \\
--form 'url="https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk"'`}
</CodeBlock>
</div>

</TabItem>

<TabItem value="windows-url" label="Windows" default>
<div className="lambdatest__codeblock">
<CodeBlock className="language-powershell">
{`curl -u "${ YOUR_LAMBDATEST_USERNAME()}:${ YOUR_LAMBDATEST_ACCESS_KEY()}" --location --request POST "https://manual-api.lambdatest.com/app/upload/realDevice" --header "Content-Type: application/x-www-form-urlencoded" --data-urlencode "url=:https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk" --data-urlencode "name=Proverbial_App"`}
{`curl -u "${ YOUR_LAMBDATEST_USERNAME()}:${ YOUR_LAMBDATEST_ACCESS_KEY()}" -X POST "https://manual-api.lambdatest.com/app/upload/realDevice" -F "appFile=@"/Users/macuser/Downloads/proverbial_android.apk"" -F "name="proverbial_app""
`}
</CodeBlock>
</div>
</TabItem>
</Tabs>

</TabItem>
</Tabs>

:::info Note

Expand Down

0 comments on commit 77e044b

Please sign in to comment.