Cat MUrray
Test por , creado hace más de 1 año

Test sobre Frameworks Exam, creado por Cat MUrray el 12/04/2018.

6
0
0
Cat MUrray
Creado por Cat MUrray hace más de 6 años
Cerrar

Frameworks Exam

Pregunta 1 de 56

1

A design pattern is a custom solution to a commonly occurring problem within a given context in software design?

Selecciona una de las siguientes respuestas posibles:

  • True

  • False

Explicación

Pregunta 2 de 56

1

With POM, each web page in an application should have a corresponding page class that represents all of the
elements on the page

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 3 de 56

1

A page class using POM should include verification tests

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 4 de 56

1

Using a Page Object Factory, we would identify a web element named "uid" using the following code:

@By(name = "uid")
WebElement userName;

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 5 de 56

1

To instantiate the web elements when using POF, we call the initElements method of the PageFactory class:
PageFactory.initElements(driver, this);

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 6 de 56

1

To identify all elements that have the same class attribute using the @FindBy annotation, we could use the following
identification

Selecciona una de las siguientes respuestas posibles:

  • @FindBy(how = How.CLASS_NAME, using = "class")
    private Array[] singlecriterion;

  • @FindBy(how = How.CLASS_NAME, using = "classname")
    private Array[] singlecriterion;

  • @FindBy(how = How.CLASS_NAME, using = "classname")
    private List<WebElement> singlecriterion;

  • @FindBy(how = How.CLASS_NAME, using = "class")
    private List<WebElement> singlecriterion;

Explicación

Pregunta 7 de 56

1

The Page Object Model and the Page Object Factory are primarily for tests written in Java

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 8 de 56

1

With Selenium WebDriver, using implicit waits are always preferable to using explicit waits or using thread.sleep.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 9 de 56

1

Which of the following is NOT an advantage of Data Driven Testing?

Selecciona una de las siguientes respuestas posibles:

  • Simple to use for manual and automated testers

  • Separation of test script logic and test data

  • Reduction of the number of test scripts necessary

  • Increasing test coverage

  • ll of the above

Explicación

Pregunta 10 de 56

1

One of the advantages of DDT is that test scripts connect only to internal resources, increasing security.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 11 de 56

1

Data driven tests include the following operations performed in a loop:

Selecciona una de las siguientes respuestas posibles:

  • Retrieving input data from storage, entering data in an application form, verifying the results, continuing
    with the next set of input data

  • Retrieving input data from an internal file, entering data in an application form, continuing with the next set
    of input data, verifying the results

  • Retrieving input data from storage, entering data in an application form, continuing with the next set of
    input data, verifying the results

  • Retrieving input data from storage, verifying the data retrieved, entering data in an application form,
    continuing with the next set of input data

Explicación

Pregunta 12 de 56

1

Which of the following is NOT an advantage of using DDT?

Selecciona una de las siguientes respuestas posibles:

  • Less maintenance

  • Improved test coverage

  • Faster execution

  • Better error handling

  • All of the above

  • None of the above

Explicación

Pregunta 13 de 56

1

When using Apache POI, XSSF is for older Excel files and HSSF is for newer Excel files and OOXML files

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 14 de 56

1

When 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.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 15 de 56

1

The basic working of the keyword-driven framework is:

Selecciona una de las siguientes respuestas posibles:

  • Divide the test case into three different parts with the first as the Test Data, second as the Test
    Keyword, third is Page Object Model

  • Divide 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.

  • Divide 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

  • Divide 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.

Explicación

Pregunta 16 de 56

1

Which is the best reason to create an object repository?

Selecciona una o más de las siguientes respuestas posibles:

  • It creates more programming jobs due to an increase in code maintenance

  • It helps in code maintenance when the naming of web elements changes

  • It makes keyword-driven testing easier for manual testers to use

  • It allows us to easily change the names of test steps

Explicación

Pregunta 17 de 56

1

A hybrid framework always consists of a combination of data-driven and keyword-driven testing.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 18 de 56

1

Which of the following is true of XML?

Selecciona una de las siguientes respuestas posibles:

  • XML is a markup language which functions exactly like HTml

  • XML is designed to store and transport data

  • XML stands for eXtensible Markup Library

  • XML uses pre-defined tags

  • All above

Explicación

Pregunta 19 de 56

1

Test driven development is easy to adapt to legacy code

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 20 de 56

1

How does the textbook define legacy code?

Selecciona una de las siguientes respuestas posibles:

  • Legacy code refers to an application system source code type that is no longer supported

  • Code is legacy code as soon as it's written.

  • Code written by others or under a previous language, architecture, methodology, or framework that pertains
    to the current project.

  • Legacy code is code without tests.

Explicación

Pregunta 21 de 56

1

ode smells are usually bugs—they may not be technically incorrect but may currently prevent the program from
functioning.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 22 de 56

1

One of the common smells for legacy code is:

Selecciona una de las siguientes respuestas posibles:

  • Code that accesses third-party libraries

  • Code that needs to be refactored

  • Code that is unable to be tested

  • Code with short variable names

Explicación

Pregunta 23 de 56

1

The legacy code change algorithm is:

Selecciona una de las siguientes respuestas posibles:

  • Identify tests, break dependencies, write tests

  • Write tests, break dependencies, refactor, run tests again

  • Identify change points, find test points, break dependencies, write tests, make changes and refactor

  • none of the above

Explicación

Pregunta 24 de 56

1

Black box testing is also known as:

Selecciona una de las siguientes respuestas posibles:

  • Structural testing

  • In-circuit testing

  • Spike testing

  • Shoebox testing

  • All of the above

Explicación

Pregunta 25 de 56

1

This 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.

Selecciona una de las siguientes respuestas posibles:

  • Data Driven Testing Framework

  • Linear Testing Framework

  • Modular Testing Framework

  • Keyword Driven Testing Framework

Explicación

Pregunta 26 de 56

1

This 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.

Selecciona una de las siguientes respuestas posibles:

  • Linear Testing Framework

  • Library Architecture Testing Framework

  • Module Based Testing Framework

  • Hybrid Testing Framework

Explicación

Pregunta 27 de 56

1

The average iteration in an agile team is known as a run, often lasting 2-4 weeks

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 28 de 56

1

When using TestNG for unit testing, we can use the @Test annotation at the class level so that all public methods
are considered tests.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 29 de 56

1

Which of the following annotations is NOT used with TestNG

Selecciona una de las siguientes respuestas posibles:

  • @BeforeTest

  • @BeforeSuite

  • @BeforeGroups

  • @Before

Explicación

Pregunta 30 de 56

1

Which of the following is NOT a principle of SOLID?

Selecciona una de las siguientes respuestas posibles:

  • List Substitution Principle: This says a collection should be replaceable by others that extend that
    collection.

  • Interface Segregation Principle: A few specific interfaces are preferable than one general-purpose
    interface.

  • Single Responsibility Principle: A class should have only a single reason to change.

  • Dependency 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.

Explicación

Pregunta 31 de 56

1

Which 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?

Selecciona una de las siguientes respuestas posibles:

  • JBehave

  • TestNG

  • Hamcrest

  • Mockito

Explicación

Pregunta 32 de 56

1

In 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.

Selecciona una de las siguientes respuestas posibles:

  • In 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.

  • Open-Closed

  • Interface Segregation

  • Liskov Substitution

Explicación

Pregunta 33 de 56

1

The 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

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 34 de 56

1

BDD encourages us to write multiple specifications, called _____________, before starting the implementation
code.

Selecciona una de las siguientes respuestas posibles:

  • Steps

  • Scenarios

  • User stories

  • Use cases

Explicación

Pregunta 35 de 56

1

While 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).

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 36 de 56

1

Behavior-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

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 37 de 56

1

When we have an idea and are not certain how it will develop, we want to work on an MVP, which means a...

Selecciona una de las siguientes respuestas posibles:

  • Maximum Value Product

  • Minimum Viable Product

  • Maximum Visibility Project

  • Minimum Value Project

Explicación

Pregunta 38 de 56

1

Steps are a sequence of preconditions, events, and expected outcomes of the scenario.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 39 de 56

1

Each 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).

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 40 de 56

1

Question 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.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 41 de 56

1

Each BDD scenario consists of a description and one or more steps that start with the words Who, What, or Where.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 42 de 56

1

__________ is an agile process designed to keep the focus on the stakeholder value throughout the whole
project.

Selecciona una de las siguientes respuestas posibles:

  • Waterfall development

  • Extreme programming

  • Test driven development

  • Behaviour driven development

Explicación

Pregunta 43 de 56

1

There 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.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 44 de 56

1

Using code as documentation does not exclude other types. Quite the contrary, the key is not to avoid using static
documentation, but to avoid duplication.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 45 de 56

1

Looking at the code to understand the code is often enough to figure out its purpose.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 46 de 56

1

Which of the following is true of traditional static documentation?

Selecciona una de las siguientes respuestas posibles:

  • It 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.

  • If given enough time, all traditional documentation becomes obsolete.

  • The 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.

  • All of the above

Explicación

Pregunta 47 de 56

1

The executable documentation obtained through unit tests is often enough; we get insights into details making it
easy to see the big picture.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 48 de 56

1

In 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.

Selecciona una de las siguientes respuestas posibles:

  • Single Responsibility

  • Open-Closed

  • Interface Segregation

  • Liskov Substitution

Explicación

Pregunta 49 de 56

1

Some 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.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 50 de 56

1

All 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.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 51 de 56

1

Primitive Obsession involves using primitive data types to represent domain ideas

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 52 de 56

1

Many 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.

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 53 de 56

1

A Kata is an exercise that defines some requirements or fixed features to be implemented in order to achieve some
goals

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 54 de 56

1

The 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

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 55 de 56

1

One benefit of keyword-driven testing is that test automation can be planned before the application is completed

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación

Pregunta 56 de 56

1

DDT goal to seperate data from scripts

Selecciona uno de los siguientes:

  • VERDADERO
  • FALSO

Explicación