def setResultDir(self, resultDirPath, createTimestampFolder=False): """ Set the results directory path. resultDirPath: For Windows gateway server, provide the c: drive and path. For Linux, must begin with path /mnt/ixload-share """ timestampFolder = str(self.getTime()).replace(':', '-').replace('.', '-') if createTimestampFolder: if self.osPlatform == 'windows': resultDirPath = resultDirPath+'\\'+timestampFolder if self.osPlatform == 'linux': resultDirPath = resultDirPath+'/'+timestampFolder url = self.sessionIdUrl+'/ixLoad/test' data = {'outputDir': True, 'runResultDirFull': resultDirPath} self.patch(url, data=data)