Skip to content
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 40 commits into from
May 31, 2024
Merged

Conversation

NidhiDixit09
Copy link
Contributor

@NidhiDixit09 NidhiDixit09 commented Apr 30, 2024

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

Screenshot 2024-04-29 at 6 12 52 PM

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.

/* getIntent().putExtra("testData", "{\"BUOData\":{\"imageUrl\":\"https:\\/\\/www.qentelli.com\\/sites\\/default\\/files\\/qentelli-logo.svg\",\"canonicalIdentifier\":\"content\\/2\",\"contentTitle\":\"Sample Content Title\",\"contentDesc\":\"Sample Content Description\"},\"Include\":\"Yes\",\"CreateLinkReference\":{\"feature\":\"sharing\",\"stage\":\"new user\",\"desktopUrl\":\"www.qentelli.com\",\"androidUrl\":\"https:\\/\\/play.google.com\\/store\\/apps\\/details?id=com.instagram.android\",\"campaign\":\"content 2 launch\",\"channelName\":\"instagram\",\"additionalData\":\"When all fields provided with valid entries\",\"iOSUrl\":\"www.qentelli.com\"},\"TrackContentData\" : {\n" +
)

cc @BranchMetrics/saas-sdk-devs for visibility.

…ged package name, added buttons of initializing session, Removed Navigation and Read Links buttons
…ll be reverted back before merging into master.
@NidhiDixit09 NidhiDixit09 changed the title Test automation improvements (WIP) Test automation improvements Apr 30, 2024
@gdeluna-branch gdeluna-branch changed the title (WIP) Test automation improvements Test automation improvements May 30, 2024
@NidhiDixit09 NidhiDixit09 merged commit fffae87 into master May 31, 2024
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants