So I have a test case, which I want to make in one thread. I can not extend the thread nor can I implement Runnabl because there is already a lawless run () in testcases. I'm getting the compilation error error (62,17): class com. Method to run (). Can not override the method running () in Sleantsteft Season Class Junit. Framework. Test season with different return types, the class was junior. Framework Test result
.
What am I trying to do, to test stress is to scale a Selenium test case. I am not able to use Selenium Grid / Pushtastestest / Amazon Cloud at this time (Installation Problems / Time Setting / Processing Problems), so it really is more about the problem of Java language for me.
FYI: Selenium is a testcase that I want to make multi threaded to scale it to test stress. Selenium TestKeys extends from Test Season (Junit), I am expanding the SeleniumTestCase and am trying to implement it. It's a new thread in Com. Seleneste's Season Run () method. Something like this:
class YourTestCase SeleneseTestCase Expands {Public Class MyRunnable Is Runnable {Public Zero Run} (// Your Work Is Here}} Public Zero TestMethodToExecuteInThread () {MyRunnable R = New MyRunnable (); Thread T = New thread (r); t.start ();}}
Update to use outside of your test season class
To run an internal class from another class, you have to make it public and then it will be clear from the external class. Edit:
Your testcases test = new testcases; your testcase.mirenableR = testCase.new MyRunnable ();
But if you If you do not have to call it from within your test, then you want to go better with the normal class, without making MyTunn make a public class myRunnable.
Hope it helps .
Comments
Post a Comment