Running selected Testcases on each module

48 views
Skip to first unread message

Arun Kumar G

unread,
Oct 12, 2015, 8:32:30 AM10/12/15
to Robotium Developers
Hi All,

I required some help from this community .. My requirement as follows:
I have two files 
1.Login 
2.ForgotPassword 

Login has testmethods like test01,test02,test03,test04,test05 
Forgot password as testfor1,testfor2,testfor3

Now we need to run only test01,test04 from login and testfor3 from forgot password.

How do i achieve this .Please help me out.

Thanks
Arun

Gokul Karthik

unread,
Feb 17, 2016, 10:02:54 AM2/17/16
to Robotium Developers
Yeah it's possible.

Create a new class test class where create object for the following classes
1. Login
2. Forget Password

I will write the example code below,

public class Login{
Constructor
test01(Solo solo)
test02(Solo solo)
test03(Solo solo)
test04(Solo solo)
test05(Solo solo)
}

public class ForgetPassword{
Constructor
testfor01(Solo solo)
testfor02(Solo solo)
testfor03(Solo solo)
}

public class Launcher{
Constructor{
L = Object for Login
F = Object for ForgetPassword
}
setup() and tearDown()
L.test01(solo)
L.test03(solo)
F.testfor03(solo)
Reply all
Reply to author
Forward
0 new messages