Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 941cf56

Browse files
committed
增加测试套件对文本更多值填入方式的支持
1 parent 00819ae commit 941cf56

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/main/java/org/suren/autotest/web/framework/core/suite/SuiteRunner.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,20 @@ private String performAction(SuiteAction action, Field pageField,
473473
text.fillValue();
474474
}
475475
break;
476+
case "appendValue":
477+
Text textAppend = getFieldObj(Text.class, pageField, page);
478+
if(textAppend != null)
479+
{
480+
textAppend.appendValue();
481+
}
482+
break;
483+
case "fillNotBlankValue":
484+
Text textNotBlank = getFieldObj(Text.class, pageField, page);
485+
if(textNotBlank != null)
486+
{
487+
textNotBlank.fillNotBlankValue();
488+
}
489+
break;
476490
case "upload":
477491
FileUpload fileUpload = getFieldObj(FileUpload.class, pageField, page);
478492
if(fileUpload != null)
@@ -642,6 +656,9 @@ private String performAction(SuiteAction action, Field pageField,
642656
}
643657

644658
break;
659+
660+
default:
661+
throw new RuntimeException("未知的操作:" + name);
645662
}
646663

647664
return actionResult;

0 commit comments

Comments
 (0)