Beispiel #1
0
        public void WhenIClickTheLinkErrorFileIsDownloadedWithUsefulMessageAboutTheDownload(string scenario)
        {
            int beforeDownload = downloadFile.GetCurrentCSVFilesInDownloadFolder();

            Logger.Info("Before download " + beforeDownload);
            Logger.Info("Downloading " + Path.GetFileName(invalidSupplierFile) + " files");
            classSetter.MeasureProcessingErrorFilePageInstance.DownloadErrorFile();
            int afterdownload = downloadFile.DownloadIsComplete();

            Logger.Info("After download " + afterdownload);
            downloadedCsvFile = downloadFile.GetLastDownloadedFile();
            Logger.Info("Last downloaded file " + downloadedCsvFile);
            Assert.IsTrue(afterdownload - beforeDownload == 1);
            ValidationErrorsRetrievedFromUpload();
            VerifyDownloadedData(scenario);
            downloadFile.DeleteFile();
        }