Automation framework to run both UI and mobile automation - ui-automation

Our use case involves automating both Web and mobile. Certain actions are carried out on Web post which the data flows to mobile device. Then certain actions need to be carried out on mobile device.
Is there an automation framework which can do both Web and mobile automation as a single flow.
I tried using Serenity with Selenium and Appium. But through the properties file, either Chrome browser or Android emulator can be launched at a single point of time.
Sample cucumber feature file usecase
Given user enters "admin" and password "admin" and clicks on login button
When user enter "Item1" as "Data1"
And user clicks submit button
Then verify success message on UI.
And verify "Data1" saved in Db.
When user launches mobile device
And user enters "admin" and password "admin" and clicks login button
Then verify "Data1" is displayed on mobile device.
When user clicks on "Item2" on mobile device
Then verify "Data1" is updated on mobile device
And verify "Data1" is updated on the Web.

I would assume that the actions in the browser actually perform REST calls to the backend, in this case I would suggest you directly call the backend endpoints instead of trying to do it in the browser and mobile application at the same time. A great framework that you can use to execute backend calls and Appium tests at the same time is Carina

Related

Why can't Firebase Emulator trigger an Flutter event for EmailVerifiedAction?

I am using Firebase Emulator to test for User Registration of my Flutter app based on the example code: https://github.com/firebase/flutterfire/blob/master/packages/firebase_ui_auth/example/lib/main.dart
The Firebase Auth emulator successfully generated the link, something like this: http://127.0.0.1:9099/emulator/action?mode=verifyEmail&lang=en&oobCode=ZJIl7jQ26ZMqribJt8zSmMvFNjL_KGv9GDK7ApDsqPwetWCkz0_gFR&apiKey=fake-api-key&continueUrl=http%3A%2F%2Flocalhost%3A50707%2F
When I paste this link to browser, the emulator switches the "Verified email?" flag for the user to true, which tells me the link is valid. However, this link redirects to Sign-in screen (/#), instead of profile page (/#/profile) which means the user is logged in and email verified. I think it's something to deal with the url of the ActionCodeSettings but I cannot manage to make it work.
Conversely, it works fine if I connect directly to Firebase server, i.e. it can verify the email and then go to the profile screen after clicking on the "Continue" button. Is this a known issue for Flutter to work with Firebase emulator?

Ionic and MSAL Authentication for app opened within in app browser

I have an Ionic app that needs to authenticate using msal angular for Azure, the user is able to sign in flawlessly on the login screen that opens up in an in app browser.
I have a link to another app which uses the same token for login, so in the native devices this app opens up in another in app browser when clicked on that link, but the user is not SSO'ed into that app. But the user is SSO'ed automatically on the PWA version.
Any idea on how this can be achieved on the native devices as well? I know we need to access the token from the cookie jar but im unable to find an example/documentation of such a scenario.
Thanks in advance.

Creating a basic account system SDK using flutter

I have serveral Goals:
Add the user in the "Users and Accounts" section of AOSP Settings
Here is a little mindmap of how the process will work
I need to get an effect like google's sdk, where a flutter library calls the SDK app, then, if it needs to login, it redirects to the SDK login page and logins. Then it store the data and put it in the users and accounts section. Then, any app can call the app to get the session ID(The invoke process may include allow/deny). Thanks!

Auto log out from devices

I have a RestAPI which will hit to authenticate the user. This api is to android they hit this api to allow user to login to our app
My requirement is this.1) If user has cell phone say xyz phone with IMEI "xyzz1234". Now if he tries to log in from his 2nd phone than he should not be allowed to login from 2nd phone. He should log out automatically from abc device.
As i am using ionicv1 framework for mobile applications.
You can update the deviceID in your database once the user Sign in on another device.
In your signIN API, validate your deviceID.
For the case of login state saved in your app, you can hit an API at your dashboard on startup which can make the person logout.
This could be one possible approach :)

CakePHP auth login from native iPhone app

I expected there to be a lot of information on this topic but I can't seem to find any. I have a working web app based in CakePHP that uses the Auth component for user authentication. I am creating an iPhone app that will load information from the website, but some of the information is user specific and requires them to be logged in. How can I login a user using the auth component from an iPhone app?