Skip to content

Conversation

@subroto407
Copy link
Collaborator

Herokuapp validation TestCases :
-RedirectLink
-MouseHover
-HorizontalSlider
-FileDownloadValidation
-NotificationMessage
-AddRemoveElementsValidation
-MultipleWindows
-FileUploadValidation
-DigestAuthentication
-DisappearingElementsValidation
-ForgotPassword
-JavaScriptAlert
-BasicAuth
-DragAndDropValidation
-ContextMenuValidation
-BrokenImage
-Input
-CheckboxesValidation
-InfiniteScroll
-DropDownValidation
-ABTestingValidation
-NestedFrames
-Iframe
-ValidUserNamePassword
-InvalidUserNamePassword
-InvalidUserName
-InvalidPassword
-DynamicContentValidation
-DynamicControlsValidation

WebElement txt= driver.findElement(By.xpath("/html//body[@id='tinymce']"));
txt.clear();
sleepTime(3000);
txt.sendKeys(Data.INPUTS_TEXT);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validate input text attributes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make add remove element dynamic with value input for add elements, remove element should correspond with add element.

sleepTime(1000);

//Value Pass On input Field login popup
driver.get("https://admin:admin@the-internet.herokuapp.com/basic_auth");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the link dynamic with concatenation for username and password. Manage username and password in the test data.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't see where it validates the broken images of a page.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Contains too many unnecessary validations!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't see where it validates the disappearing elements. Make it dynamic!

File filePath = new File(Data.DOWNLOAD_FILE_PATH);
File[] totalFiles = filePath.listFiles();
for (File file:totalFiles) {
if (file.getName().equals("logo.png")) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard coded data

//Now Release CTRL
robot.keyRelease(KeyEvent.VK_CONTROL);
sleepTime(2000);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if you download multiple files, how would you validate those?


//File Download Validation
//Using String Selection Class to store the path of the file
Robot robot=new Robot();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot class is unnecessary

Copy link
Collaborator

@abzaman7 abzaman7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the in-code comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants