-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test automation improvements #1194
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ed during automatic merge
…rigger (was temp. removed for testing)
…ged package name, added buttons of initializing session, Removed Navigation and Read Links buttons
…ll be reverted back before merging into master.
… and upload test results.
This reverts commit 0a67934.
NidhiDixit09
changed the title
Test automation improvements
(WIP) Test automation improvements
Apr 30, 2024
...DK-Automation-TestBed/src/main/java/io/branch/branchandroiddemo/activities/MainActivity.java
Outdated
Show resolved
Hide resolved
Branch-SDK-Automation-TestBed/src/main/java/io/branch/branchandroiddemo/BranchWrapper.java
Outdated
Show resolved
Hide resolved
Branch-SDK-Automation-TestBed/src/main/java/io/branch/branchandroiddemo/BranchWrapper.java
Outdated
Show resolved
Hide resolved
Branch-SDK-Automation-TestBed/src/main/java/io/branch/branchandroiddemo/Constants.java
Show resolved
Hide resolved
gdeluna-branch
changed the title
(WIP) Test automation improvements
Test automation improvements
May 30, 2024
gdeluna-branch
approved these changes
May 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reference
SDK-2355 -- Remove Extra Screens from Automation Testbed Apps.
https://branch.atlassian.net/browse/SDK-2355
Description
-> Removed extra Screens from Automation Testbed App which were earlier used for getting params values for different APIs.
-> Now Params are passed as
optionalIntentArguments
on MainActivity.-> Added classes for parsing json string passed as
optionalIntentArguments
and creating BUO, link refernce etc.-> Added buttons for InitSession, Send V2 Event and Read Logs
-> Added a Test App - Link Click Test. This app is used by Appium tests for testing deep linking.
-> Updated workflow for deug binary signing using keystore file.
Testing Instructions
For Testing using Appium -
Run Appium tests from branch
Test-Automation-Improvements
For manually testing testbed app,
either pass json string with param values from command line
--es "testData" '{"dma_ad_user_data":false,"BUOData":--es "testData" '{"dma_ad_user_data":false,"BUOData":{"imageUrl":"https:\/\/www.qentelli.com\/sites\/default\/files\/qentelli-logo.svg","canonicalIdentifier":"content\/1","trackContentData":"ADD_TO_CART","contentTitle":"When app is already installed, here Instagram","contentDesc":"When all fields provided with valid entries"},"DelayInitialization":true,"dma_eea":true,"Include":"Yes","URL":"\"https:\/\/timber.test-app.link\/80OHAnv8DHb\"","dma_ad_personalization":false,"TrackContentData":{"coupon":"BranchCoupon","description":"Branch Track Content Desc","tax":"100","eventType":"COMMERCE","availability":"available","transactionId":"Branch007XYZ","revenue":"10000","shipping":"12345","purchaseLocation":"US","affiliation":"Affiliation","searchQuery":"nothing","registrationId":"AEU10EEEE1123","alias":"My Alias","currency":"AED","additionalData":"Track content Commerce Additional data","customEventProperty2":"My custom event2","event":"ADD_TO_CART","customEventProperty1":"My custom event1","customData1":"Branch custom data1","customData2":"Branch custom data2"}}'
Or
Set this intent extra in code (Uncomment following line. I have left it here for testing purpose for now.
android-branch-deep-linking-attribution/Branch-SDK-Automation-TestBed/src/main/java/io/branch/branchandroiddemo/activities/MainActivity.java
Line 75 in 61be655
cc @BranchMetrics/saas-sdk-devs for visibility.