예제 #1
0
		public void Test001_UploadFileUnder12MB()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Upload file under 12 MB'");

			var fileUploadPage = new FileUploadPage(_driver);
			fileUploadPage.OpenUsingControlPanel(_baseUrl);

			fileUploadPage.UploadFile(_smallFileToUpload, _folderName);

			var adminFileManagementPage = new AdminFileManagementPage(_driver);
			adminFileManagementPage.OpenUsingButtons(_baseUrl);
			adminFileManagementPage.SearchForFile(_smallFileToUpload);

			Assert.IsTrue(
				adminFileManagementPage.ElementPresent(
					By.XPath("//div[contains(@class, 'dnnModuleDigitalAssetItemName')]//span/font[text() = '" + _smallFileToUpload + "']")));
		}
예제 #2
0
		public void Test002_UploadFileOver12MB()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Upload file over 12 MB'");

			var fileUploadPage = new FileUploadPage(_driver);
			fileUploadPage.OpenUsingControlPanel(_baseUrl);

			fileUploadPage.UploadFile(_largeFileToUpload, _folderName);

			var adminFileManagementPage = new AdminFileManagementPage(_driver);
			adminFileManagementPage.OpenUsingButtons(_baseUrl);
			adminFileManagementPage.SearchForFile(_largeFileToUpload);

			Assert.IsFalse(
				adminFileManagementPage.ElementPresent(
					By.XPath("//div[contains(@id, 'dnnModuleDigitalAssetsListViewItem')]/span/font[text() = '" + _largeFileToUpload +
					         "']")));
		}