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
7
votes
2 answers

How to stub contentwindow.print with cypress/test printJS with cypress

My program uses printJS which a library that helps format the content of the page for printing. I wanted to write tests with cypress to test that the print preview has been called. Currently I have a button that calls printJS when clicked and since…
7
votes
1 answer

Protractor - unknown error: angular is not defined when using by.model

I'm working on writing some protractor tests for my Angular component and keep getting an error "unknown error: angular is not defined" when I try to use by.model to select the input element. Its odd because if I do this it works fine and…
bschmitty
  • 1,118
  • 3
  • 16
  • 46
7
votes
1 answer

combine Class Fixtures and Collection Fixtures in xunit

For running Protractor end to end tests in xunit I want to Combine Class Fixtures and Collection Fixtures in xunit. I created a collection fixture DatabaseServerFixture[Collection] to run the database and Server, so the database and web services are…
Sam
  • 28,421
  • 49
  • 167
  • 247
7
votes
1 answer

browser.explore() vs the old ways to debug in Prortractor

In Protractor 5.0.0, there was a new browser.explore() method added to the API. How is it different from the previous browser.pause() or browser.debugger() or the browser.enterRepl()? What is the preferred way to debug tests in Protractor?
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
7
votes
1 answer

onCleanUp() vs onComplete() vs afterLaunch()

In Protractor, there is a "global set up" method called onPrepare(), but I'm not completely sure what is meant to be a "global tear down" - there are three relevant methods: onCleanUp, onComplete and afterLaunch that are all called after a test…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
7
votes
1 answer

Get ng-model in ng-repeat with Protractor

How can I get the ng-model in ng-repeat with protractor ?

{{ field.country_name }}

I use this, but…
Jérémie Chazelle
  • 1,721
  • 4
  • 32
  • 70
7
votes
2 answers

Protractor : Read Table contents

I've been writing e2e tests for my angular js app and am unable to figure this out. I've got a table with data in it. I want to extract the first rows data.
<\td> <\td> <\td>
I…
JDunn
  • 107
  • 1
  • 3
  • 10
7
votes
1 answer

protractor: onPrepare for different test suites

I have onPrepare in my conf.js file where I log in to the application. My understanding is every time I run 1 or more test suites, it first executes whatever is in onPrepare. This is great, as I use onPrepare to log into the application before…
Jason
  • 1,787
  • 4
  • 29
  • 46
7
votes
4 answers

How to run single e2e test with grunt and protractor

I'm assuming this is possible and actually pretty simple, but I'm new to both grunt and protractor and I was not able to find the answer online (maybe I used wrong search criteria). I have the following e2e test in file…
redwulf
  • 1,317
  • 3
  • 13
  • 35
7
votes
3 answers

How to write Java e2e (end to end) tests

So... recently I was forcefully introduced to the wonderful world of unit testing(karma for grunt(AngularJS in the middle)), and it's been a wild ride; I really cannot believe how my code held together without test cases... Anyways, going back to my…
Dixel
  • 73
  • 1
  • 1
  • 9
7
votes
2 answers

Why is Angular $timeout blocking End-To-End tests?

I've made a directive which is used to show notification messages to a user. To show the notification I wrote this: $scope.$watch($messaging.isUpdated, function() { $scope.messages = $messaging.getMessages(); if ($scope.messages.length > 0)…
Jeffrey Rosselle
  • 745
  • 1
  • 9
  • 25
6
votes
5 answers

How to wait for a button to be enabled and click with puppeteer?

I have a form with two fields username and password. Once the username is entered the next button is enabled, once I click on it, it shows a password field and once that's entered, it enables the next button again. How do I wait for the button to be…
DJR
  • 89
  • 2
  • 3
  • 7
6
votes
1 answer

Is Telegram Bot communication secured via end-to-end encryption?

Despite controversy I like Telegram and it's bots. I would like using a couple of bots as personal assistants. However I'm paranoid with regards to secure network communication and data privacy. The idea of trusting my private data to some possibly…
creativecoding
  • 247
  • 2
  • 9
6
votes
4 answers

Cleaning up Protractor stack trace

The Question: Is it possible to clean up the stack trace and leave only relevant frames eliminating everything Protractor, WebDriverJS and Jasmine specific? The Story: Let's execute this example test: describe("SO test", function () { …
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
6
votes
3 answers

Protractor - Unable to run protractor tests

My tests are throwing the following error. It used to run fine before. Please advise. My Config file: exports.config = { seleniumAddress: 'http://localhost:4444/wd/hub', allScriptsTimeout: 20000, baseUrl: 'https://mylink/#/', // frameworks…
user2744620
  • 439
  • 1
  • 9
  • 21