How do we connect the different flows using Appium/Eclipse


#1

Hello peeps,

Can you please help me with this?

Let us consider these scenarios

Login flow script: Class name xyz.java

Profile flow script: Class name abc.java

My question:-
Is there a way I can tell Appium to run in this sequence?

Appium: Execute Login flow script and then Execute Profile flow script?

Or should I write all the flow in one class?

Please let me know.
Thanks


#2

Hi @shriharsha,
Try to set the order in your testng.xml runner: something like :slight_smile:

<listeners>
	<listener class-name="resources.TestListener" />
	<listener class-name="resources.ExtentReporterNG" />
</listeners>

<test thread-count="1" name="Profile" enabled="true">
	<classes>
		<class name="tests.ProfileTest">
		</class>
	</classes>
</test>

<test thread-count="2" name="Login" enabled="true">
	<classes>
		<class name="tests.LoginTests">
		</class>
	</classes>
</test>

The tests will run that order you write them in the xml


#3

Thanks.
Can you please share the document or article specific to this?
I am naive with this, unable to get a grip of what you are trying to explain.