def getTestCurrentState(connection, sessionUrl): ''' This method gets the test current state. (for example - running, unconfigured, ..) Args: - connection is the connection object that manages the HTTP data transfers between the client and the REST API - sessionUrl is the address of the session that should run the test. ''' activeTestUrl = "%s/ixload/test/activeTest" % (sessionUrl) testObj = connection.httpGet(activeTestUrl) return testObj.currentState