Is there a way to repeat a test in an endless loop?

Best practices, code snippets for common functionality, examples, and guidelines.
jnagel
Posts: 3
Joined: Wed Aug 09, 2023 10:02 am

Is there a way to repeat a test in an endless loop?

Post by jnagel » Mon Sep 04, 2023 1:54 pm

Hi is there a good way to make a test repeat until the endpoint disconnects?
I have a samsung phone on which i should repeat a simple test until the phone shutsoff because the batterie is empty is there a clean way or do i just put everything in a huge while loop till something goes wrong?

User avatar
Stub
Posts: 511
Joined: Fri Jul 15, 2016 1:35 pm

Re: Is there a way to repeat a test in an endless loop?

Post by Stub » Tue Sep 05, 2023 9:35 am

You can set an "Iteration count" on the properties for a test case. Perhaps set that to a huge, huge number? Or stick it in a Smart Folder and also add a huge iteration count to that too, to multiple it?

jnagel
Posts: 3
Joined: Wed Aug 09, 2023 10:02 am

Re: Is there a way to repeat a test in an endless loop?

Post by jnagel » Mon Sep 11, 2023 1:39 pm

mmh thx i guess that would work and here I sit writing a huge while loop :lol: