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

URL rerun #517

Merged
merged 7 commits into from
Aug 9, 2019
Merged

URL rerun #517

merged 7 commits into from
Aug 9, 2019

Conversation

Cich0sza
Copy link
Contributor

@Cich0sza Cich0sza commented Aug 1, 2019

Description

Angular app was sending a url instead of a url name, so backend could not find the right test case.

  • Angular app sends a url name instead of a url.

Motivation and Context

Closes #487

Screenshots (if appropriate)

Upgrade notes (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • I have reviewed (and updated if needed) the documentation regarding this change

I hereby agree to the terms of the AET Contributor License Agreement.

@@ -35,7 +35,7 @@ <h4 class="toolbar-link-header ellipsis">
data-content="Rerun current URL"
data-trigger="hover"
data-container="body"
data-ng-click="toolbarBottom.rerunURL(toolbarBottom.model.url)">
data-ng-click="toolbarBottom.rerunURL(toolbarBottom.model.name)">
Copy link
Contributor

Choose a reason for hiding this comment

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

Will it also work when URL doesn't have a "name" attribute in XML?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because when user doesn't set "Name" attribute, then URL is set as "Name"

Copy link
Contributor

@tkaik tkaik left a comment

Choose a reason for hiding this comment

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

Good job!

Copy link
Contributor

@plutasnyy plutasnyy left a comment

Choose a reason for hiding this comment

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

Thanks! ;)

var url = endpointConfiguration.getEndpoint().getUrl + 'suite-rerun?' + rerunParams;
$http.post(url, {}).then(function successCallback(response) {
var url = endpointConfiguration.getEndpoint().getUrl + 'suite-rerun';
$http.post(url, {
Copy link
Contributor

Choose a reason for hiding this comment

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

It warms my heart ❤️

private String testUrl;
private String testName;

public RerunDataWrapper(String correlationId, String company, String project, String suite, String testUrl, String testName) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This constructor is probably redundant, I don't think that GSON is using it. Setters are also redudant here

CHANGELOG.md Outdated
@@ -16,6 +16,7 @@ All notable changes to AET will be documented in this file.
- [PR-489](https://github.com/Cognifide/aet/pull/489) Cleaner integration tests
- [PR-480](https://github.com/Cognifide/aet/pull/480) Test summary stats on the main report page. ([#474](https://github.com/Cognifide/aet/issues/474))
- [PR-459](https://github.com/Cognifide/aet/pull/459) Print more meaningful error messages when suite.xml is malformed ([#436](https://github.com/Cognifide/aet/issues/436))
- [PR-517](https://github.com/Cognifide/aet/pull/517) Angular sends a URL name instead of a URL to RerunServlet ([#487](https://github.com/Cognifide/aet/issues/487))
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest simplifying this, e.g. Single URL rerun fixed for named URLs so it's more understandable :)

@tkaik tkaik merged commit ec6d9db into master Aug 9, 2019
@tkaik tkaik deleted the bugfix/URL-rerun-doesn't-work branch August 9, 2019 07:30
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.

URL rerun doesn't work
3 participants