Skip to content

Commit

Permalink
Added a doc for Google Play Store (DC)) (#390)
Browse files Browse the repository at this point in the history
Added a new document for setting google playstore creds using desired capabilities.
  • Loading branch information
bharathk08 authored Apr 3, 2024
1 parent 8ead349 commit 20c9367
Show file tree
Hide file tree
Showing 11 changed files with 116 additions and 23 deletions.
22 changes: 17 additions & 5 deletions src/left-nav-title.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
"/docs/visual-testing/update-baseline/": "Update Baseline"
},
"most-common": {
"/docs/desired-capabilities/most-common/": "Most Common Desired Capabilities List"
"/docs/desired-capabilities/most-common/": "Most Common Desired Capabilities"
},
"enable-browser-console-logs": {
"/docs/desired-capabilities/enable-browser-console-logs/": "Enable Browser Console Debugging logs"
Expand All @@ -405,16 +405,16 @@
"/docs/desired-capabilities/geo-location-for-localization/": "Geo location for Localization(L10N)"
},
"avoid-unsafe-download-prompt": {
"/docs/desired-capabilities/avoid-unsafe-download-prompt/": "Avoid unsafe download prompt(Chrome)"
"/docs/desired-capabilities/avoid-unsafe-download-prompt/": "Bypass Unsafe Download Prompt"
},
"set-geo-location": {
"/docs/desired-capabilities/set-geo-location/": "Set geo location(latitude, longitude) Chrome & Firefox"
"/docs/desired-capabilities/set-geo-location/": "Geolocation for Chrome & Firefox"
},
"custom-user-profile-chrome": {
"/docs/desired-capabilities/custom-user-profile-chrome/": "Custom User Profile - Chrome"
"/docs/desired-capabilities/custom-user-profile-chrome/": "Custom User Profile in Chrome"
},
"emulate-mobile-devices-with-chrome": {
"/docs/desired-capabilities/emulate-mobile-devices-with-chrome/": "Emulate Mobile devices with Chrome Browser"
"/docs/desired-capabilities/emulate-mobile-devices-with-chrome/": "Emulate Mobile Devices (Chrome)"
},
"add-chrome-extension": {
"/docs/desired-capabilities/add-chrome-extension/": "Add Chrome Extension"
Expand Down Expand Up @@ -631,5 +631,17 @@
},
"automating-captcha":{
"/docs/FAQs/web-apps/automating-captcha/": "Why Bypass CAPTCHA?"
},
"enable-browser-console-logs":{
"/docs/desired-capabilities/enable-browser-console-logs/": "Browser Console Debug Logs"
},
"geo-location-for-localization":{
"/docs/desired-capabilities/geo-location-for-localization/": "Geolocation Emulation"
},
"screen-shot-capture":{
"/docs/desired-capabilities/screen-shot-capture/": "Enable Capturing Screenshots (Android & iOS)"
},
"incognito-mode": {
"/docs/desired-capabilities/incognito-mode/": "Incognito/Private mode"
}
}
9 changes: 5 additions & 4 deletions src/pages/docs/desired-capabilities/app-resigning.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Enable app resigning in iOS"
title: "Enable App Resigning in iOS"
page_title: "Enable app resigning"
metadesc: "Learn how to set a desired capability to re-sign the app with the uploaded provisioning profile to install your app on the device during test execution"
noindex: false
Expand All @@ -9,8 +9,7 @@ search_keyword: ""
warning: false
---

<br>
<br>
---

If you set **ResignEnabled** desiried capability as ***true*** then Testsigma will re-sign the app with the uploaded provisioning profile to install your app on the device during test execution.

Expand All @@ -21,4 +20,6 @@ However, if your app is already signed with ***Apple developer enterprise progra

|Key|Description|
|---|---|
|*resignApp*|1. By default, if this capability is not passed, your app will be re-signed.<br>2. You can call ***resignApp=false*** to prevent your iOS app from being re-signed.|
|*resignApp*|1. By default, if this capability is not passed, your app will be re-signed.<br>2. You can call ***resignApp=false*** to prevent your iOS app from being re-signed.|

---
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Bypass unsafe download prompt in Chrome"
title: "Bypass Unsafe Download Prompt in Chrome"
metadesc: "Learn how to bypass the unsafe download warning prompt by setting a desired capability while downloading a file in your test using Testsigma application"
noindex: false
order: 15.5
Expand Down Expand Up @@ -31,4 +31,7 @@ You should already know how to add Desired Capabilities to your Tests. See [Desi
|---|---|---|
|goog:chromeOptions|String|{ "prefs" : { "safebrowsing.enabled" : "true" } }|

Just add the above Desired Capability in your Execution that contains the Test Step for clicking on the Download link. The browser warning will be silenced for the Test Session.
Just add the above Desired Capability in your Execution that contains the Test Step for clicking on the Download link. The browser warning will be silenced for the Test Session.


---
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Using custom User Profile in Chrome for Tests"
title: "Using Custom User Profile in Chrome"
page_title: "Using custom User Profile in Chrome for Tests in Testsigma"
metadesc: "Custom user profiles help you emulate settings such as pre-installed extensions. Learn how to start the Chrome Browser with a custom User Profile in Test Session using Testsigma"
noindex: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Emulate Mobile devices with Chrome Browser"
title: "Emulate Mobile Devices with Chrome Browser"
metadesc: "With Chrome Browser you emulate mobile device screen resolutions. Learn how to emulate mobile devices using the Google Chrome Web Browser for Mobile Websites"
noindex: false
order: 15.8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Geolocation emulation for Localization Testing"
title: "Geolocation Emulation for Localization Testing"
metadesc: "Learn how to use Desired Capabilities to set the Geographical Location for running tests in Mobile Web in Testsigma Application"
noindex: false
order: 15.4
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/desired-capabilities/incognito-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Run Browser in Incognito/Private mode"
page_title: "Incognito/Private Mode Browser Testing - Testsigma"
metadesc: "Execute browser tests in incognito/private mode with Testsigma for secure and confidential testing environments, safeguarding your web application's privacy."
noindex: false
order: 15.99
order: 15.97
page_id: "run-browser-incognito-tests"
search_keyword: ""
warning: false
Expand Down
12 changes: 8 additions & 4 deletions src/pages/docs/desired-capabilities/screen-shot-capture.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Enable capturing screenshots for Android and iOS"
title: "Enable Capturing Screenshots (Android & iOS)"
page_title: "Enable capturing screenshots for Android and iOS"
metadesc: "While testing application in Testsigma, it is important to enable capturing screenshots. Learn how to enable capturing screenshots for Android and iOS"
noindex: false
Expand All @@ -18,7 +18,7 @@ contextual_links:
url: "#for-ios-applications"
---

<br>
---

In some applications, we can not take a screenshot as the developer will secure the screen. While testing your application in Testsigma, it is important to enable capturing screenshots.

Expand All @@ -27,7 +27,7 @@ This article discusses how to enable capturing screenshots for Android and iOS.
[[info | **NOTE**:]]
|By default, screenshots will be allowed in both Android and iOS. If for some reason the developer has disabled it in **MainActivity** or any other **Activity** you want to inspect inside the app then you have to enable it by removing the code which adds the restriction.

<br>
---

## **For Android Applications**
You can enable capturing screenshots by simply removing the code below in the MainActivity.java or any other Activity you want to inspect.<br>
Expand All @@ -40,5 +40,9 @@ Find the complete code for the **MainActivity.java** file below.

![MainActivity Code](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/java_code_MA.png)

---

## **For iOS Applications**
In iOS applications, if you’re using thirdarty tools to disable screenshot, you need to remove that restriction to allow inspection in Testsigma.
In iOS applications, if you’re using third party tools to disable screenshot, you need to remove that restriction to allow inspection in Testsigma.

---
2 changes: 1 addition & 1 deletion src/pages/docs/desired-capabilities/set-geo-location.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Set Geolocation for Tests in Chrome and Firefox"
title: "Set Geolocation for Tests in Chrome & Firefox"
page_title: "Set Geolocation for your Tests"
metadesc: "Learn how to set the location of your Test Environment where tests are run by using a pair of desired capabilities in Testsigma Application."
noindex: false
Expand Down
63 changes: 63 additions & 0 deletions src/pages/docs/desired-capabilities/set-playstore-credentials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
title: "Set Google Play Store Credentials"
page_title: "Capability to Access Google Play Store"
metadesc: "This article discusses the capability you need to set to access Google Play Store services & test services like in-app purchase flows, verify payments, and production version"
noindex: false
order: 15.98
page_id: "Access Google Play Store"
search_keyword: ""
warning: false
contextual_links:
- type: section
name: "Contents"
- type: link
name: "Prerequisites"
url: "#prerequisites"
- type: link
name: "Desired Capability to Access Google Play Store"
url: "#desired-capability-to-access-google-play-store"
- type: link
name: "Using Google Play Store Credentials Capability"
url: "#using-google-play-store-credentials-capability"
---

---

With Testsigma, you can test Google Playstore in-app purchase flows, verify payment acceptance using Google Pay, or test the production version of your app downloaded from the Google Play Store. This article discusses the desired capability you need to set to access Google Play Store services.

---

## **Prerequisites**

- You should know how to [create ad hoc runs](https://testsigma.com/docs/runs/adhoc-runs/).

---

## **Desired Capability to Access Google Play Store**

In order to access Google Play Store, you can use the following desired capability to pass your own credentials for Google Play Store login:

**browserstack.appStoreConfiguration**

|**Name**|**Data Type**|**Value**|
|---|---|---|
|browserstack.appStoreConfiguration|String|{“username” : “play-store-email”,<br> “password” : “play-store-password”}|


---

## **Using Google Play Store Credentials Capability**

1. Click on **Run** from the **Test Case Details** page.
![Run](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/gpsrun.png)

2. On the **Ad-Hoc Run** overlay, click on **Desired Capabilities**.
![Ad-Hoc Run](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/gpsdc.png)

1. Enter **browserstack.appStoreConfiguration** in the **Key** field, select **String** as the **Data type**, and set the **Value** with **Username & Password**.
![Key](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/gpsahrol.png)

1. Click on **Run Now** to execute the test case.
![Run Now](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/gpsrn.png)

---
16 changes: 13 additions & 3 deletions src/pages/docs/desired-capabilities/webviews.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Configure Android WebViews"
page_title: "webviews"
metadesc: "To inspect WebView elements in Testsigma, WebView debugging must be enabled within your application. Learn how to configure Android WebViews."
noindex: false
order: 15.98
order: 15.96
page_id: "webviews"
search_keyword: ""
warning: false
Expand All @@ -22,7 +22,8 @@ contextual_links:
---


<br>
---


For inspecting WebView elements in Testsigma, WebView debugging must be enabled within your application.

Expand All @@ -34,16 +35,25 @@ To enable WebView debugging, call the static method ***setWebContentsDebuggingEn
[[info | **NOTE**:]]
|The setting applies to all of the Android WebViews of the app.

---


## **Example React Native generated code**
![React Native Code](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/RN.png)

---

## **Example Java Android code**
![Java Code](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/java_debug.png)

---

## **Example Kotlin Android code**
![Kotlin Code](https://s3.amazonaws.com/static-docs.testsigma.com/new_images/projects/applications/kotlin.png)

[[info | **NOTE**:]]
|
| - Android WebView debugging isn't affected by the state of the debuggable flag in the manifest of the app.
| - If you want to enable WebView debugging only when debuggable is true, set the flag as ***WebView.setWebContentsDebuggingEnabled(BuildConfig.DEBUG)***
| - If you want to enable WebView debugging only when debuggable is true, set the flag as ***WebView.setWebContentsDebuggingEnabled(BuildConfig.DEBUG)***

---

0 comments on commit 20c9367

Please sign in to comment.