From: Dakre, Y. M [I. C. f. Sprint] <Yog...@sp...> - 2008-08-19 16:39:30
|
HI Team, This is what my object will look like. RateCard will have TierInfo. How should I map it in excel. I am getting following error when I am trying to setup the values in tierInfo. <rate-card tier-threshold="22.0" include-units="23" current-tier-index="12"> <tier-info mrc="33.0" overage-rate="44.0" index="222" from-units="34" to-unit="12"/> </rate-card> In excel file I have listed all the properties of ratecard but when I put any value in tierInfo I get the following error. Where I need to set up dependency? Please let me know if this have any solution to it. 266 [main] DEBUG org.ddsteps.junit.behaviour.DdRowBehaviour - [populate] Data: Name 'tierInfo' = Value 'fromUnits=12,toUnit=13,mrc=14,overageRate=15,index=16' 19 Aug 2008 10:12:10.820 [DEBUG] [main] [org.ddsteps.dataset.transform.PropertyPlaceholderTransformer] - [transform] No expressions found in string 'fromUnits=12,toUnit=13,mrc=14,overageRate=15,index=16'. 266 [main] DEBUG org.ddsteps.dataset.transform.PropertyPlaceholderTransformer - [transform] No expressions found in string 'fromUnits=12,toUnit=13,mrc=14,overageRate=15,index=16'. 19 Aug 2008 10:12:10.820 [DEBUG] [main] [org.springframework.beans.TypeConverterDelegate] - Field [fromUnits=12,toUnit=13,mrc=14,overageRate=15,index=16] isn't an enum value java.lang.NoSuchFieldException: fromUnits=12,toUnit=13,mrc=14,overageRate=15,index=16 at java.lang.Class.getField(Class.java:919) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:200) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:127) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:770) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:606) at org.ddsteps.junit.behaviour.DdRowBehaviour.setUpData(DdRowBehaviour.java:190) at org.ddsteps.junit.behaviour.DdRowBehaviour.setUp(DdRowBehaviour.java:110) at com.testdata.UsageDataLoader.loadData(UsageDataLoader.java:70) at com.testdata.UsageDataLoader.main(UsageDataLoader.java:112) 266 [main] DEBUG org.springframework.beans.TypeConverterDelegate - Field [fromUnits=12,toUnit=13,mrc=14,overageRate=15,index=16] isn't an enum value java.lang.NoSuchFieldException: fromUnits=12,toUnit=13,mrc=14,overageRate=15,index=16 at java.lang.Class.getField(Class.java:919) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:200) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:127) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:770) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:606) at org.ddsteps.junit.behaviour.DdRowBehaviour.setUpData(DdRowBehaviour.java:190) at org.ddsteps.junit.behaviour.DdRowBehaviour.setUp(DdRowBehaviour.java:110) at com.testdata.UsageDataLoader.loadData(UsageDataLoader.java:70) at com.testdata.UsageDataLoader.main(UsageDataLoader.java:112) org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [com.testdata.TierInfo] for property 'tierInfo'; nested exception is java.lang.IllegalArgumentException: No matching editors or conversion strategy found Caused by: java.lang.IllegalArgumentException: No matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:212) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:127) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:770) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:606) at org.ddsteps.junit.behaviour.DdRowBehaviour.setUpData(DdRowBehaviour.java:190) at org.ddsteps.junit.behaviour.DdRowBehaviour.setUp(DdRowBehaviour.java:110) at com.testdata.UsageDataLoader.loadData(UsageDataLoader.java:70) at com.testdata.UsageDataLoader.main(UsageDataLoader.java:112) Thanks & Regards, Yogesh Dakre IBM Global Services Mailstop KSOPHC0206 - 2B618 6240 Sprint Pkwy, Overland Park, KS 66251 (913) 762-9353 (Off.) (913) 486-5771 - PCS Paging<http://messaging.sprintpcs.com/sml/guestCompose.do?mobileNumber=9134865771> APP SUPPROT - QAS/IIS/IIN yog...@sp...<mailto:yog...@sp...> "Do it Solution Ahead" _____________________________________________ From: Dakre, Yogesh M [IBM Contractor for Sprint] Sent: Monday, August 18, 2008 2:46 PM To: 'ada...@dd...' Subject: help regarding DDSteps.. Hi Team, I am newbie to DDSteps. In our project I want to use DDStesps. The scenario is 1. We get response object from the backend layer. 2. We will be creating the stub data for this response object. (can we create stub data using DDSteps?) 3. We will execute our test against the stub data. a. This test data will be read from excel file as explained in the documentation. b. The stub data XML / XSL not yet finalized. 4. Is there any way in ddSteps so that data will automatically get loaded in to the object used by the class which we are testing? a. For example Class A have few variables and one class B Class A{ String str1; String str2; B b } And Class B{ String str3; String Str4; int I; ArrayList al; ... .... ... } When we will create excel sheet in order to test class A I will have to declare call B in the excel sheet. How can we do that using DDSteps? I don't want to create excel sheet for Class B separately. Hoping positive response from your side, Thanks and regards. Thanks & Regards, Yogesh Dakre IBM Global Services Mailstop KSOPHC0206 - 2B618 6240 Sprint Pkwy, Overland Park, KS 66251 (913) 762-9353 (Off.) (913) 486-5771 - PCS Paging<http://messaging.sprintpcs.com/sml/guestCompose.do?mobileNumber=9134865771> APP SUPPROT - QAS/IIS/IIN yog...@sp...<mailto:yog...@sp...> "Do it Solution Ahead" |