Skip to content

Commit

Permalink
Text and spec symbols in numeric fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyshkou_I committed Feb 17, 2025
1 parent 795f2b1 commit e56f5ed
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ class UnsecureConnectionDialog(val driver: Driver) {

init {
driver.ideFrame {
<<<<<<<< HEAD:src/uiTest/kotlin/tests/utils/notification/UnsecureConnectionDialog.kt
dialog = dialog(xpath = "//div[@accessiblename='Attempt to create an unsecured connection']")
========
dialog = dialog("//div[@class='JEditorPane' and @visible_text='Attempt to create an unsecured connection']/ancestor::div[@class='MyDialog'][1]")
>>>>>>>> origin/feature/GH-282-automated-test-pipeline-run:src/uiTest/kotlin/tests/utils/uidefinitions/dialogs/UnsecureConnectionDialog.kt
}
}
}
76 changes: 75 additions & 1 deletion src/uiTest/kotlin/workingset/Data.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const val invalidDatasetNameConstant = "Each name segment (qualifier) is 1 to 8
"a hyphen (-). Name segments are separated by a period (.)"

const val enterValueInCorrectRangeFromOneMsg = "Please enter a number from 1 to 2,147,483,646"
const val enterNumberMsg = "Please enter a number"
const val enterValueInCorrectRangeFromOneNoSeparateMsg = "Please enter a number from 1 to 2147483646"
const val enterValueInCorrectRangeFromZeroMsg = "Please enter a number from 0 to 2,147,483,646"
const val MEMBER_ALREADY_EXISTS = "ISRZ002 Member already exists - Directory already contains the specified member name."
Expand Down Expand Up @@ -186,6 +187,65 @@ val invalidAverageBlockLengthParams = Pair(AllocateDatasetParams(
name="A23.A7", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "0",
recfm=RecFM.FB, blksz="3200", avgBlkLen = "-1", dirBlock="1", lrecl="80"
), enterValueInCorrectRangeFromZeroMsg)
val textInBlockLengthParams = Pair(AllocateDatasetParams(
name="A23.A7", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "0",
recfm=RecFM.FB, blksz="Abc", avgBlkLen = "1", dirBlock="1", lrecl="80"
), enterNumberMsg)

val specSymbolsInBlockLengthParams = Pair(AllocateDatasetParams(
name="A23.A7", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "0",
recfm=RecFM.FB, blksz="#!@#$%", avgBlkLen = "1", dirBlock="1", lrecl="80"
), enterNumberMsg)

val textInBlockSizeParams = Pair(AllocateDatasetParams(
name="A23.A6", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "0",
recfm=RecFM.FB, blksz="Abc", avgBlkLen = "0", dirBlock="1", lrecl="80"
), enterNumberMsg)

val specSymbolsInBlockSizeParams = Pair(AllocateDatasetParams(
name="A23.A6", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "0",
recfm=RecFM.FB, blksz="#@$%^&*", avgBlkLen = "0", dirBlock="1", lrecl="80"
), enterNumberMsg)

val textInSecondaryAllocationParams = Pair(AllocateDatasetParams(
name="A23.A5", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "Abc",
recfm=RecFM.FB, blksz="3200", avgBlkLen = "0", dirBlock="1", lrecl="80"
), enterNumberMsg)

val specSymbolsInSecondaryAllocationParams = Pair(AllocateDatasetParams(
name="A23.A5", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "#@$%^&*",
recfm=RecFM.FB, blksz="3200", avgBlkLen = "0", dirBlock="1", lrecl="80"
), enterNumberMsg)

val textInRecordLengthParams = Pair(AllocateDatasetParams(
name="A23.A4", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "0",
recfm=RecFM.FB, blksz="3200", avgBlkLen = "0", dirBlock="1", lrecl="Abc"
), enterValueInCorrectRangeFromOneNoSeparateMsg)
val specSymbolsInRecordLengthParams = Pair(AllocateDatasetParams(
name="A23.A4", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "0",
recfm=RecFM.FB, blksz="3200", avgBlkLen = "0", dirBlock="1", lrecl="#@\$%^&*"
), enterValueInCorrectRangeFromOneNoSeparateMsg)

val textInDirectoryParams = Pair(AllocateDatasetParams(
name="A23.A3", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "0",
recfm=RecFM.FB, blksz="3200", avgBlkLen = "0", dirBlock="Abc", lrecl="80"
), enterNumberMsg)

val specSymbolsInDirectoryParams = Pair(AllocateDatasetParams(
name="A23.A3", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "10", secAlloc = "0",
recfm=RecFM.FB, blksz="3200", avgBlkLen = "0", dirBlock="#@/$%^&*", lrecl="80"
), enterNumberMsg)

val textInPrimaryAllocationParams = Pair(AllocateDatasetParams(
name="A23.A2", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "Abc", secAlloc = "1",
recfm=RecFM.FB, blksz="3200", avgBlkLen = "0", dirBlock="1", lrecl="80"
), enterNumberMsg)

val specSymbolsInAllocationParams = Pair(AllocateDatasetParams(
name="A23.A2", preset="Custom Dataset", dsOrg=DsOrg.PO, unit=AllocUnit.TRK, primAlloc = "#@/\$%^&*", secAlloc = "1",
recfm=RecFM.FB, blksz="3200", avgBlkLen = "0", dirBlock="1", lrecl="80"
), enterNumberMsg)


val invalidAllocateScenarios = listOf(
invalidDatasetNameParams,
Expand All @@ -194,7 +254,21 @@ val invalidAllocateScenarios = listOf(
invalidRecordLengthParams,
invalidSecondaryAllocationParams,
invalidBlockSizeParams,
invalidAverageBlockLengthParams

invalidAverageBlockLengthParams,
textInRecordLengthParams,
specSymbolsInRecordLengthParams,
textInDirectoryParams,
specSymbolsInDirectoryParams,
textInPrimaryAllocationParams,
specSymbolsInAllocationParams,
textInBlockLengthParams,
specSymbolsInBlockLengthParams,
textInBlockSizeParams,
specSymbolsInBlockSizeParams,
textInSecondaryAllocationParams,
specSymbolsInSecondaryAllocationParams

)

//rename members constants
Expand Down

0 comments on commit e56f5ed

Please sign in to comment.