Repeating test cases

1,767 views
Skip to first unread message

sasha

unread,
Feb 1, 2011, 5:07:30 PM2/1/11
to robotframework-users, ama...@analogic.com
Hi, people!
I have to run a set of test cases in a loop over the weekend, to check
for memory leaks.
Is there a way to do it?
Thanks,
alex.

DAYANTIHI THULASINGAM

unread,
Feb 1, 2011, 9:04:27 PM2/1/11
to alex...@gmail.com, robotframework-users, ama...@analogic.com
Hi alex

        Use data driven approach to check it .Please let me know whether it is a web based app or win app

Regards

T.Dayanithi


--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.


DAYANTIHI THULASINGAM

unread,
Feb 1, 2011, 10:29:18 PM2/1/11
to alex...@gmail.com, robotframework-users, ama...@analogic.com
Yes it will use data driven approach and run the test 

store the data in the excel for which you need to run the test and connect it to your app using selenuim and run it


from AlexM<alex...@gmail.com>
to DAYANTIHI THULASINGAM <d12...@gmail.com>
date Wed, Feb 2, 2011 at 8:22 AM
subject Re: Repeating test cases
mailed-by gmail.com
signed-by gmail.com
hide details 8:22 AM (34 minutes ago)
It's a windows app. Memory leak is just an example. I have to know if Robotframework allows to run test/test cases in a loop.
Thanks for your response.
Alex.

DAYANTIHI THULASINGAM

unread,
Feb 1, 2011, 9:05:12 PM2/1/11
to alex...@gmail.com, robotframework-users, ama...@analogic.com
an you need to check in server level for the leaks 

Regards

T.Dayanithi

On Wed, Feb 2, 2011 at 7:34 AM, DAYANTIHI THULASINGAM <d12...@gmail.com> wrote:

David

unread,
Feb 2, 2011, 2:29:42 PM2/2/11
to robotframework-users
I think it would help to provide some examples for the original
poster, and for readers of this thread. I'm not sure data driven
approach is best method to take for looping tests.

When reading the posters question, I interpreted it like this:

Run my usual test RF test suite (may be written as keyword driven,
behavior driven, data driven), but now I want to run it X times or run
it indefinitely until I manually terminate RF execution. So basically,
after RF finishes running test suite, run again and maybe increment
run #. And put all the test iterations into single test report (if
possible).

So is something like that achievable with current version of RF? I'm
still new to RF. I know some frameworks have support for that but not
all do. If not, then there are two approaches that I see:

1. Build new test suite (can't use current one "as is"), converting
current one into data driven type test suite that will be repeating
the test case for X data scenarios, matching the desired X executions.

2. Wrap RF around an external simple framework, like a batch file or
shell/Jython/Python script where you pass it a parameter like run test
X times or run indefinite. This script will then externally launch RF
with given test suite and at end of test run, if runtime counter not
equal to X or if run indefinite, relaunch RF again. Best implemented
with a while loop, etc. in the script.

In my opinion, I prefer option 2 above. Though that means someone has
to put together the simple script to do that.

On Feb 1, 6:05 pm, DAYANTIHI THULASINGAM <d121...@gmail.com> wrote:
> an you need to check in server level for the leaks
>
> Regards
>
> T.Dayanithi
>
> On Wed, Feb 2, 2011 at 7:34 AM, DAYANTIHI THULASINGAM <d121...@gmail.com>wrote:
>
>
>
> > Hi alex
>
> >         Use data driven approach to check it .Please let me know whether it
> > is a web based app or win app
>
> > Regards
>
> > T.Dayanithi
>
> > On Wed, Feb 2, 2011 at 3:37 AM, sasha <alexma...@gmail.com> wrote:
>
> >> Hi, people!
> >> I have to run a set of test cases in a loop over the weekend, to check
> >> for memory leaks.
> >> Is there a way to do it?
> >> Thanks,
> >> alex.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "robotframework-users" group.
> >> To post to this group, send email to
> >> robotframe...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> robotframework-u...@googlegroups.com<robotframework-users%2Bun­subs...@googlegroups.com>
> >> .

Pekka Klärck

unread,
Feb 3, 2011, 4:45:25 AM2/3/11
to mang...@gmail.com, robotframework-users
2011/2/2 David <mang...@gmail.com>:

> I think it would help to provide some examples for the original
> poster, and for readers of this thread. I'm not sure data driven
> approach is best method to take for looping tests.
>
> When reading the posters question, I interpreted it like this:
>
> Run my usual test RF test suite (may be written as keyword driven,
> behavior driven, data driven), but now I want to run it X times or run
> it indefinitely until I manually terminate RF execution. So basically,
> after RF finishes running test suite, run again and maybe increment
> run #. And put all the test iterations into single test report (if
> possible).

That's how understood the question too.

> So is something like that achievable with current version of RF? I'm
> still new to RF. I know some frameworks have support for that but not
> all do. If not, then there are two approaches that I see:
>
> 1. Build new test suite (can't use current one "as is"), converting
> current one into data driven type test suite that will be repeating
> the test case for X data scenarios, matching the desired X executions.

This is possible but your log files could grow quite big. If you want
to try, using Test Template functionality with for loops makes this
pretty easy, although understanding the test requires quire a bit
advanced Robot knowledge:

***TestCase***
Example
[Template] Log
:FOR ${i} IN RANGE 100
\ Running round ${i}

> 2. Wrap RF around an external simple framework, like a batch file or
> shell/Jython/Python script where you pass it a parameter like run test
> X times or run indefinite. This script will then externally launch RF
> with given test suite and at end of test run, if runtime counter not
> equal to X or if run indefinite, relaunch RF again. Best implemented
> with a while loop, etc. in the script.
>
> In my opinion, I prefer option 2 above. Though that means someone has
> to put together the simple script to do that.

I prefer this option too. Keeping logic required for orchestrating
test execution is generally better kept outside the test data.

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

Reply all
Reply to author
Forward
0 new messages