def changeRunResultDir(connection, sessionUrl, runResultDirPath ): ''' This method is used to change the path where results are saved 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 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)