示例#1
0
 public void WhenISaveTheExportFileInTheFolderContainingInTheExecutionPathWithName_(string FolderPath, string FindFileName, string destFileName)
 {
     if (!BP_FileUtilites.FindAndSaveFile(FeatureContext.Current["ReportsFolderPath"].ToString() + FolderPath, FindFileName, FeatureContext.Current["ReportsFolderPath"].ToString() + destFileName))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#2
0
 public void ThenISeeUnzippedFolder(String unzippedFullFolderPath)
 {
     if (!BP_FileUtilites.IsFolderExist(FeatureContext.Current["ReportsFolderPath"].ToString() + unzippedFullFolderPath))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#3
0
 public void ThenISeeTheFileWithNameInExecutionFolder_(String FileName)
 {
     if (!BP_FileUtilites.CheckForFullyDownloadedFile(FeatureContext.Current["ReportsFolderPath"].ToString() + FileName))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#4
0
 public void WhenIUnzipFolder(string zipFolderFullPath)
 {
     if (!BP_FileUtilites.UnzipFolder(FeatureContext.Current["ReportsFolderPath"].ToString() + zipFolderFullPath))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#5
0
 public void ThenISeeFullyDownloadedFile(String folderFullPath)
 {
     if (!BP_FileUtilites.CheckForFullyDownloadedFile(folderFullPath))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }