Acceptance tests fail when run in specific order
------------------------------------------------

                 Key: MIFOS-3976
                 URL: http://mifosforge.jira.com/browse/MIFOS-3976
             Project: mifos
          Issue Type: Bug
          Components: Technical Discussion
    Affects Versions: Elsie F
            Reporter: Jakub Sławiński
             Fix For: Elsie F


Recently some of the tests in head/master do not initialize database (for 
example VariableInstalmentLoanProductTest). This means that the database left 
from previous test is used.

However, setUp method from these tests assumes that database contains specific 
data (for example 'Mrs' salutation), which isn't true for all existing dataSets.

Example tests order that leads to failure:

<testcase time="18.986" classname="org.mifos.test.acceptance.group.GroupTest" 
name="createGroupInPendingApprovalStateTestWithSurveys"/>
−
<testcase time="25.446" 
classname="org.mifos.test.acceptance.loanproduct.VariableInstalmentLoanProductTest"
 name="setUp">
−
<failure message="ERROR: Option with value '48' not found" 
type="com.thoughtworks.selenium.SeleniumException">
com.thoughtworks.selenium.SeleniumException: ERROR: Option with value '48' not 
found
        at 
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
        at 
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
        at 
com.thoughtworks.selenium.DefaultSelenium.select(DefaultSelenium.java:315)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at 
org.springframework.aop.aspectj.AspectJAfterAdvice.invoke(AspectJAfterAdvice.java:42)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy16.select(Unknown Source)
        at 
org.mifos.test.acceptance.framework.MifosPage.selectValueIfNotZero(MifosPage.java:67)
        at 
org.mifos.test.acceptance.framework.client.CreateClientEnterPersonalDataPage.create(CreateClientEnterPersonalDataPage.java:177)
        at 
org.mifos.test.acceptance.util.TestDataSetup.createClient(TestDataSetup.java:58)
        at 
org.mifos.test.acceptance.loanproduct.VariableInstalmentLoanProductTest.setUp(VariableInstalmentLoanProductTest.java:68)
</failure>
</testcase>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to