How does Test Suite Collection work in case of Web+Mobile Application flow

Hi there!
I am trying to automate a flow which goes through Web → Mobile → Web. To handle this, I used Test Suite Collection. But, it runs perfectly during Web automation, but when it is turn to act on Mobile, it fails to launch Appium server. I tried both Test Suites one by one, without Test Suite Collection, they works well.
As a solution, I added extra delays between web and mobile suite executions, I killed WebDriver before starting Mobilie automation, but it still fails in Test Suite Collection.

Any idea, how can I do this. Our application flow goes like, create user on Web, User can login on mobile app only, user performs some action, Go back to web and validate actions taken by user on mobile.

1 Like

Have you checked the execution log to find any diagnostics?

Please compare the logs of the failed execution and the passed execution. What difference do you find?

can you open the test suite collection and select sequential mode by clicking on “Execution information“ and set the delay to 180 secs.

try this and let us know

I tried with sequential mode, 35 seconds delay between both test suites, it still failed. Adding 180 seconds delay within a flow doesn’t look good. Still I’ll try. Thanks.

try it and let us know

Checked the logs. Didn’t find any specific difference, but in failed cases, it shows ‘Unable to start Appium Server’. additional. In successessful cases, it showed all steps executed.

Didn’t work.

Too little information provided. I can not follow this topic any more.

Why not you ask AI to support you. It will advise you a lot.

  1. Go to Windows > Katalon Studio Preferences > Katalon > Mobile

  2. Set Appium Log Level to Debug

  3. Increase the Appium startup timeout beyond the default 60 seconds

if you run mobile test alone, does it pass?

I tried ChatGPT, Grok and documentation. Didn’t find the fix, so came here. I thought that someone may have resolved the issue.

1 Like

Yes. If I even execute Web Test suite, and then Mobile Test suite alone, they both pass. But when I put them in Suite collection Web→Mobile in secquence, Mobile fails.

Update: For now I got one workaround. I need to have appium installed on my system and start Appium server manually. Now, when Katalon fails it’s own appium server launch, it moves to already running Appium server and uses that to complete execution.
This is workaround. I hope, Katalon can fix the issue and documen this.

Are you sure that your Test Suite for Mobile surely closes the currently running Mobile application before it terminates?

I guess, your Test Suite does NOT close the app, so that the Appium server is left running. When you start your Test Suite Collection next time, the call to Mobile.startApplication(...) will fail saying “Unable to start Appium Server” because the IP port #4723 being already in use.

Testing Web and Mobile application flows effectively requires a well-organized Test Suite Collection. This ensures that all features, from video downloads to link handling, work seamlessly across devices. For platforms like Snaptika, having a robust test strategy helps maintain a smooth user experience, making sure users can access and download TikTok or Instagram videos easily, whether on mobile or desktop.