malmesjo
15 years agoNew Contributor
PropertyExpansionTestCase patch
Hi,
I have a patch for the PropertyExpansionTestCase testScopedPropertyExpansion.
---------------------------
I have a patch for the PropertyExpansionTestCase testScopedPropertyExpansion.
---------------------------
### Eclipse Workspace Patch 1.0
#P soapui-nightly
Index: src/test/com/eviware/soapui/impl/wsdl/submit/filters/PropertyExpansionTestCase.java
===================================================================
--- src/test/com/eviware/soapui/impl/wsdl/submit/filters/PropertyExpansionTestCase.java (revision 5662)
+++ src/test/com/eviware/soapui/impl/wsdl/submit/filters/PropertyExpansionTestCase.java (working copy)
@@ -105,13 +105,12 @@
MockTestRunner mockTestRunner = new MockTestRunner( testCase, Logger.getLogger( "testing" ) );
MockTestRunContext context = new MockTestRunContext( mockTestRunner, testStep );
- PropertyExpansionUtils.getGlobalProperties().setPropertyValue( "testSuiteId", "testing" );
-
assertEquals( "123", context.expand( "${#Project#projectId}" ) );
assertEquals( "234", context.expand( "${#TestSuite#testSuiteId}" ) );
assertEquals( "345", context.expand( "${#TestCase#testCaseId}" ) );
SoapUI.getSettings().setBoolean( GlobalPropertySettings.ENABLE_OVERRIDE, true );
+ PropertyExpansionUtils.getGlobalProperties().setPropertyValue( "testSuiteId", "testing" );
assertEquals( "testing", context.expand( "${#TestSuite#testSuiteId}" ) );
}