Which of the following is the correct syntax for invoking a firefox browser?
Watir::Browser.new :firefox
Watir::Browser.Launch :firefox
Watir:Browser.new :firefox
Watir::Browser.Open :firefox
. What are the library files in Ruby/Cucumber called?
JAR
Utils
Gems
Lib
. What is the language used for expressing scenario in feature file?
Java
VB
.NET
Gherkin Language
. Which keyword is used to call a library file in your script?
import
include
require
call
. Which of the following gem is required for accessing an Excel file?
XL
extlib
Win32OLE
yaml
. Which of the following gem is required for accessing an CSV file?
signet
csv
uuidtools
redcard
. Which of the following is not a keyword in Cucumber?
Given
Then
When
Also
. What are the 2 files required to execute a Cucumber test scenario?
features,step_definiton
features,support
support,step_definitions
feature,step_definition
. 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 Cucumber?
Watir
Selenium
Poltergeist
Phantom
. What is the shortcut key to open setting in RubyMine IDE?
Ctrl+Alt+S
Ctrl+Shift+S
Ctrl+S
Alt+S
. What are before, after, beforeStep and afterStep in Cucumber?
support
Hooks
Tags
Drivers
. Why we use the tags for scenarios in Cucumber ?
Cucumber tags are used to sort the scenarios
Cucumber tags are used to give a scenario a layout
Cucumber tags are used to name the scenrios
Cucumber tags are used to filter the scenarios and execute the scenarios based on tags.
. 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
cucumber/ run features
cucumber/ run all
. Where does the Cucumber execution starts from?
step_definition
hooks
support
WebDriver
. What is env.rb used for?
It is used to load the required libraries for cucumber scenario execution
It is used to load the scenarios for execution
It is used to run multiple features together
It is used to create a log file
. "____" is the file extension for a ruby file cucumber?
.feature
.ruby
.rb
.exe
. BDD stands for?
Behave Driven Design
Behave Driven Development
Behaviour Driven Design
Behaviour Driven Development
. Which of the following is not a Agile methodology?
Sprint
Scrum
Product Backlog
BDD
. Which testing model is best suited for the BDD framework?
Waterfall
Agile
Iterative
V model
. What is the default feature for parameterizing your scenario in Ruby?
Excel
CSV
Text file
Scenario Outline
. "--------------" is the method available in Ruby Cucumber to use the value of a variable inside a string?
Instrumentation
Interpolation
Concatenation
L value
. This command is used to check the Ruby version installed.
ruby -vi
ruby -c
ruby -version
ruby -v
. Which file cannot be used to import data into Ruby Cucumber?
Excel
JS file
CSV file
Property file
. How do we define functions in Ruby Cucumber?
_def <function_name>
def <function_name>
sub <function name>
define <function name>
. How do we comment a block of code in Ruby Cucumber?
Shift+Ctrl+/
Shift+//
CTRL+/
ALT+/
. Which one of the following is not a valid String command in Ruby Cucumber?
reverse
equal
starts_with
size
. The command used for enering data in a text field in Ruby Cucumber?
.set
.type
.edit
.set_field
. Which command is used to check for the presence of an object in Ruby Cucumber?
.exist
.ispresent
.exist?
.ispresent?
. How do we "Rename" a file in Ruby Cucumber?
Rename
F2 key
Refactor---->Rename
Refactor--->Edit
. Shortcut for Running a Scenario in Ruby Cucumber?
Shift+F5
Shift+F8
F5
Shift+F10
. Shortcut for Debugging a Scenario in Ruby Cucumber?
Shift+F9
Shift+F11
Shift+F10
F9
. How can we a parameterize any input in the feature file in Ruby Cucumber?
Write the parameter in single quotes
Write the parameter in double quotes
Write the parameter after the + symbol
Write the parameter as it is.
. Which one of the following is used to select a checkbox in Ruby Cucumber?
.set
.select
.click
.check
. Which of the following is not part of a "feature" file in Ruby Cucumber?
Feature
Scenario
Step_definition
Scenario Outline
. Cucumber is used for "------------" Testing?
System & Unit Testing
System & Integration Testing
Unit & Integration Testing
System,Unit &Integration Testing
. What is a Regular expression?
A regular expression is a pattern describing a certain amount of text
A regular expression is a pattern describing numbers only.
A regular expression is an encoding used for describing a text
A regular expression is a pattern used for variable names.
. Which of these we do NOT need to run a Cucumber Web Test?
Gems
Ruby
Watir
Hooks
. What does a features/support file contain?
Features/ support file contains supporting ruby code
Features/ support file contains supporting cucumber code
Features/ support file contains the scenario.
Features/ support file contains the scenario outline.
. How is the data separated in a Scenario Outline in Ruby Cucumber? Quotes("") Semi-colon(;) Pipe(||) . What is cucumber.yml file in Ruby cucumber?
It is used to write step definitions
It is used to write features
It is used to write driver settings
It is used to create a profile
. What is Ruby on Rails?
Ruby on Rails is an open source web application framework for the Cucumber programming language
Ruby on Rails is a Gem file in Ruby
Ruby on Rails is an open source web application framework for the Ruby programming language
Ruby on Rails is an automation framework designed for Open source tools.
. Which of these is not an Environment variable present in Ruby Cucumber?
RUBYLIBRARY
RUBYOPT
RUBYPATH
RUBYLIB_PREFIX
. What is the use of the "super" keyword in Ruby Rails?
To call the superclass implementation of the default method
To call the superclass of the default method
To call the superclass of the current method
To call the superclass implementation of the current method
.
|