Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Improved TP UI tests performance and fixed up the README#3657

Merged
mitchell852 merged 1 commit intoapache:masterfrom
ocket8888:improving-TP-tests
Jun 5, 2019
Merged

Improved TP UI tests performance and fixed up the README#3657
mitchell852 merged 1 commit intoapache:masterfrom
ocket8888:improving-TP-tests

Conversation

@ocket8888
Copy link
Copy Markdown
Contributor

@ocket8888 ocket8888 commented Jun 4, 2019

What does this PR (Pull Request) do?

  • This PR is not related to any Issue

Previously, each view change was accompanied by issuing a fresh request to the running TP instance. This means that every time a view was loaded, both Angular and Protractor need to run through their
bootstrap and setup processes. This behavior has been replaced by the more proper navigation using AngularJS's router for 'in-page navigation'

Which Traffic Control components are affected by this PR?

  • Documentation
  • Traffic Portal

What is the best way to verify this PR?

Run the TP UI tests. If you don't know how to do that, that's perfect, because I also changed the README that describes how to run them. So also make sure they aren't too vague for you to run the tests.

The following criteria are ALL met by this PR

  • This PR includes tests OR I have explained why tests are unnecessary
  • This PR includes documentation OR I have explained why documentation is unnecessary
  • An update to CHANGELOG.md is not necessary
  • This PR includes any and all required license headers
  • This PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

Previously, each view change was accompanied by issuing a fresh request to the running TP instance.
This means that every time a view was loaded, both Angular and Protractor need to run through their
bootstrap and setup processes. This behavior has been replaced by the more proper navigation using
AngularJS's router for 'in-page navigation'
@mitchell852 mitchell852 added Traffic Portal v1 related to Traffic Portal version 1 documentation related to documentation tests related to tests and/or testing infrastructure labels Jun 4, 2019
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jun 4, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/3819/
Test PASSed.

@mitchell852 mitchell852 self-assigned this Jun 5, 2019
@mitchell852 mitchell852 added the improvement The functionality exists but it could be improved in some way. label Jun 5, 2019
Copy link
Copy Markdown
Member

@mitchell852 mitchell852 left a comment

Choose a reason for hiding this comment

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

UI tests pass but much quicker. nice work!

@mitchell852 mitchell852 merged commit c002a03 into apache:master Jun 5, 2019
@ocket8888 ocket8888 deleted the improving-TP-tests branch June 6, 2019 00:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation related to documentation improvement The functionality exists but it could be improved in some way. tests related to tests and/or testing infrastructure Traffic Portal v1 related to Traffic Portal version 1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants