Skip to content

Conversation

@mei-kyoseva
Copy link
Collaborator

No description provided.

public void postBeforeTest(TestResult testResult, Method memberInfo) {
}


Copy link
Collaborator

Choose a reason for hiding this comment

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

remove line

package solutions.bellatrix.core.plugins;

import org.apache.http.annotation.Obsolete;

Copy link
Collaborator

Choose a reason for hiding this comment

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

remove line

}
}


Copy link
Collaborator

Choose a reason for hiding this comment

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

extra line here as well

}

private String getProjectId(Method memberInfo) {
if (memberInfo.getDeclaringClass().isAnnotationPresent(ZephyrProject.class)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we support the attribute only on the class level?

try {
return settings().getDefaultProjectKey();
} catch (Exception ex) {
return "";
Copy link
Collaborator

Choose a reason for hiding this comment

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

add error log - Zephyr Project Id annotation not found on class level

Copy link
Collaborator

Choose a reason for hiding this comment

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

actually it is reading it from the config


var testCycleName = String.format("%s %s",
DateTimeUtilities.getUtcNow(),
settings().getTestCycleName().isBlank() ? settings().getTestCycleName() : "BELLATRIX RUN");
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is fine for now, but potentially we would want to set this via Environment variable.

DateTimeUtilities.getUtcNow(),
settings().getTestCycleName().isBlank() ? settings().getTestCycleName() : "BELLATRIX RUN");

var testCycle = new ZephyrTestCycle(settings().getDefaultProjectKey(), testCycleName, "In Progress");
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe extract the statuses to enum?

public static final EventListener<ZephyrExecutionPluginEventArgs> ZEPHYR_TEST_CASE_EXECUTED = new EventListener<>();
public static final EventListener<ZephyrCyclePluginEventArgs> ZEPHYR_CYCLE_STATUS_UPDATE_FAILED = new EventListener<>();

private ZephyrLocalData data;
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is a bit generic - I would rename it to zaphyrData

}
}

@Getter @Setter
Copy link
Collaborator

Choose a reason for hiding this comment

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

a class in the class? We usually create them in separate files

n1xan
n1xan previously requested changes Jun 5, 2024
Copy link
Collaborator

@n1xan n1xan left a comment

Choose a reason for hiding this comment

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

Please review and fix the PR comments.

@mei-kyoseva mei-kyoseva requested a review from n1xan June 7, 2024 20:42
# Conflicts:
#	bellatrix.core/src/main/java/solutions/bellatrix/core/plugins/PluginExecutionEngine.java
#	bellatrix.core/src/main/java/solutions/bellatrix/core/plugins/junit/BaseTest.java
@mei-kyoseva mei-kyoseva dismissed n1xan’s stale review July 9, 2024 07:00

changes were made

@mei-kyoseva mei-kyoseva merged commit 71ed8d8 into main Jul 9, 2024
@mei-kyoseva mei-kyoseva deleted the bellatrix-jira-zephyr-plugin branch July 9, 2024 08:18
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.

4 participants