Hi,
I want to use a script that references a data file to create clients in the front end of a system. The data file is quite large with almost a million rows.
I want to know if there is a method to execute the script in parallel and reference different sections of data automatically so that each instance of the script doesn’t enter the same data on the parallel runs?
Thanks in advance.
there is nothing directly out of box. However, you can use parallel programming in groovy to execute TC at same time.
Hello, i’ll try to describe how to write asynchronous “watch dog” to check if some element appears
Situation:
our application is quite an asynchronous that means, that from time to time an Error can be shown on UI that actually does not directly belong to Test case i’m executing. However it will be good to catch such error and present it in reports.
prereq.:
I have TC that is responsible for Opening browser from this TC i will store actual driver into Global variable (type null)
I have my o…
in one of my test Cases, i need to check for 2 situations at once and i don’t know which one will manifest first.
Solution - create 2 threads to check in parallel and wait for their finish on the end.
Warning: quick and dirty solution, think before apply.
def t1 = new Thread({
for(i=0; i<10; i++) println 'Hello 1-'+i
} as Runnable)
def t2 = new Thread({
for(i=0; i<10; i++) println 'Hello 2-'+i
} as Runnable)
t1.start()
t2.start()
while (t1.alive || t2.alive) {
Thread.sleep(500)
// looks…