小编Kar*_*ndi的帖子

如何使用SoapUI在我的JSON输入请求中使用全局属性名称?

我有一个SoapUI项目,其中包含大约60多项服务.每项服务都需要一些输入,每次执行都会更改.所以我创建了某些全局属性并为该属性分配了一些值.

我必须在我的SoapUI请求中使用这些属性值(即JSON格式请求).

如果是groovy脚本意味着,我将使用这样的.

字符串HTiC_Username = com.eviware.soapui.model.propertyexpansion.PropertyExpansionUtils.globalProperties ['HTiC_Username'].value;

但是,如何在请求中获取全局属性的值?

希望你理解我的问题.请提供适当的指导.

谢谢

groovy global properties soapui

6
推荐指数
2
解决办法
5741
查看次数

如何使用Groovy从SoapUI TestCase中删除自定义属性?

我在TestCase下创建了一些属性列表.例如,请查看以下屏幕截图.

SoapUI Pro  -  Testcase属性

我试图删除Testcase_Property通过以下Groovy脚本一步步测试特性:

testRunner.testCase.testSuite.removeProperty( "Testcase_Property" );
Run Code Online (Sandbox Code Playgroud)

当我重新加载项目时,单击测试用例名称时,自定义属性选项卡中仍存在Testcase_Property属性.

任何人都建议我删除SoapUI中的自定义属性的正确脚本.

谢谢
Karunagara Pandi

scripting groovy automation properties soapui

6
推荐指数
2
解决办法
7249
查看次数

如何在Hudson中为Ant配置checkstyle confuguration?

如何配置checkstyle(在Ant nt Maven中)任务?我尝试了一点,但我没有正确得到报告.这是我的蚂蚁脚本.

<target name="checkStyle">
    <taskdef resource="checkstyletask.properties">
        <classpath refid="compile.class.pathtest"/>
    </taskdef>

    <checkstyle config="${source.code.dir}/config/sun_checks.xml">
        <fileset dir="${base.working.dir}/JavaFolder">
            <include name="**/*.java"/>
        </fileset>
        <formatter type="plain"/>
        <formatter type="xml" toFile="checkstyle-result.xml"/>
    </checkstyle>
</target>

<path id="compile.class.pathtest">
    <pathelement location="${checkstyle.dir}/checkstyle-5.5-all.jar"/>
    <pathelement location="${checkstyle.dir}/checkstyle-5.5.jar"/>
    <pathelement location="${checkstyle.dir}/pmd-3.9.jar"/>
    <pathelement location="${checkstyle.dir}/asm-3.0.jar"/>
    <pathelement location="${checkstyle.dir}/backport-util-concurrent-2.1.jar"/>
    <pathelement location="${checkstyle.dir}/jaxen-1.1-beta-10.jar"/>
    <pathelement location="${checkstyle.dir}/saxpath-1.0-FCS.jar"/>
</path>
Run Code Online (Sandbox Code Playgroud)

什么是sun_checks.xml文件?我已经下载并保存在上面提到的文件夹中.在运行构建时,它会显示一些警告和错误.后来,它显示了这样.

建筑失败

C:\ server\build.xml:9725:执行此行时发生以下错误:C:\ server\build.xml:3838:得到56个错误和27599个警告.

你能指导我如何解决这个问题吗?

谢谢

ant hudson checkstyle

4
推荐指数
1
解决办法
4673
查看次数

我们如何使用Selenium IDE处理上传文件组件?

有人可以提供使用Selenium IDE处理文件上传过程的想法或网站参考吗?

其余的行动是通过'Selenium IDE录制的,但这个上传过程单独给人带来麻烦......

谢谢Karunagara Pandi

selenium file-upload selenium-ide

4
推荐指数
1
解决办法
7861
查看次数

修复SoapUI中"项目中缺少SOAP操作"错误

我正在使用SoapUI 4.5.1并且无法在TestStep下添加TestRequest.当我尝试添加TestRequest时,我收到以下错误对话框.

               "Missing SOAP Operations in Project"
Run Code Online (Sandbox Code Playgroud)

谁能告诉我怎么解决这个问题?

谢谢

testing soap web-services soapui project

3
推荐指数
1
解决办法
7918
查看次数

如何在 SoapUI 的 Groovy 脚本中定义具有返回类型的方法?

我需要一个应该向调用者返回字符串类型值的方法。为此,我编写了以下脚本。

String  getMethodValue = ReturnCountryName("US");

String ReturnCountryValue(String CName)
{
    CName = "Mauritius";
    return CName;
}

// Assign values to the global properties and call the servive
com.eviware.soapui.SoapUI.globalProperties.setPropertyValue( "CountryName", getMethodValue )

// Call GetCitiesByCountry service to run
def testStep = testRunner.testCase.testSteps['GetCitiesByCountry'];
testStep.run(testRunner,context);

// Message
log.info("Testcase execution is completed successfully.")
Run Code Online (Sandbox Code Playgroud)

我无法找到错误消息的解决方案,如下面的屏幕截图所示。

在此处输入图片说明

我该怎么做才能克服脚本中的这个错误?

谢谢,
Karunagara Pandi G

testing scripting groovy automation soapui

2
推荐指数
1
解决办法
9227
查看次数