def createNewSession(connection, ixLoadVersion=''): if not ixLoadVersion: newSessionUrl = startNewSession(connection) else: newSessionUrl = createSession(connection, ixLoadVersion) return newSessionUrl transfers between the client and the REST API - sessionUrl is the address of the session on which the test was ran. - runResultDirPath is the new folder path ''' testUrl = "%s/ixload/test" % sessionUrl payloadDict = {"outputDir": "true", "runResultDirFull": runResultDirPath} performGenericPatch(connection, testUrl, payloadDict)