def loadConfigFile(self, rxfFile, uploadConfigFile=None): """ Load the IxLoad .rxf config file on the gateway server. If the config file does not exists on the gateway server, upload the saved .rxf config file to the IxLoad Gateway server using parameter uploadConfigFile. Parameters rxfFile : Where is the full path .rxf file stored in the IxLoad gateway server. Windows Ex: 'C:\\Results\\$rxfFile' # Ignore if using Linux Gateway. Will always use /mnt/ixload-share as the default path. Linux Gateway Ex: '/mnt/ixload-share/$rxfFile' uploadConfigFile : Default to None. The local host full path to the .rxf file to upload. """ if uploadConfigFile: self.uploadFile(localPathAndFilename=uploadConfigFile, ixLoadSvrPathAndFilename=rxfFile) loadTestUrl = self.sessionIdUrl + '/ixLoad/test/operations/loadTest/' response = self.post(loadTestUrl, data={'fullPath': rxfFile}) # http://x.x.x.x:8080/api/v0/sessions/42/ixLoad/test/operations/loadTest/0 operationsId = response.headers['Location'] status = self.verifyStatus(self.httpHeader + operationsId)