Questions tagged [end-to-end]

Is a technique used to test whether the flow of an application right from start to finish is behaving as expected. For anything relating to applying a test, protocol, or other desired action to a set of servers from front-end to back-end.

While testing all of the individual components and connections in large system can help to give confidence in a system overall, ensuring that the expectations of system work together as a continuous entity will provide the greatest confidence in its viability.

Many other concepts also apply on an end-to-end level, such as ensuring that data is encrypted from the moment a user submits it until it reaches a database or other back-end or other similar considerations. Particularly as a multi-tiered infrastructure increases in complexity, so to does the burden of ensuring that the expectations of the system hold true across the various components of the system.

659 questions
13
votes
2 answers

Controlling poll frequency of browser.wait() (Fluent Wait)

The Story: In Java selenium language bindings there is a FluentWait class, that allows to tightly control how the expected condition would be checked: Each FluentWait instance defines the maximum amount of time to wait for a condition, as well as…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
13
votes
2 answers

Testing templates in Protractor?

What's the best way to write assertions that should apply across every page in a site? I'm testing to see if an element exists in the footer of my site, so the element should exist on all pages. I am thinking of writing a separate file for testing…
Lawrence Wagerfield
  • 6,471
  • 5
  • 42
  • 84
13
votes
9 answers

What best practices do you use for testing database queries?

I'm currently in the process of testing our solution that has the whole "gamut" of layers: UI, Middle, and the omnipresent Database. Before my arrival on my current team, query testing was done by the testers manually crafting queries that would…
Steven Raybell
  • 503
  • 2
  • 5
  • 14
12
votes
3 answers

How do I target a nested input that has no id attribute using Cypress?

I am writing a Cypress test for a React project. I need to be able to target an nested inside of a
12
votes
1 answer

How do I include end-to-end tests across microservices into multiple continuous delivery pipelines?

My team develops three microservices. The three work together to provide a business scenario. They communicate with REST and RabbitMQ. Looks like in Toby Clemson's presentation on Microservice Testing. Each microservice has its own continuous…
Florian
  • 4,821
  • 2
  • 19
  • 44
11
votes
1 answer

Should I mock APIs in end-to-end testing?

When you are doing e2e tests for your application, you want to test the whole application, not some portions of it like unit tests or integration testing. But in some situations, people do mock APIs. For example, when you have a massive microservice…
Shadowalker
  • 402
  • 1
  • 7
  • 17
11
votes
5 answers

Cypress CLI console output not very readable

I'm running cypress tests headlessly and would like the console output to be a little more readable. Currently, I get a very messy output as seen below. According to the documentation it should be using the Mocha SPEC reporter layout. Can anyone…
Jmh2013
  • 2,625
  • 2
  • 26
  • 42
11
votes
1 answer

All possible permutations of parameters using Spock's Unroll

I have the following parameters for the same test: a | b | c 1 | 2 | 3 11 | 22 | 33 Spock provides the @Unroll annotation for tests similar to this (with this set of parameters you can run to same tests with the vectors [1, 2, 3] and…
Dmitry Senkovich
  • 5,521
  • 8
  • 37
  • 74
11
votes
2 answers

Test hover state changes with protractor

No matter what I do I can’t get the hover state functional with protractor tests. The following code is semi functional .. Works well in Firefox Only works when I scroll the area into view with Chrome. Fails in Phantom JS obj …
Kirk Strobeck
  • 17,984
  • 20
  • 75
  • 114
11
votes
7 answers

Asserting an element is focused

According to the How do I assert an element is focused? thread, you can check if an element is focused by switching to an activeElement() and assert this is the same element you've expected to have the…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
11
votes
5 answers

Code coverage for Protractor tests in AngularJS

I am running some e2e tests in my angularJS app with protractor (as recommended in the angularJS documentation). I've googled around and cannot find any information on how to measure coverage for my protractor tests. I think I'm missing something…
10
votes
0 answers

How can WhatsApp be end-to-end encrypted when WhatsApp Web still works

I am not sure if this is the right place to ask but I am pretty sure I am asking a very stupid question. I am a developer but don't know anything about the latest encryption technologies. I've read on many websites that it took WhatsApp many years…
Muhammad bin Yusrat
  • 1,433
  • 1
  • 14
  • 19
10
votes
1 answer

Using cross-platform keyboard shortcuts in end-to-end testing

The Problem: In our rather big test codebase, we are using different keyboard shortcuts. For instance, to copy selected text we are using CTRL/COMMAND + C, to paste CTRL/COMMAND + v, to open a new tab CTRL/COMMAND + T etc. To keep tests work on…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
10
votes
2 answers

Element is not clickable at point - Protractor

I'm getting an error that element I am trying to click on is not click able which I belieave is not true. My error looks: 1) Open VehiclePage and populate data Populate vehicle data Message: UnknownError: unknown error: Element is not…
Andurit
  • 5,612
  • 14
  • 69
  • 121
10
votes
1 answer

Protractor troubleshooting

In protractor 1.5.0, there was a new --troubleshoot flag introduced, which is not properly documented at the moment, but in the changelog it states: Improve error messages and add debug info when the configuration file cannot be parsed a…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
1 2
3
43 44