Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acceptance tests for Warnings Next Generation Plugin #479

Closed
wants to merge 118 commits into from

Conversation

uhafner
Copy link
Member

@uhafner uhafner commented Feb 13, 2019

Provides several tests for the Warnings Next Generation Plugin.

  • Add page objects for most important plugin views
  • Add tests for most important use cases
  • Refactor page objects to make them more readable and use the same style
  • Verify tests on Linux and Chromium
  • Verify tests on maxOs and Chrome
  • Verify tests on Linux and Firefox
  • Verify tests on macOS and Firefox

uhafner and others added 30 commits May 22, 2018 10:09
Add inputs for ReferenceFinder
…ce-test-harness into A-MSG-TestUIAggregation

# Conflicts:
#	src/test/java/plugins/AnalysisPluginsTest.java
…ce-test-harness into A-MSG-TestUIAggregation

# Conflicts:
#	src/test/java/plugins/AnalysisPluginsTest.java
# Conflicts:
#	src/test/java/plugins/AnalysisPluginsTest.java
# Conflicts:
#	src/test/java/plugins/AnalysisPluginsTest.java
…nce-test-harness into DarphBobo-hm-edu-testing

# Conflicts:
#	src/main/java/org/jenkinsci/test/acceptance/plugins/warnings/IssuesRecorder.java
…nce-test-harness into DarphBobo-hm-edu-testing

# Conflicts:
#	src/main/java/org/jenkinsci/test/acceptance/plugins/warnings/IssuesRecorder.java
@uhafner uhafner changed the title [WIP] Acceptance tests for Warnings Next Generation Plugin Acceptance tests for Warnings Next Generation Plugin Feb 21, 2019
@uhafner
Copy link
Member Author

uhafner commented Feb 21, 2019

@olivergondza I finally managed it to get all tests running 🥇 On the configuration page I needed to remove the div with our famous navigation bar.

@uhafner
Copy link
Member Author

uhafner commented Mar 8, 2019

@olivergondza ping. Anything else I should do?

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

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

This file appears unused

@olivergondza
Copy link
Member

I am glad to hear that! @uhafner, what is your vision about assertj's usage in ATH? I am still a bit uneasy to use both hamcrest and assertj (putting aside plain old junit's Assert and various should methods), but it looks interesting in my opinion.

@uhafner
Copy link
Member Author

uhafner commented Mar 11, 2019

Did you see https://github.com/jenkinsci/acceptance-test-harness/pull/479/files#r256992566?

I don't want to force something new here. I think AssertJ style is better than the other styles but I don't think it is worth the effort to replace existing code. So if you feel uncomfortable with both styles then I can remove it. Since we anyway have the idea to move most of the tests to the plugin itself and just leave one or two inside the ATH I can remove it from the ATH sub set of tests and leave it in the warnings-ng part of the tests.

Is this approach of moving tests to a plugin working already? You referenced a PR some time ago but I don't find it anymore...

olivergondza added a commit to olivergondza/acceptance-test-harness that referenced this pull request Mar 11, 2019
Acceptance tests for Warnings Next Generation Plugin
@olivergondza
Copy link
Member

I played with the assertj a bit and it seems to deliver better coding assistance and readability without impacting defect localization when compared to the alternatives. Let's keep it as it is so we will learn how well it does in the long term.


While at it, it found out the tests was failing for me locally because of Element <select class="setting-input dropdownList"> is not clickable at point (714,6) because another element <ul id="breadcrumbs"> obscures it. There appears to be an interesting corner case explained in the commit 39cbea4. BTW, the new warnings reports looks awesome!


The ATH extracting: I was able to achieve that but mind the TODO: https://github.com/jenkinsci/kerberos-sso-plugin/pull/14/files#diff-58231b16fdee45a03a4ee3cf94a9f2c3R14. The latest container is used no matter what ATH version you declare in pom with is going to be more and more of a problem with time.

@uhafner
Copy link
Member Author

uhafner commented Mar 20, 2019

Has been merged already.

@uhafner uhafner closed this Mar 20, 2019
@uhafner uhafner deleted the warnings-ng branch March 20, 2019 10:37
olivergondza added a commit that referenced this pull request Mar 20, 2019
Acceptance tests for Warnings Next Generation Plugin
@olivergondza
Copy link
Member

Thanks @uhafner, merged!

jsoref pushed a commit to jsoref/acceptance-test-harness that referenced this pull request Mar 20, 2019
Acceptance tests for Warnings Next Generation Plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants