Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

chore(e2e): add the explanation #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

willmendesneto
Copy link
Contributor

No description provided.


## In construction

## Table of contents
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some categories here that are child of "Best Practices". Could you nest them in the TOC?

@leandroh
Copy link

On the topic of Using NodeJS in Protractor tests. Could you describe the way we can communicate with the remote HTTP server? (and figure out how to work around browser.get('/') and element.all(by.css('.table-sorter-order'))).

Imagine you have collected data on the production server (that runs in a different environment - e.g. Java). And now you want to run your e2e tests against the development environment (locally). Which is the best practice for this approach? $httpBackend mock? Fixtures? Or Replicate the production database to the development database?

Thanks.

@willmendesneto
Copy link
Contributor Author

@leandroh, but the aspects that you mentioned are based on unit-tests and application workflow environment. $httpBackend mock is used in unit-tests, not in end-to-end tests.

The environment where you ran your tests is already configured with this information ( using * backend language for response data, mocking data or creating other abstractions for it , for example), and the tests will run based in this environment configuration.

There are some tips and tricks for configuration setup for the deploy. For example: in an app using API Architecture Based, if you run tasks based on 3 environments (development, testing and production), you should supply some information to the application that will be used to define how to consume and respond with the apropriate data.

@leandroh
Copy link

Sorry for my misunderstanding.

@leandroh
Copy link

I guess my misunderstanding comes from this question http://stackoverflow.com/questions/19078962/how-to-do-integration-testing-for-angularjs-web-apps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants