March 01, 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 HTML
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
Step
All of these

5. What is the Selenium print command?
echo
print
alert
System.out.println()

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?
name
$name
{name}
${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?
Array
storedVars
var
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.

22 comments:

  1. 8

    Hey, nice site you have here! Keep up the excellent work!

    Selenium


    ReplyDelete
    Replies
    1. Thank you. Please check out the other Q&A quizzes at http://inderpsingh.blogspot.com/search/label/Quiz%20Time

      Delete

Note: Only a member of this blog may post a comment.