This advice applies when using a Browser Driven Load Testing (BDLT) approach. As per the documentation, whether and how the file is copied from the browser cache to the local disk depends on the type of executed test run and/or on the BROWSER_OPT_FILEDOWNLOAD_SAVEFILE option defined in the BrowserSetOption call that needs to be scripted before the BrowserDlgDownload call. If the BROWSER_OPT_FILEDOWNLOAD_SAVEFILE option is not specified, all downloaded files are copied from the browser cache to the results directory for Try Script runs, and for load test runs and find baseline runs no files are copied to the results directory. It is recommended not to copy any files to the results directory for load test runs, as this could result in huge amounts of data being saved on the local disk, and this data will also need to be copied from the agent machines to the controller. Recording : Files are stored in the current project folder. Try Script Run : Files are stored in the RecentTryScriptRun subfolder of the current project folder. Baseline Test : Files are stored in the RecentBaseLineTest subfolder of the current project folder if BROWSER_OPT_FILEDOWNLOAD_SAVEFILE is specified in the BrowserSetOption call before the BrowserDlgDownload call. By default the files are not copied from the browser cache to the local disk. Load Tests : Files are stored in the specified load test folder name for the load test if BROWSER_OPT_FILEDOWNLOAD_SAVEFILE is specified in the BrowserSetOption call before the BrowserDlgDownload call. By default the files are not copied from the browser cache to the local disk. When using the BROWSER_OPT_FILEDOWNLOAD_SAVEFILE option in the BrowserSetOption call the second parameter must be one of the following options: FILEDOWNLOAD_SAVEFILE_SAVENONE: Files are not copied from the cache to the results directory. FILEDOWNLOAD_SAVEFILE_SAVELAST: Files are copied from the cache to the results directory. If a version of the file already exists it gets replaced, so only the last downloaded file is saved in the results directory. FILEDOWNLOAD_SAVEFILE_SAVEALL: All downloaded files are copied from the cache to the results directory. A timestamp is added to the filename so that all filenames are unique. for example: BrowserSetOption(BROWSER_OPT_FILEDOWNLOAD_SAVEFILE, FILEDOWNLOAD_SAVEFILE_SAVELAST); //only the last downloaded file is saved in the results directory BrowserDlgDownload("File.zip"); BrowserClick("//A[@textContents='File']", BUTTON_Left, "Click, A, textContents=File"); //click link to download file BrowserDlgStop(); Incident #2594581 Old KB# 36544 Created On: 30 October 2012
↧