I have 1165 test cases and it takes 36 hours to run + run this all in 3 different browsers and I'm going crazy with that delay.
My question is whether you have to run parallel tests using selenium / testng and your classes need to access the same database?
I'll try to explain it better.
Let's say I have the class named TesteParaCartaoDeCredito
, this class has several tests inside that access the database, for example, create new credit card, change limits, block card and so on.
Today if I try to run in parallel, using chrome and firefox for example, my second test case always fails because the first browser already ran the same test and already changed it there in the database (eg the first browser ran the test of blocking the card and there the second browser when running any other, fails).
Any ideas are welcome.