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

add integratedtests logic into IVT itself #993

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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