data driven framework

1 view
Skip to first unread message

a.t.obulreddy

unread,
Nov 30, 2010, 2:41:21 AM11/30/10
to jinjector
Hi all

I want to send the data through Login Form activity with 100 usernames
and passwords.

can Jinjector supports to run multiple login forms with these data
with in a time or a single test case ?

for(i=0;i<100;i++)
{
mainScreen = JMEUtil.waitAndGetDisplayableOfType(midlet,
Form.class);
form = (FormWrapper) mainScreen;
create_TextFiledWrapper1(); // customized method for
creating wrapper objects
tfw1.setString(MOCK_LOGIN_DATA[0]);
create_TextFiledWrapper2();
tfw2.setString(MOCK_LOGIN_DATA[1]);
fire_CMD_SUBMIT();
if(......)
{
/// Business Logic
}
else
{
}
}
Thanks and regards
a.t.obulreddy
Tejasoft

-RAX-

unread,
Nov 30, 2010, 3:45:53 AM11/30/10
to jinjector
Hello there,

Yes you can.
JInjector allows you to script any kind of user interaction. If you
were testing the login manually you were first logging in then logging
out, then logging in again. In your test case you have to recreate
exactly the same sequence, therefore if the login attempt was
successful then log out and login again.
Reply all
Reply to author
Forward
0 new messages