Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #993 from Mark-J-Lawrence/sdvivtfix
Browse files Browse the repository at this point in the history
add integratedtests logic into IVT itself
  • Loading branch information
Mark-J-Lawrence authored Sep 30, 2024
2 parents f6cb724 + 5bd05c2 commit 3fa1a3a
Showing 1 changed file with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
import static org.assertj.core.api.Assertions.assertThat;

import dev.galasa.BeforeClass;
import dev.galasa.ProductVersion;
import dev.galasa.Test;
import dev.galasa.cicsts.CicsRegion;
import dev.galasa.cicsts.CicsTerminal;
import dev.galasa.cicsts.ICicsRegion;
import dev.galasa.cicsts.ICicsTerminal;
import dev.galasa.core.manager.Logger;
import dev.galasa.sdv.ISdvUser;
Expand All @@ -24,6 +27,9 @@ public class SdvManagerIVT {
@Logger
public Log logger;

@CicsRegion(cicsTag = "SDVIVT")
public ICicsRegion cics;

@CicsTerminal(cicsTag = "SDVIVT")
public ICicsTerminal terminal;

Expand All @@ -40,11 +46,18 @@ public void logIntoTerminals() throws SdvManagerException {
@Test
public void userUsesCeda() throws Exception {

terminal.type("CEDA DI G(SDVGRP)").enter().waitForTextInField(SDV_TCPIPSERVICE_NAME);
// Only run test if running on CICS 6.2+
if (!cics.getVersion().isEarlierThan(ProductVersion.v(750))) {

terminal.type("CEDA DI G(SDVGRP)").enter().waitForTextInField(SDV_TCPIPSERVICE_NAME);

assertThat(terminal.searchText(SDV_TCPIPSERVICE_NAME))
.as("Expectation to see " + SDV_TCPIPSERVICE_NAME + " in terminal").isTrue();
terminal.pf3();
assertThat(terminal.searchText(SDV_TCPIPSERVICE_NAME))
.as("Expectation to see " + SDV_TCPIPSERVICE_NAME + " in terminal").isTrue();
terminal.pf3();
} else {
// Just pass the test if running on earlier CICS versions
assertThat(true).isTrue();
}
}

}
Expand Down

0 comments on commit 3fa1a3a

Please sign in to comment.