Skip to content

Commit

Permalink
feat: increase concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
sr4850 committed Sep 6, 2024
1 parent 82d7dec commit e4b8801
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,12 @@
<argLine>-Xmx${jvmMemory}m</argLine>
<testFailureIgnore>true</testFailureIgnore>
<rerunFailingTestsCount>1</rerunFailingTestsCount>
<forkCount>2</forkCount>
<forkCount>4</forkCount>
<includes>
<include>**/**.java</include>
</includes>
<parallel>methods</parallel>
<threadCount>2</threadCount>
<threadCount>4</threadCount>
<reuseForks>true</reuseForks>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,11 @@ public void deleteDocument() {
UniversalActions.clickConfirm();
}

public void checkLicenceStatus(String arg0) {
public void checkLicenceStatus(String expectedStatus) {
waitForElementToBeClickable("menu-admin-dashboard/admin-your-account/details", SelectorType.ID);
waitForTextToBePresent("Licence status");
assertEquals(arg0, getElementValueByText("//strong[contains(@class,'govuk-tag')]", SelectorType.XPATH));
String actualStatus = getElementValueByText("//strong[contains(@class,'govuk-tag')]", SelectorType.XPATH);
assertEquals(expectedStatus.toUpperCase(), actualStatus.toUpperCase());
}

public void closeCase() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.concurrent.ForkJoinPool;
import java.util.function.Predicate;
public class CustomRunner implements ParallelExecutionConfiguration, ParallelExecutionConfigurationStrategy {
private static final int FIXED_PARALLELISM = 2;
private static final int FIXED_PARALLELISM = 4;

static {
System.out.println("THREADS: " + FIXED_PARALLELISM);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public void thePublicationTextIsCorrectWithHGVsAndLGVs(String publicationType, S
public void iNavigateToTheApplicationPublicationsPage() throws HttpException {
world.internalNavigation.navigateToPage("application", SelfServeSection.VIEW);
world.internalUIJourney.payFeeAndPublishLicence();
world.internalNavigation.navigateToPage("application", SelfServeSection.VIEW);
clickByLinkText("Processing");
waitForTextToBePresent("Processing");
clickByLinkText("Publications");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Logic for Surrender menu item
Scenario: Surrender Licence
And my application to surrender is under consideration
When the caseworker approves the surrender
Then the licence status should be "SURRENDERED"
Then the licence status should be "Surrendered"
And the surrender menu should be hidden in internal
And the licence should not displayed in selfserve

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Feature: Publications display the right LGV related information on LGV only lice
Scenario: A submitted LGV Only application generated a publication correctly on internal
Given I have a submitted "GB" lgv only application
And i navigate to the application publications page
And I view the application publications page
Then the new application publication for LGV Only should be correct on internal

@ss_regression @FullRegression
Expand Down

0 comments on commit e4b8801

Please sign in to comment.