Professional Documents
Culture Documents
Type Tracker Topic Genre Qbmap Correct Answer
Type Tracker Topic Genre Qbmap Correct Answer
Answer
Web Testing with
M 1 A
Ruby/Cucumber
M 2 Introduction – BDD B
E 3 Introduction – BDD D
E 8 Introduction – BDD D
E 10 Parameterization C
M 17 Generation of Reports D
T 22 Ruby A
M 25 Introduction – BDD D
E 26 Introduction – BDD B
E 27 Parameterization D
M 29 Ruby D
M 39 Ruby B
E 40 Ruby C
M 41 Ruby B
M 43 Ruby C
M 51 Introduction – BDD B
M 52 Web Testing with A
Ruby/Cucumber
M 54 Introduction – BDD A
M 55 Parameterization C
M 56 Introduction – BDD C
M 58 Ruby D
M 59 Ruby C
M 60 Ruby A
M 70 Generation of Reports B
M 71 Web Testing with C
Ruby/Cucumber
M 75 Introduction – BDD D
E 76 Introduction – BDD C
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
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
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
"____" is the file extension for a ruby file cucumber? .feature .ruby
BDD stands for? Behave Driven Design Behave Driven Development
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?
Which of the following is the correct syntax for invoking Selenium::WebDriver.for :firefox Selenium::WebDriver.Open :firefox
a browser using Selenium WebDriver?
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.
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
$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
Which of these commands is used to run a particular cucumber features/test.feature:21 cucumber features
scenario from a feature file?
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
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
"-----" exercise the concept – “ You write test cases and BDD Gherkin
then develop the product that suits them"
What is the tag used for writing a scenario for Selenium @Test @Scenario
in Ruby Cucumber?
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
Gems Lib
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 tags are used to name the Cucumber tags are used to filter the
scenrios scenarios and execute the scenarios
based on tags.
@ %
support WebDriver
.rb .exe
Behaviour Driven Design Behaviour Driven Development
Iterative V model
Concatenation L value
driver.link(:href=>"") driver.link(href=>"")
driver.text(name=>"") driver.text_field(:name="")
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
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=>""
Watir Hooks
Pipe(||) And(&&)
Scenario TestCase
RUBYPATH RUBYLIB_PREFIX
:value=> :id=>
$driver.run("http://10.207.182.108:81/ope $driver.goto("http://10.207.182.108:
ncart/") 81/opencart/")
$objFile=File.Open("Path",'r') $objFile=Open("Path",'r')
install gems gems install gemfile
|arg| |nextarg|
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")
AfterStep BeforeStep
AfterStep BeforeStep
Require_Method() Watir
Acceptance Regression
Gherkin BDD
Iterative BDD
mspec nspec
In Begin In End
middle middle
In END In Begin
@selenium @selenium-cucumber
find xpath
* %
Hello
Error as For/while is not
Hello
implemented
Hello