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
6
votes
1 answer

How to simulate ctrl-click or shift-click with webdriver.io?

With webdriver.io I would like to simulate clicks with a modifier like shift or ctrl. The keys() method seems to do something like that but it's not clear to me how to release a modifier key again and it throws an error when I use 16 (key code for…
Sandro
  • 1,757
  • 1
  • 19
  • 29
6
votes
2 answers

Protractor: get url of not angular page

Case I try to test: On Angular app page press button, that redirects you to some other site (not an Angular app). it('should go to 3d party service when i click "auth" button' , function() { browser.driver.sleep(3000); …
paka
  • 1,601
  • 22
  • 35
6
votes
1 answer

What line is causing this Protractor error?

Is there a way for Protractor to show in the console log what line the error occurred on? I just get this type of message: Message: Failed: Cannot call method 'click' of undefined Stack: Error: Failed: Cannot call method 'click' of…
awaken
  • 789
  • 1
  • 11
  • 22
6
votes
3 answers

Is it possible to get next sibling using cssContainingText in Protractor

Is it possible to get the next sibling by using by.cssContainingText() Example: HTML code is like below:
SomeText
Sakshi Singla
  • 2,462
  • 1
  • 18
  • 34
6
votes
1 answer

How can I do a Ctrl+Click on protractor?

I have tried weird combination as the following, but none of them are working: var ptor = protractor.getInstance(); ptor.actions().mouseMove(node).keyDown(ptor.Key.CTRL).sendKeys(ptor.Key.CLICK).perform();
Chexpir
  • 1,876
  • 18
  • 33
6
votes
3 answers

Protractor: Checking data is sorted by date

I need to check the data returned is sorted by date. This is how I'm writing it: it('should be sorted by date', function() { element.all(by.repeater('users in group.users')).then( function(users) { var lastUser =…
Jason
  • 1,787
  • 4
  • 29
  • 46
6
votes
1 answer

Object # has no method 'getInstance' when trying to run Protractor tests
When I am attempting to run my Protractor tests from the command line all of my tests fail because whenever I try to access the protractor object it does not have the methods I need. The exact error is: TypeError: Object # has no method…
Aaron
  • 2,367
  • 3
  • 25
  • 33
6
votes
1 answer

cleaning up after Protractor tests

I'm using Rails + AngularJS and have switched to using Protractor for all my end to end tests. I've set it up using the protractor-rails gem which helps me use the test database instead of development database for my tests. The problem is after I…
map7
  • 5,096
  • 6
  • 65
  • 128
6
votes
1 answer

Automatically start ASP.MVC project when running test project

I'm trying to set up a test project for my ASP website. For some tests I want to use selenium to perform end-to-end tests. Therefor my website has to be running so the tests can access the site. How can I start my website project when I run tests?
Martin Walter
  • 540
  • 5
  • 11
6
votes
1 answer

How do you test AngularJS cookies in an end-to-end test?

I have a simple service that sets cookies in angular, but there's no obvious way to test that they've been set in an end-to-end test. The code to test is as simple as var splashApp = angular.module('splashApp',…
6
votes
2 answers

node.js/karma/end-to-end testing: failed to proxy /app/index.html (Error: connect ECONNREFUSED)

The following are messages I'm getting while trying to run end-to-end test from AngularJS tutorial http://docs.angularjs.org/tutorial/step_05 on MS Windows 8 Professional. Could you please advise how can I make this test running well? [2013-06-10…
ShamilS
  • 1,410
  • 2
  • 20
  • 40
6
votes
4 answers

AngularJS e2e Testing: How To Get value of repeater().count()?

Problem Calling repeater('#myTable tr','Rows').count(); returns a Future, not an integer. I need to get the integer value so I can confirm that an additional row was added to a table. Code it('should add a new user when save button is…
John Gordon
  • 2,181
  • 5
  • 28
  • 47
6
votes
3 answers

How to mock an AJAX request?

What is the simplest way to modify scenarios.js to mock an AJAX request during an end-to-end test? My Test AngularJS App
Chris
  • 4,237
  • 6
  • 30
  • 42
5
votes
0 answers

Mocking server side requests for end to end testing by cypress

I am using Cypress for end to end tests. To test my payment process I need to mock the request of my back end(express) to bank for transaction. So when the cypress test clicks buy, a request goes to backend and the backend sends a request to bank…
Armen Sanoyan
  • 1,898
  • 2
  • 19
  • 32
5
votes
4 answers

Cypress, cy.visit() failed trying to load ESOCKETTIMEDOUT

works on www.github.com cy.visit() failed trying to load ESOCKETTIMEDOUT but not on other websites enter code here