Parallel execution with TestNG and appium
<p>I'm currently busy with an test automation project for mobile devices and I want to store my results in a database.
I do this with a custom assertclass which I created, this one stores the result.</p>

<p>The layout is as following -> There are runs which contain Tests which contain Steps.</p>

<p>When I want to run in parallel, I create a unique id for the run based on thread and date and store this one in a static list. This is @BeforeTest.</p>

<p>At the @BeforeClass, I search in the list for the right thread and assign the correct name to the variable of the class.</p>

<p>But I receive constantly a Nullpointerexception for the list in the beforeclass or the variable is null while it was filled in in the @beforetest.</p>

<p>What are we missing here? Or how is this done when you need to store a parameter that is generated once for the whole run?</p>

<p>Thanks in advance,</p>

<p>Jonas Vandevelde</p>