Friday, March 1, 2013

Selenium IDE Quiz Part 1

Selenium is a popular open source test automation tool for web applications. It is used for functional and cross-browser compatibility testing. In addition, several other open source functional testing tools are based on Selenium. This quiz on Selenium IDE is the first part of my series on testing using Selenium. Attempt this quiz to check your familiarity with Selenium IDE. Each question has one best answer. The score appears at the bottom. A score of 5 or less indicates low knowledge, 6 to 7 means a fair level of knowledge and 8 and above shows a good knowledge of the Selenium IDE. Instead of this quiz, you may want to see my video on Selenium Questions and Answers where I have compiled all these questions. 
Note: You can learn Selenium WebDriver from my complete set of Selenium Python tutorials for Beginners.

1. What kind of application is the Selenium IDE?
Windows application
Web application
Firefox add-on
None of these

2. A Selenium IDE test case has three columns, Command, Target and Value. What data is stored in the Target column?
Element or location where the command is executed
Test step execution result
[Optional] purpose of the test step
None of these

3. By default, in which format does the Selenium IDE save a test case?
In proprietary format
As Java source code
As Ruby or Python or C# code depending on user options selected during installation

4. What features are available in Selenium IDE to debug an automated test case?
Toggle Breakpoint
Pause/ Resume
All of these

5. What is the Selenium print command?

6. What is the difference between a command and the same command with "AndWait" (e.g. click and clickAndWait commands)?
Selenium waits indefinitely for the result of the "AndWait" command.
It waits for the result of the "AndWait" command but only for 30 seconds (default timeout).
It waits for the result of the "AndWait" command but only up to a maximum of 30 seconds (default timeout).
Some commands do not have an "AndWait" command, so this question is incorrect.

7. What is the correct syntax to access the value of a Selenium variable called name?

8. What is the difference between assert and verify commands?
Assert commands are more uncommon than verify commands.
Typically, an assert command is followed by verify command(s).
A failed assert command stops the test but a failed verify command does not do so.
All of the above

9. In which associative array does Selenium store all of a test case's variables and their respective values?
There is no such array in Selenium.

10. Where can you create your own Selenium commands?
This is not possible.
In user-extensions.js file
In any JavaScript file, but the preferred name is user-extensions.js for consistency
In any Java, C#, Python, Ruby, PHP or Perl file

Score is 0/ 10.

Mention your scores in the comments below. Now try the Part 2 of this quiz here.