testsigmahq / testsigma

A powerful open source test automation platform for Web Apps, Mobile Apps, and APIs. Build stable and reliable end-to-end tests @ DevOps speed.
https://testsigma.com
Apache License 2.0
915 stars 192 forks source link

[TOS-669] fix : Checking ipa architecture and ios emulator/real-device #272

Closed akash-nixon closed 1 year ago

akash-nixon commented 1 year ago

Jira Ticket: https://testsigma.atlassian.net/browse/TOS-669 There is no any appropriate error message displayed in Mobile inspector when we use an Emulator ipa to record steps using Real Device

Steps for reproduce

Enable any storage Upload an emulator app Connect a Real Device Create Test Case Click on Record button within the Test Case Select Real Device as the Device select emulator ipa as the upload Click on Record button Wait until the app is uploaded and observe the Error message

Actual

There is no any appropriate error message displayed in Mobile inspector when we use an Emulator IPA to record steps using Real Device

Expected

There should be an appropriate error message displayed in Mobile inspector when we use an Emulator IPA to record steps using Real Device

Fix: Have added a condition to check the app architecture and ios device type and if they are same, then the recorder is launched, else error message is displayed as notification. Have added a null value to supportedDeviceType so that no value is selected by default in uploads page. Have added a condition to the upload button as supportedDevicetyper should not be null, thus making it a mandatory field for the user.