title: Does single static method can cause the test failure in parallel execution - selenium
body: <p>I'm using Selenium to automate the testcases. I'm executing the testcase in parallel mode using TestNG where it causing some random test failure. If I execute the same in non parallel mode then all test getting pass.</p>
  
  <p>I come to know the thing from <a href="https://wiki.saucelabs.com/display/DOCS/Things+That+Can+Go+Wrong+with+Running+Java+Tests+in+Parallel%2C+and+How+to+Debug+Them" rel="nofollow noreferrer">here</a> that static resource in you code can cause the issue.</p>
  
  <p>I've one common class where i have created some common method and all method are static. e.g.</p>
  
  <pre><code>public static String formatString(String loc, String val) {
  
          return String.format(getBundle().getString(loc), getBundle().getString(val));
      }
  
      public static QAFWebElement getQAFExtendedWebElement(String loc, String str) {
  
          return new QAFExtendedWebElement(
                  String.format(getBundle().getString(loc), getBundle().getString(str)));
      }
  
      public static void assertResult(String actual, String expected) {
  
          assertTrue(actual.contains(expected),
                  "FAILED : Actual : " + actual + " Expected : " + expected,
                  "PASSED : Actual : " + actual + " Expected : " + expected);
      }
  </code></pre>
  
  <p>So my question is do I need to make all these method non static or it doesn't have any impact with parallel execution ?</p>