Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Selenium and TestNg

QuestionAnswer
benefits of Selenium - works with different programming languages (Python, Java, C#) -open source, free tool - can work on different browsers and operating systems
different locators id, xPath, name, ClassName, Text, PartialText
difference between / and // / selects only immediate child elements // selects all descendant elements anywhere in the documents
Page Object Model design pattern in our frameworks to enhancee code maintainability, readability and reusability - seperation of concerns, page class and reusability
difference between CSS and xPath xPath is slower and can go from parent to child and child to parent CSS is faster, can't go from child to parents but only parent to child
syntax of explicit wait for waiting element to be clickable -applied to specific element with specific conditions - ElementToBeClickable, ElementToBeVisible, ElementToBeSelectable
handle dropdown Select Object, and then SelectByIndex, SelectByVaule, and SelectByVisibleText
handle pop-ups Alert.alert=switch.To.Alert Alert.Accept
difference between implicitily and explicitly wait Implicit wait applied to all findElement methods to all elements to be loaded Explicit wait applied to specific element with specific condition
handle scroll up and scroll down javascript executor then scroll up-down certain amount, click, navigate
difference between findElement and findElements method -findElements finds single element and returns WebElement -findElements finds mulitple elements and returns list of webelements
handle pop-up window alert.dismiss, or alert.accept
handle multiple windows get main window ID and all window IDs, loop through each id and check which of those is not equal to main window id then switch to that window
upload file find element by id then "file upload", send keys using file address, "file submit" and click
handle iFrames by index, by ID, and by webElement
What is Maven and what are the benifits (TestNG) -open source build automation and project management tool, promotes reproducibility and consistency within testing environment
manage your dependencies (TestNG) using Maven
what Maven commands do you know (TestNG) mvn Install. mvn Test, mvn clean and mvn compile
explain TestNg annotations you use in your project -Test, Before/After method, Before/After class, Before/After test, Before/AFter suite and dataprovider
how do you prioritize test methods in automation (TestNG) using @Test
how to run tests through Maven (TestNG) using Maven surefire plugin
how do you generate report in TestNG run "mvn test" command in terminal and it triggers sure-fire plugin that has location for testing.xml file to run tests - after execution html report under target folder
how dataprovider works in TestNg Data Driver Testing, helps run test method multiple times with different sets of data
what is testing.xml file and why its needed runner file that has classes with included groups - provides single location to define and organize test suites, group test cases into suites to use, and has exessive control over how its run
where to store configuration data (TestNG) properties file
POM Desing Pattern and advantages (TestNG) -used to store web element of each page to seperate classes - helps with code maintainability and reusability - have webelements and reusable methods in classes
difference between Hard assertion and Soft assertion (TestNG) - hard assertion will stop test method at line where assertion fails - soft assertion will keep executing other assertions even if first failed, fails only when reaching .assertAll
TestBase class (TestNG) before method and after method in class and inherit that class from test classes to avoid code duplication
how to group test cases (TestNG) using @Test and defining groups thrrough <group> tag, such as smoke or regression
why we create WebDriver driver= new ChromeDriver(): instead ChromeDriver=new ChromeDriver(); (TestNG) benefits in terms of flexibility and code reusability
rerun failed tests (TestNG) testing-failed.xml file
Created by: tsvete21
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards