Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 18

TYPE Tracker Topic Genre QBMap Correct

Answer
Web Testing with
M 1 A
Ruby/Cucumber

M 2 Introduction – BDD B

E 3 Introduction – BDD D

M 4 Web Testing with A


Ruby/Cucumber
Web Testing with
M 5 C
Ruby/Cucumber

M 6 Data Driven Testing C

E 7 Data Driven Testing B

E 8 Introduction – BDD D

Web Testing with


E 9 A
Ruby/Cucumber

E 10 Parameterization C

E 11 Web Testing with D


Ruby/Cucumber
Web Testing with
M 12 D
Ruby/Cucumber
Web Testing with
M 13 Ruby/Cucumber A

M 14 Command Line ,Tags and Hooks B

M 15 Command Line ,Tags and Hooks A

M 16 Command Line ,Tags and Hooks A

M 17 Generation of Reports D

M 18 Command Line ,Tags and Hooks D

E 19 Command Line ,Tags and Hooks C

E 20 Command Line ,Tags and Hooks A

M 21 Web Testing with C


Ruby/Cucumber

T 22 Ruby A

E 23 Web Testing with C


Ruby/Cucumber
E 24 Introduction – BDD D

M 25 Introduction – BDD D

E 26 Introduction – BDD B

E 27 Parameterization D

M 28 Different operations in Cucumber B

M 29 Ruby D

Web Testing with


M 30 Ruby/Cucumber C

Web Testing with


M 31 Ruby/Cucumber A

M 32 Ruby Scripts using Selenium A


WebDriver

Ruby Scripts using Selenium


M 33 WebDriver C

Web Testing with


M 34 B
Ruby/Cucumber
Web Testing with
M 35 C
Ruby/Cucumber

M 36 Web Testing with A


Ruby/Cucumber
Web Testing with
M 37 D
Ruby/Cucumber

E 38 Data Driven Testing B

M 39 Ruby B

E 40 Ruby C

M 41 Ruby B

Web Testing with


M 42 A
Ruby/Cucumber

M 43 Ruby C

Web Testing with


E 44 Ruby/Cucumber C

Web Testing with


E 45 D
Ruby/Cucumber

M 46 Web Testing with A


Ruby/Cucumber

M 47 Different operations in Cucumber B

M 48 Web Testing with C


Ruby/Cucumber

M 49 Web Testing with D


Ruby/Cucumber

E 50 Web Testing with C


Ruby/Cucumber

M 51 Introduction – BDD B
M 52 Web Testing with A
Ruby/Cucumber

Web Testing with


M 53 Ruby/Cucumber D

M 54 Introduction – BDD A

M 55 Parameterization C

M 56 Introduction – BDD C

M 57 Web Testing with B


Ruby/Cucumber

M 58 Ruby D

M 59 Ruby C

M 60 Ruby A

M 61 Web Testing with D


Ruby/Cucumber

T 62 Web Testing with B


Ruby/Cucumber

Web Testing with


M 63 A
Ruby/Cucumber

Web Testing with


E 64 D
Ruby/Cucumber

M 65 Command Line ,Tags and Hooks B

M 66 Data Driven Testing C


T 67 Ruby A

M 68 Data Driven Testing B

M 69 Command Line ,Tags and Hooks A

M 70 Generation of Reports B
M 71 Web Testing with C
Ruby/Cucumber

M 72 Data Driven Testing D

M 73 Data Driven Testing B

M 74 Data Driven Testing A

M 75 Introduction – BDD D

E 76 Introduction – BDD C

M 77 Command Line ,Tags and Hooks C

M 78 Command Line ,Tags and Hooks A

T 79 Ruby B

M 80 Introduction – BDD D

M 81 Introduction – BDD C

M 82 Introduction – BDD D

M 83 Introduction – BDD A

M 84 Introduction – BDD C

T 85 Ruby D

M 86 Ruby C

M 87 Ruby B
M 88 Ruby C

T 89 Ruby A

M 90 Ruby Scripts using Selenium C


WebDriver

Ruby Scripts using Selenium


M 91 B
WebDriver

E 92 Different operations in Cucumber D

T 93 Ruby D

M 94 Ruby B

T 95 Ruby A

M 96 Ruby D

M 97 Ruby C

T 98 Ruby D

T 99 Ruby C
T 100 Ruby D
Question Option 1 Option 2

Which of the following is the correct syntax for invoking


Watir::Browser.new :firefox Watir::Browser.Launch :firefox
a firefox browser?

What are the library files in Ruby/Cucumber called? JAR Utils

What is the language used for expressing scenario in Java VB


feature file?
Which of the following is the correct syntax for objDriver.driver.manage.timeouts.i objDriver.driver.manage.timeouts.im
implementing a implicit wait of 5 seconds? mplicit_wait=5 plicit_wait=5000
Which keyword is used to call a library file in your
import include
script?
Which of the following gem is required for accessing an
Excel file? XL extlib

Which of the following gem is required for accessing an signet csv


CSV file?

Which of the following is not a keyword in Cucumber? Given Then

What are the 2 files required to execute a Cucumber


features,step_definiton features,support
test scenario?
Which symbol is used to separate columns in Scenario
Outline? / \

Which symbol is used as preffix to declare a variable as @ !


public?
Which of the following is NOT a webDriver in
Watir Selenium
Cucumber?
What is the shortut key to open setting in RubyMine
IDE? Ctrl+Alt+S Ctrl+Shift+S

What are before, after, beforeStep and afterStep in support Hooks


Cucumber?

Which of the following is the correct syntax for


command line execution of a feature file named cucumber cucumber feature/MyScript.feature
'MyScript' assuming we are at the project folder in features/MyScript.feature
Command Prompt?

Which of the following is the correct syntax for


command line execution of a feature file named
'MyScript' which has a tag named '@smoke' assuming cucumber features --tags @smoke cucumber features/tags @smoke
we are at the project folder in Command Prompt?

cucumber
Which of the following is the correct syntax for reports features\Opencart.feature --format cucumber features/Opencart.feature
generation via command prompt? --format html TestReport.html
html --out TestReport.html

Cucumber tags are used to sort the Cucumber tags are used to give a
Why we use the tags for scenarios in Cucumber ? scenarios scenario a layout

What preffix is used for adding a tag to a scenario? $ &

What is the syntax of executing all the feature files in a


project from command line? cucumber features cucumber features/all

Where does the Cucumber execution starts from? step_definition hooks

It is used to load the required It is used to load the scenarios for


What is env.rb used for? libraries for cucumber scenario execution
execution

"____" is the file extension for a ruby file cucumber? .feature .ruby
BDD stands for? Behave Driven Design Behave Driven Development

Which of the following is not a Agile methodology? Sprint Scrum

Which testing model is best suited for the BDD Waterfall Agile
framework?
What is the default feature for parameterizing your Excel CSV
scenario in Ruby?

"--------------" is the method available in Ruby Cucumber Instrumentation Interpolation


to use the value of a variable inside a string?

This command is used to check the Ruby version


installed. ruby -vi ruby -c

How do we identify a link in Ruby Cucmber? driver.link(:href="") driver.weblink(:href="")

How do we identify a Textbox in Ruby Cucmber? driver.text_field(:name=>"") driver.text(:name=>"")

Which of the following is the correct syntax for invoking Selenium::WebDriver.for :firefox Selenium::WebDriver.Open :firefox
a browser using Selenium WebDriver?

Which of the following is the correct syntax for


objDriver.driver.manage.timeouts.i objDriver.driver.manage.timeouts.im
declaring an implicit timeout using Selenium mplicit_wait=5 plicit.wait=5
WebDriver?

How do we identify a WebElement(Button) in Ruby


driver.webbutton(:name=>"") driver.button(:name=>"")
Cucumber?

How do we identify a RadioButton in Ruby Cucmber? driver.radio(:name=>"") driver.radio_button(:value=>"")

How do we identify a ComboBox in Ruby Cucmber? driver.select_list(:name=>"") driver.select(:name=>"")

How do we maximize a browser window in Ruby


$objBrowser.manage.max $objBrowser.manage.maximize
Cucumber?
Which file cannot be used to import data into Ruby
Cucumber? Excel JS file

How do we define functions in Ruby Cucumber? _def  <function_name> def  <function_name>

How do we comment a block of code in Ruby


Shift+Ctrl+/ Shift+//
Cucumber?
Which one of the following is not a valid String
reverse equal
command in Ruby Cucumber?
The command used for enering data in a text field in
.set .type
Ruby Cucumber?
Which command is used to check for the presence of
.exist .ispresent
an object in Ruby Cucumber?

How do we "Rename" a file in Ruby Cucumber? Rename F2 key

Shortcut for Running a Scenario in Ruby Cucumber? Shift+F5 Shift+F8

Shortcut for Debugging a Scenario in Ruby Cucumber? Shift+F9 Shift+F11

How can we a parameterize any input in the feature file Write the parameter in single Write the parameter in double
in Ruby Cucumber? quotes quotes
Which one of the following is used to select a checkbox .set .select
in Ruby Cucumber?
How do we give multiple properties for an Object in :name=>"";:class="" :name=>""+:class=>""
Ruby Cucumber?
Which of the following is not part of a "feature" file in Feature Scenario
Ruby Cucumber?

Cucumber is used for "------------" Testing? System & Unit Testing System & Integration Testing
What is a Regular expression? A regular expression is a pattern A regular expression is a pattern
describing a certain amount of text describing numbers only.

Which of these we do NOT need to run a Cucumber


Web Test? Gems Ruby

Features/ support file contains Features/ support file contains


What does a features/support file contain?
supporting ruby code supporting cucumber code

How is the data seperated in a Scenario Outline in Ruby


Quotes("") Semi-colon(;)
Cucumber?

What is missing in the following code of Ruby


Cucumber:
Feature: Visit XYZ page in abc.com
Parameters Step_definition
Given: I am on abc.com
When: I click on XYZ page
Then: I should see ABC page

Command used to execute a Cucumber profile? cucumber features -profile cucumber features -p
<profile_name> <profile_name>

What is cucumber.yml file in Ruby cucumber? It is used to write step definitions It is used to write features

Ruby on Rails is an open source


What is Ruby on Rails? web application framework for the Ruby on Rails is a Gem file in Ruby
Cucumber programming language

Which of these is not an Environment variable present RUBYLIBRARY RUBYOPT


in Ruby Cucumber?

To call the superclass


What is the use of the "super" keyword in Ruby Rails? implementation of the default To call the superclass of the default
method
method

What will be the outcome of the following code:


while i<7 do Prints the value of "i" 7 times Error for "i" not initialized
puts(i)
end

What is missing in the following code of Ruby


Cucumber: :name=> :link=>
$driver.text_field("email").set "email"

$driver.open("http://10.207.182.1 $driver.link("http://10.207.182.108:8
How can we open a Web URL in Ruby Cucumber?
08:81/opencart/") 1/opencart/").click

How do we do a Dry-run in Ruby Cucumber? Cucumber features –dryrun Cucumber features –dry-run

How do we open a Text file in Ruby Cucumber? $objFile=File.Open("Path") $objFile=OpenFile("Path",'r')


Command used for installing a Gem file gem install gemfile gem install gems

What is missing in the following code for reading from a


text file:
$objFile.each do
??? |variable| |line|
puts line
end

Which of these commands is used to run a particular cucumber features/test.feature:21 cucumber features
scenario from a feature file?

What is missing in the following command used to


generate report using Ruby Cucumber?
-- --format
cucumber features/Opencart.feature ??? html –out
report.html
Syntax for writing XPATH in Ruby Cucumber is? :xpath XPATH

foreach("path") do CSV.for("path") do
Which one of the followin is the correct way of reading |row| |row|
data from a CSV file? puts row puts row
end end

What is missing in the following line of code used to


invoke the Excel Application in Ruby Cucumber? CSV WIN32OLE
objExcel=???.new("Excel.Application")

How do we open an Excel sheet through Ruby objSheet=objExcel.workbooks.ope objSheet=objExcel.open("Path").wor


Cucumber? n("Path").worksheets("Sheet1") ksheets("Sheet1")

Feature: Visit XYZ page in abc.com Feature: Visit XYZ page in abc.com
Scenario : Visit abc.com
Which one of the following options is the correct form Given: I am on abc.com
of writing a feature file?
When: I click on XYZ page When: I click on XYZ page
Then: I should see ABC page Then: I should see ABC page

Which one of the following is correct? Given: I am on abc.com Given: I am on abc.com


I click on login & I click on login

"???" executes after the each step execution Before After

"???" execute before the feature file execution Before After

"???" loads and processes the Ruby code from a


separate file, including whatever classes, modules,
methods, and constants are in that file into the current env.rb Require()
scope

"-----" exercise the concept – “ You write test cases and BDD Gherkin
then develop the product that suits them"

"-----" criteria for the feature can be defined as when


The Product Owner, a Programmer and a Tester BDD TDD
collaborate on system behaviour.

"-----" is a story testing approach.The functionalities


written by the Business Analyst's triggers the testing
process Agile TDD

"----" is an incremental and iterative software Agile Waterfall


development model

"----" is a framework for writing and executing high


level descriptions of your software’s functionality. Capybara Calabash

Which one of the following is not a specification file? spec rspec

What is the output of the following code: In End


END {puts "In End"} In Begin Error as END is preceding the BEGIN
BEGIN {puts "In Begin"} command
middle
puts "middle"

What is the output of the following code:


age=3
x="double quoted {age}" double quoted 3 double quoted {age}
y='single quoted {age}' single quoted {age} single quoted {age}
puts x
puts y
What is the output of the following code:
message="Ruby Programming" Ruby Programming Syntax Error
puts message[0,message.length-4]

What is the output of the following code: hello


.3 times do hello
puts "hello" hello hello
end hello

What is the tag used for writing a scenario for Selenium @Test @Scenario
in Ruby Cucumber?

Which of the following is the Object locator used for


find_by_element find_element
finding objects through Selenium in Ruby Cucumber?

Which prefix is used to use/call the steps from a pre- + &


defined scenario in Ruby Cucumber?

What is the output of the following code:


i=10
while i==10 Hello 10 (10 times) Hello 0 (9 times)
puts "Hello {i}"
end

What is the output of the following code:

empdata={"Emp ID"=>"010","Name"=>"Kumar"} 010 Kumar Kumar


puts empdata["Name"]

Hello
What is the output of the following code: Hello Hello
10.downto(7) do Hello Hello
puts "Hello" Hello Hello
end Hello Hello
Hello
Hello

What is the output of the following code:


while i<10
puts "Hello" Hello -10 times Hello - 9 times
end

What is the output of the following code:


i=0
while i<10
puts "Hello" Hello -10 times Hello - 9 times
end

What is the output of the following code:


i=0
while i==10 Hello -10 times Hello - 9 times
puts "Hello"
end

What is the output of the following code:


i=0
while i=10 Hello -10 times Hello - 9 times
puts "Hello"
end
What is the output of the following code:
i=0
while i=10
puts "Hello {i}" Hello 10 (10 times) Hello 0 (9 times)
end
Option 3 Option 4

Watir:Browser.new :firefox Watir::Browser.Open :firefox

Gems Lib

.NET Gherkin Language

objDriver.manage.timeouts.implicit_wait=5 objDriver.manage.timeouts.implicit.
000 wait=5

require call

Win32OLE yaml

uuidtools redcard

When Also

support,step_definitions feature,step_definition

| _

& $

Poltergeist Phantom

Ctrl+S Alt+S

Tags Drivers

cucumber feature--MyScript.feature cucumber -- feature--


MyScript.feature

cucumber features/@smoke cucumber features-- @smoke

cucumber features-- Opencart.feature cucumber features/Opencart.feature


--format html TestReport.html --format html --out TestReport.html

Cucumber tags are used to name the Cucumber tags are used to filter the
scenrios scenarios and execute the scenarios
based on tags.

@ %

cucumber/ run features cucumber/ run all

support WebDriver

It is used to run multiple features together It is used to create a log file

.rb .exe
Behaviour Driven Design Behaviour Driven Development

Product Backlog BDD

Iterative V model

Text file Scenario Outline

Concatenation L value

ruby -version ruby -v

driver.link(:href=>"") driver.link(href=>"")

driver.text(name=>"") driver.text_field(:name="")

Selenium::WebDriver.new :firefox Selenium:WebDriver.new :firefox

objDriver.manage.timeouts.implicit_wait=5 objDriver.driver.manage.timeouts.im
plicit.wait=5000

driver.button(name=>"") driver.webbutton(:name="")

driver.radio(:value=>"") driver.radio_button(:name=>"")

driver.list(:name=>"") driver.selectlist(:name=>"")

$objBrowser.driver.manage.window.
$objBrowser.manage.window.maximize
maximize

CSV file Property file

sub <function name> define <function name>

CTRL+/ ALT+/

starts_with size

.edit .set_field

.exist? .ispresent?

Refactor---->Rename Refactor--->Edit

F5 Shift+F10

Shift+F10 F9

Write the parameter after the + symbol Write the parameter as it is.

.click .check

:name=>""&:class=>"" :name=>"",:class=>""

Step_definition Scenario Outline

Unit & Integration Testing System,Unit &Integration Testing


A regular expression is an encoding used for A regular expression is a pattern
describing a text used for variable names.

Watir Hooks

Features/ support file contains the


Features/ support file contains the scenario.
scenario outline.

Pipe(||) And(&&)

Scenario TestCase

cucumber features <profile_name> cucumber feature -p <profile_name>

It is used to write driver settings It is used to create a profile

Ruby on Rails is an open source web Ruby on Rails is an automation


application framework for the Ruby framework designed for Open
programming language source tools.

RUBYPATH RUBYLIB_PREFIX

To call the superclass


To call the superclass of the current method implementation of the current
method

Error because the value of "i" is not Prints 0


increased

:value=> :id=>

$driver.run("http://10.207.182.108:81/ope $driver.goto("http://10.207.182.108:
ncart/") 81/opencart/")

Cucumber features dry-run Cucumber features –Dry-Run

$objFile=File.Open("Path",'r') $objFile=Open("Path",'r')
install gems gems install gemfile

|arg| |nextarg|

cucumber features/run features cucumber features/run all

-format --html format


:xpath=> :XPATH

CSV.foreach("path") CSV.foreach("path") do
|row| |row|
puts row puts row
end end

WATIR Excel

objSheet=objExcel.workbooks("Path").work objSheet=objExcel.workbooks.open(
sheets("Sheet1") "Path")

Feature: Visit XYZ page in abc.com


Scenario : Visit abc.com Scenario : Visit abc.com
Given: I am on abc.com Given: I am on abc.com
When: I click on XYZ page When: I click on XYZ page
Then: I should see ABC page Then: I should see ABC page

Given: I am on abc.com Given: I am on abc.com


*I click on login --I click on login

AfterStep BeforeStep

AfterStep BeforeStep

Require_Method() Watir

Ruby Cucumber TDD

Acceptance Regression

Gherkin BDD

Iterative BDD

Cucumber Keyword Driven

mspec nspec

In Begin In End
middle middle
In END In Begin

double quoted 3 double quoted


single quoted 3 single quoted
Ruby Program Ruby Programm

Syntax Error as "for/while" is not defined hello

@selenium @selenium-cucumber

find xpath

* %

Hello {0} (infinite times) Hello {i} (infinite times)

Kumar 010 Errror

Hello
Error as For/while is not
Hello
implemented
Hello

Error because the value of "i" is not


Error because "i" is not initialized
increased

Error because the value of "i" is not


Hello - infinite times increased

Hello - infinite times No Output

Hello - infinite times No Output


Hello {0} (infinite times) Hello {i} (infinite times)

You might also like