Quiz
Frameworks Exam
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (56)
1A design pattern is a custom solution to a commonly occurring problem within a given context in software design?
- ATrue
- BFalse
2With POM, each web page in an application should have a corresponding page class that represents all of the
elements on the page- ATrue
- BFalse
3A page class using POM should include verification tests
- ATrue
- BFalse
4Using a Page Object Factory, we would identify a web element named "uid" using the following code:
@By(name = "uid")
WebElement userName;- ATrue
- BFalse
5To instantiate the web elements when using POF, we call the initElements method of the PageFactory class:
PageFactory.initElements(driver, this);- ATrue
- BFalse
6To identify all elements that have the same class attribute using the @FindBy annotation, we could use the following
identification- A@FindBy(how = How.CLASS_NAME, using = "class")
private Array[] singlecriterion; - B@FindBy(how = How.CLASS_NAME, using = "classname")
private Array[] singlecriterion; - C@FindBy(how = How.CLASS_NAME, using = "classname")
private List<WebElement> singlecriterion; - D@FindBy(how = How.CLASS_NAME, using = "class")
private List<WebElement> singlecriterion;
- A@FindBy(how = How.CLASS_NAME, using = "class")
7The Page Object Model and the Page Object Factory are primarily for tests written in Java
- ATrue
- BFalse
8With Selenium WebDriver, using implicit waits are always preferable to using explicit waits or using thread.sleep.
- ATrue
- BFalse
9Which of the following is NOT an advantage of Data Driven Testing?
- ASimple to use for manual and automated testers
- BSeparation of test script logic and test data
- CReduction of the number of test scripts necessary
- DIncreasing test coverage
- Ell of the above
10One of the advantages of DDT is that test scripts connect only to internal resources, increasing security.
- ATrue
- BFalse
11Data driven tests include the following operations performed in a loop:
- ARetrieving input data from storage, entering data in an application form, verifying the results, continuing
with the next set of input data - BRetrieving input data from an internal file, entering data in an application form, continuing with the next set
of input data, verifying the results - CRetrieving input data from storage, entering data in an application form, continuing with the next set of
input data, verifying the results - DRetrieving input data from storage, verifying the data retrieved, entering data in an application form,
continuing with the next set of input data
- ARetrieving input data from storage, entering data in an application form, verifying the results, continuing
12Which of the following is NOT an advantage of using DDT?
- ALess maintenance
- BImproved test coverage
- CFaster execution
- DBetter error handling
- EAll of the above
- FNone of the above
13When using Apache POI, XSSF is for older Excel files and HSSF is for newer Excel files and OOXML files
- ATrue
- BFalse
14When reading an Excel file using Apache POI, you would use
FileInputStream excelFile = new FileInputStream(new File(FILE_NAME));
and then instantiate the necessary XSSF or HSSF objects.- ATrue
- BFalse
15The basic working of the keyword-driven framework is:
- ADivide the test case into three different parts with the first as the Test Data, second as the Test
Keyword, third is Page Object Model - BDivide the test case into four different parts with the first as the Test Case, second as the Test Data,
third is Test Table and fourth is Action for Test Object. - CDivide the test case into three different parts with the first as the Test Case, second as the Test Data,
third is Action on Test Object - DDivide the test case into four different parts with the first as the Test Step, second as the Test Object
Step, third is Action on Test Object and fourth is Data for Test Object.
- ADivide the test case into three different parts with the first as the Test Data, second as the Test
16Which is the best reason to create an object repository?
- AIt creates more programming jobs due to an increase in code maintenance
- BIt helps in code maintenance when the naming of web elements changes
- CIt makes keyword-driven testing easier for manual testers to use
- DIt allows us to easily change the names of test steps
17A hybrid framework always consists of a combination of data-driven and keyword-driven testing.
- ATrue
- BFalse
18Which of the following is true of XML?
- AXML is a markup language which functions exactly like HTml
- BXML is designed to store and transport data
- CXML stands for eXtensible Markup Library
- DXML uses pre-defined tags
- EAll above
19Test driven development is easy to adapt to legacy code
- ATrue
- BFalse
20How does the textbook define legacy code?
- ALegacy code refers to an application system source code type that is no longer supported
- BCode is legacy code as soon as it's written.
- CCode written by others or under a previous language, architecture, methodology, or framework that pertains
to the current project. - DLegacy code is code without tests.
21ode smells are usually bugs—they may not be technically incorrect but may currently prevent the program from
functioning.- ATrue
- BFalse
22One of the common smells for legacy code is:
- ACode that accesses third-party libraries
- BCode that needs to be refactored
- CCode that is unable to be tested
- DCode with short variable names
23The legacy code change algorithm is:
- AIdentify tests, break dependencies, write tests
- BWrite tests, break dependencies, refactor, run tests again
- CIdentify change points, find test points, break dependencies, write tests, make changes and refactor
- Dnone of the above
24Black box testing is also known as:
- AStructural testing
- BIn-circuit testing
- CSpike testing
- DShoebox testing
- EAll of the above
25This type of testing framework is application independent and utilizes data tables and self-explanatory keywords to
explain the actions to be performed on the application under test.- AData Driven Testing Framework
- BLinear Testing Framework
- CModular Testing Framework
- DKeyword Driven Testing Framework
26This type of testing framework consists of test scripts recorded using record and playback. Common tasks are
identified and grouped into functions which are kept together in a collection to be called upon when needed.- ALinear Testing Framework
- BLibrary Architecture Testing Framework
- CModule Based Testing Framework
- DHybrid Testing Framework
27The average iteration in an agile team is known as a run, often lasting 2-4 weeks
- ATrue
- BFalse
28When using TestNG for unit testing, we can use the @Test annotation at the class level so that all public methods
are considered tests.- ATrue
- BFalse
29Which of the following annotations is NOT used with TestNG
- A@BeforeTest
- B@BeforeSuite
- C@BeforeGroups
- D@Before
30Which of the following is NOT a principle of SOLID?
- AList Substitution Principle: This says a collection should be replaceable by others that extend that
collection. - BInterface Segregation Principle: A few specific interfaces are preferable than one general-purpose
interface. - CSingle Responsibility Principle: A class should have only a single reason to change.
- DDependency Inversion Principle: A class should depend on abstraction instead of implementation. This means
that class dependencies must be focused on what is done and forget about how it is done.
- AList Substitution Principle: This says a collection should be replaceable by others that extend that
31Which testing tool reduces complexity by using matchers so that when a test fails, the error shown becomes more
expressive by interpreting the matchers used in the assertion?- AJBehave
- BTestNG
- CHamcrest
- DMockito
32In large projects, when you detect that a great number of tests must be created for a single class, this enables you
to split this class following the __________ Principle.- AIn large projects, when you detect that a great number of tests must be created for a single class, this enables you
to split this class following the __________ Principle. - BOpen-Closed
- CInterface Segregation
- DLiskov Substitution
- AIn large projects, when you detect that a great number of tests must be created for a single class, this enables you
33The only accurate documentation is our code.
The code is what we develop, what we deploy, and is the only source that truthfully represents our application- ATrue
- BFalse
34BDD encourages us to write multiple specifications, called _____________, before starting the implementation
code.- ASteps
- BScenarios
- CUser stories
- DUse cases
35While TDD, which is based on unit level, can be described as outside-in (we begin with units and build in towards
functionalities), BDD is often understood as inside-out (we start with features and go outside towards units).- ATrue
- BFalse
36Behavior-driven development can be used as an acceptance criteria that acts as an indicator of readiness telling us
when something is finished and ready for production- ATrue
- BFalse
37When we have an idea and are not certain how it will develop, we want to work on an MVP, which means a...
- AMaximum Value Product
- BMinimum Viable Product
- CMaximum Visibility Project
- DMinimum Value Project
38Steps are a sequence of preconditions, events, and expected outcomes of the scenario.
- ATrue
- BFalse
39Each BDD scenario is very similar to a unit test, with the main difference being the scope (one method against a
whole feature) and time it takes to implement it (a few seconds or minutes against a few hours or even days).- ATrue
- BFalse
40Question 38 1 / 1 point
Unlike unit tests, which were written as code by developers for developers, BDD scenarios should be defined
in specific language and with maximum technical details so that only those involved with the project who have the
necessary technical knowledge can have an in-depth understanding about behaviors (or features) that will be added
to the system.- ATrue
- BFalse
41Each BDD scenario consists of a description and one or more steps that start with the words Who, What, or Where.
- ATrue
- BFalse
42__________ is an agile process designed to keep the focus on the stakeholder value throughout the whole
project.- AWaterfall development
- BExtreme programming
- CTest driven development
- DBehaviour driven development
43There is a decreasing number of organizations that are employing testers as integral members of the developmen
team with the job of ensuring that quality is built in.- ATrue
- BFalse
44Using code as documentation does not exclude other types. Quite the contrary, the key is not to avoid using static
documentation, but to avoid duplication.- ATrue
- BFalse
45Looking at the code to understand the code is often enough to figure out its purpose.
- ATrue
- BFalse
46Which of the following is true of traditional static documentation?
- AIt is difficult to update documentation to reflect requirements that are changing, bugs that are getting
fixed, new functionalities that are being developed, and some that are being removed. - BIf given enough time, all traditional documentation becomes obsolete.
- CThe sheer task of updating documentation with every change we make to the code is so big and complex
that, sooner or later, we must face the fact that static documents do not reflect the reality. - DAll of the above
- AIt is difficult to update documentation to reflect requirements that are changing, bugs that are getting
47The executable documentation obtained through unit tests is often enough; we get insights into details making it
easy to see the big picture.- ATrue
- BFalse
48In large projects, when you detect that a great number of tests must be created for a single class, this enables you
to split this class following the __________ Principle.- ASingle Responsibility
- BOpen-Closed
- CInterface Segregation
- DLiskov Substitution
49Some people and companies forget about the value of automated testing and rely on users in what are called user
acceptance tests consisting of recreating real-world scenarios in a controlled environment, ideally identical to
production.- ATrue
- BFalse
50All of the design principles introduced by the textbook are applicable and desirable in both test and non-test driven
development, because, apart from other benefits, they make our code more maintainable.- ATrue
- BFalse
51Primitive Obsession involves using primitive data types to represent domain ideas
- ATrue
- BFalse
52Many times, legacy code is tightly coupled and presents other symptoms that show a poor design or at least a lack
of interest in the code's quality in the past.- ATrue
- BFalse
53A Kata is an exercise that defines some requirements or fixed features to be implemented in order to achieve some
goals- ATrue
- BFalse
54The major activities involved in keyword-driven testing are
Identifying low level as well as high-level, Implementing the keyword as exe,Creating test cases,Creating the driver scripts,Executing the automation test scripts
keywords- ATrue
- BFalse
55One benefit of keyword-driven testing is that test automation can be planned before the application is completed
- ATrue
- BFalse
56DDT goal to seperate data from scripts
- ATrue
- BFalse
Information
- Description
- Quiz on Frameworks Exam, created by Cat MUrray on 12/04/2018.
- Author
- Cat MUrray
- Language
- English
- Views
- 19
- Tags
- Rating
- No ratings yet Rate this quiz