TD-1831, TD-1832 Creating mechanism to choose method of checking if testRun is finished

testRun -> test run