def saveRxf(connection, sessionUrl, rxfFilePath, overWrite=True): ''' This method saves the current rxf to the disk of the machine on which the IxLoad instance is running. 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 to save the rxf for - rxfFilePath is the location where to save the rxf on the machine that holds the IxLoad instance ''' saveRxfUrl = "%s/ixload/test/operations/saveAs" % (sessionUrl) rxfFilePath = rxfFilePath.replace("\\", "\\\\") data = {"fullPath": rxfFilePath, "overWrite": overWrite} performGenericOperation(connection, saveRxfUrl, data)