Perl unit tests fail for dbxml-2.5.16

Hi,
I installed the berkeley db xml version 2.5.16 but while attempting to install perl, I came across the following errors when I run 'make test'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
t/btree.t .. 1/35 # Check simple env works with a hash.
# cursors
t/btree.t .. ok
t/dbt.t .... ok
t/txn.t .... # transaction - commit works
t/txn.t .... 1/28 # transaction - abort works
t/txn.t .... ok
All tests successful.
Files=3, Tests=73, 1 wallclock secs ( 0.03 usr 0.05 sys + 0.16 cusr 0.17 csys = 0.41 CPU)
Result: PASS
make[1]: Leaving directory `/home/emulo/Downloads/install/dbxml-2.5.16/dbxml/src/perl/Db'
make[1]: Entering directory `/home/emulo/Downloads/install/dbxml-2.5.16/dbxml/src/perl/DbXml'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
t/XmlContainerConfig.t ..... 1/28 BDB XML: illegal flag combination specified to DB->open
XmlException=SCALAR(0x85c0fb4)# Looks like you planned 28 tests but ran 25.
# Looks like your test exited with 2 just after 25.
t/XmlContainerConfig.t ..... Dubious, test returned 2 (wstat 512, 0x200)
Failed 3/28 subtests
t/XmlDocument.t ............ ok
t/XmlEvent.t ............... ok
t/XmlIndexLookup.t ......... ok
t/XmlIndexSpecification.t .. ok
t/XmlManager.t ............. 1/92 failed
Error: The flags DB_READ_UNCOMMITTED and DB_TXN_NOT_DURABLE cannot be used directly, you must set these flags using XmlContainerConfig.setReadUncommitted and XmlContainerConfig.setTransactionNotDurable. in t/XmlManager.t, line 367
# Looks like you planned 92 tests but ran 53.
# Looks like your test exited with -1 just after 53.
t/XmlManager.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 39/92 subtests
t/XmlQueryContext.t ........ ok
t/XmlResults.t ............. ok
t/XmlValue.t ............... ok
Test Summary Report
t/XmlContainerConfig.t (Wstat: 512 Tests: 25 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 28 tests but ran 25.
t/XmlManager.t (Wstat: 65280 Tests: 53 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 92 tests but ran 53.
Files=9, Tests=535, 5 wallclock secs ( 0.11 usr 0.15 sys + 1.04 cusr 1.51 csys = 2.81 CPU)
Result: FAIL
Failed 2/9 test programs. 0/535 subtests failed.
Any idea what could be causing this?
Edited by: 902499 on Jul 5, 2012 12:59 AM

Hi Michael,
Thanks for the patch! We'll take a look at that and try to improve the Perl installation in the next release.
John

Similar Messages

  • Perl unit tests fail

    I tried to build version 2.5.16 with the following options:
    ./buildall.sh prefix=/usr/local enable-perl
    I got the following message:
    make[1]: Entering directory `--------/dbxml-2.5.16/dbxml/src/perl/DbXml'
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
    t/XmlContainerConfig.t ..... UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
    UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
    t/XmlContainerConfig.t ..... 1/28 BDB XML: Database environment not configured for encryption
    XmlException=SCALAR(0xd6cac0)# Looks like you planned 28 tests but ran 25.
    # Looks like your test exited with 2 just after 25.
    t/XmlContainerConfig.t ..... Dubious, test returned 2 (wstat 512, 0x200)
    Failed 3/28 subtests
    t/XmlDocument.t ............ UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
    UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
    t/XmlDocument.t ............ ok
    t/XmlEvent.t ............... UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
    UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
    t/XmlEvent.t ............... ok
    t/XmlIndexLookup.t ......... UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
    UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
    t/XmlIndexLookup.t ......... ok
    t/XmlIndexSpecification.t .. UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
    UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
    t/XmlIndexSpecification.t .. ok
    t/XmlManager.t ............. UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
    UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
    t/XmlManager.t ............. 31/92 failed
    Error: Flags check failed for reindexContainer(). Expected some combination of 'DBXML_INDEX_NODES|DBXML_NO_INDEX_NODES|DBXML_STATISTICS|DBXML_NO_STATISTICS', but was passed 'DBXML_INDEX_NODES|DBXML_TRANSACTIONAL|DB_NOMMAP|DBXML_CHKSUM|DB_EXCL|DB_RDONLY'. in t/XmlManager.t, line 367
    # Looks like you planned 92 tests but ran 53.
    # Looks like your test exited with -1 just after 53.
    t/XmlManager.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
    Failed 39/92 subtests
    t/XmlQueryContext.t ........ UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
    UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
    t/XmlQueryContext.t ........ ok
    t/XmlResults.t ............. UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
    UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
    t/XmlResults.t ............. ok
    t/XmlValue.t ............... UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 461
    UNIVERSAL->import is deprecated and will be removed in a future perl at --------/dbxml-2.5.16/dbxml/src/perl/DbXml/../blib/lib/Sleepycat/DbXml.pm line 519
    t/XmlValue.t ............... ok
    Test Summary Report
    t/XmlContainerConfig.t (Wstat: 512 Tests: 25 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 28 tests but ran 25.
    t/XmlManager.t (Wstat: 65280 Tests: 53 Failed: 0)
    Non-zero exit status: 255
    Parse errors: Bad plan. You planned 92 tests but ran 53.
    Files=9, Tests=535, 3 wallclock secs ( 0.11 usr 0.02 sys + 0.69 cusr 0.14 csys = 0.96 CPU)
    Result: FAIL
    Failed 2/9 test programs. 0/535 subtests failed.
    make[1]: *** [test_dynamic] Error 255
    make[1]: Leaving directory `--------/dbxml-2.5.16/dbxml/src/perl/DbXml'
    If I don't used --enable-perl everything goes fine, the only problem is with perl enabled.
    I'm using perl version 5.12.1.
    Any ideas?
    thanks

    I turned off the deprecate warnings but still the tests fail.
    And her is the result
    PERL_DL_NONLAZY=1 /usr/bin/perl -w "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t
    t/XmlContainerConfig.t ..... 3/28 XmlException=SCALAR(0xd71428)# Looks like you planned 28 tests but ran 25.
    # Looks like your test exited with 2 just after 25.
    t/XmlContainerConfig.t ..... Dubious, test returned 2 (wstat 512, 0x200)
    Failed 3/28 subtests
    t/XmlDocument.t ............ ok
    t/XmlEvent.t ............... ok
    t/XmlIndexLookup.t ......... ok
    t/XmlIndexSpecification.t .. ok
    t/XmlManager.t ............. 1/92 print() on closed filehandle F at t/XmlManager.t line 146, <DATA> line 225.
    print() on closed filehandle F at t/XmlManager.t line 248, <DATA> line 225.
    t/XmlManager.t ............. 46/92 failed
    Error: Flags check failed for reindexContainer(). Expected some combination of 'DBXML_INDEX_NODES|DBXML_NO_INDEX_NODES|DBXML_STATISTICS|DBXML_NO_STATISTICS', but was passed 'DBXML_TRANSACTIONAL|DB_THREAD|DBXML_CHKSUM|DBXML_ENCRYPT|DB_EXCL|DB_RDONLY'. in t/XmlManager.t, line 367
    # Looks like you planned 92 tests but ran 53.
    # Looks like your test exited with -1 just after 53.
    t/XmlManager.t ............. Dubious, test returned 255 (wstat 65280, 0xff00)
    Failed 39/92 subtests
    t/XmlQueryContext.t ........ ok
    t/XmlResults.t ............. ok
    t/XmlValue.t ............... ok
    Test Summary Report
    t/XmlContainerConfig.t (Wstat: 512 Tests: 25 Failed: 0)
    Non-zero exit status: 2
    Parse errors: Bad plan. You planned 28 tests but ran 25.
    t/XmlManager.t (Wstat: 65280 Tests: 53 Failed: 0)
    Non-zero exit status: 255
    Parse errors: Bad plan. You planned 92 tests but ran 53.
    Files=9, Tests=535, 3 wallclock secs ( 0.09 usr 0.01 sys + 0.68 cusr 0.14 csys = 0.92 CPU)
    Result: FAIL
    Failed 2/9 test programs. 0/535 subtests failed.
    best,

  • [svn] 3718: Make sure the server is stopped even when a unit test fails.

    Revision: 3718
    Author: [email protected]
    Date: 2008-10-17 13:03:17 -0700 (Fri, 17 Oct 2008)
    Log Message:
    Make sure the server is stopped even when a unit test fails. Thanks to Alex for the fix.
    Modified Paths:
    blazeds/trunk/modules/core/build.xml

    I had the same issue after upgrading from 10.7.2 to 10.7.3 and changing my main SSL cert.
    The solution was to make sure the correct cert was listed in:
    /etc/openldap/slapd.conf
    as well as:
    /etc/openldap/slapd.d/cn=config.ldif
    It looks as though the slapd.conf file gets updated properly when you select an SSL cert in the Server Admin app, but the cn=config.ldif does not. That is the one that was hanging my server up.
    Hope this helps!

  • Unit test fails after upgrading to Kodo 4.0.0 from 4.0.0-EA4

    I have a group of 6 unit tests failing after upgrading to the new Kodo
    4.0.0 (with BEA) from Kodo-4.0.0-EA4 (with Solarmetric). I'm getting
    exceptions like the one at the bottom of this email. It seems to be an
    interaction with the PostgreSQL driver, though I can't be sure. I
    haven't changed my JDO configuration or the related classes in months
    since I've been focusing on using the objects that have already been
    defined. The .jdo, .jdoquery, and .java code are below the exception,
    just in case there's something wrong in there. Does anyone have advice
    as to how I might debug this?
    Thanks,
    Mark
    Testsuite: edu.ucsc.whisper.test.integration.UserManagerQueryIntegrationTest
    Tests run: 15, Failures: 0, Errors: 6, Time elapsed: 23.308 sec
    Testcase:
    testGetAllUsersWithFirstName(edu.ucsc.whisper.test.integration.UserManagerQueryIntegrationTest):
    Caused an ERROR
    The column index is out of range: 2, number of columns: 1.
    <2|false|4.0.0> kodo.jdo.DataStoreException: The column index is out of
    range: 2, number of columns: 1.
    at
    kodo.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4092)
    at kodo.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:82)
    at kodo.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:66)
    at kodo.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:46)
    at
    kodo.jdbc.kernel.SelectResultObjectProvider.handleCheckedException(SelectResultObjectProvider.java:176)
    at
    kodo.kernel.QueryImpl$PackingResultObjectProvider.handleCheckedException(QueryImpl.java:2460)
    at
    com.solarmetric.rop.EagerResultList.<init>(EagerResultList.java:32)
    at kodo.kernel.QueryImpl.toResult(QueryImpl.java:1445)
    at kodo.kernel.QueryImpl.execute(QueryImpl.java:1136)
    at kodo.kernel.QueryImpl.execute(QueryImpl.java:901)
    at kodo.kernel.QueryImpl.execute(QueryImpl.java:865)
    at kodo.kernel.DelegatingQuery.execute(DelegatingQuery.java:787)
    at kodo.jdo.QueryImpl.executeWithArray(QueryImpl.java:210)
    at kodo.jdo.QueryImpl.execute(QueryImpl.java:137)
    at
    edu.ucsc.whisper.core.dao.JdoUserDao.findAllUsersWithFirstName(JdoUserDao.java:232)
    at
    edu.ucsc.whisper.core.manager.DefaultUserManager.getAllUsersWithFirstName(DefaultUserManager.java:252)
    NestedThrowablesStackTrace:
    org.postgresql.util.PSQLException: The column index is out of range: 2,
    number of columns: 1.
    at
    org.postgresql.core.v3.SimpleParameterList.bind(SimpleParameterList.java:57)
    at
    org.postgresql.core.v3.SimpleParameterList.setLiteralParameter(SimpleParameterList.java:101)
    at
    org.postgresql.jdbc2.AbstractJdbc2Statement.bindLiteral(AbstractJdbc2Statement.java:2085)
    at
    org.postgresql.jdbc2.AbstractJdbc2Statement.setInt(AbstractJdbc2Statement.java:1133)
    at
    com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
    at
    com.solarmetric.jdbc.PoolConnection$PoolPreparedStatement.setInt(PoolConnection.java:440)
    at
    com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
    at
    com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
    at
    com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.setInt(LoggingConnectionDecorator.java:1
    257)
    at
    com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
    at
    com.solarmetric.jdbc.DelegatingPreparedStatement.setInt(DelegatingPreparedStatement.java:390)
    at kodo.jdbc.sql.DBDictionary.setInt(DBDictionary.java:980)
    at kodo.jdbc.sql.DBDictionary.setUnknown(DBDictionary.java:1299)
    at kodo.jdbc.sql.SQLBuffer.setParameters(SQLBuffer.java:638)
    at kodo.jdbc.sql.SQLBuffer.prepareStatement(SQLBuffer.java:539)
    at kodo.jdbc.sql.SQLBuffer.prepareStatement(SQLBuffer.java:512)
    at kodo.jdbc.sql.SelectImpl.execute(SelectImpl.java:332)
    at kodo.jdbc.sql.SelectImpl.execute(SelectImpl.java:301)
    at kodo.jdbc.sql.Union$UnionSelect.execute(Union.java:642)
    at kodo.jdbc.sql.Union.execute(Union.java:326)
    at kodo.jdbc.sql.Union.execute(Union.java:313)
    at
    kodo.jdbc.kernel.SelectResultObjectProvider.open(SelectResultObjectProvider.java:98)
    at
    kodo.kernel.QueryImpl$PackingResultObjectProvider.open(QueryImpl.java:2405)
    at
    com.solarmetric.rop.EagerResultList.<init>(EagerResultList.java:22)
    at kodo.kernel.QueryImpl.toResult(QueryImpl.java:1445)
    at kodo.kernel.QueryImpl.execute(QueryImpl.java:1136)
    at kodo.kernel.QueryImpl.execute(QueryImpl.java:901)
    at kodo.kernel.QueryImpl.execute(QueryImpl.java:865)
    at kodo.kernel.DelegatingQuery.execute(DelegatingQuery.java:787)
    at kodo.jdo.QueryImpl.executeWithArray(QueryImpl.java:210)
    at kodo.jdo.QueryImpl.execute(QueryImpl.java:137)
    at
    edu.ucsc.whisper.core.dao.JdoUserDao.findAllUsersWithFirstName(JdoUserDao.java:232)
    --- DefaultUser.java -------------------------------------------------
    public class DefaultUser
    implements User
    /** The account username. */
    private String username;
    /** The account password. */
    private String password;
    /** A flag indicating whether or not the account is enabled. */
    private boolean enabled;
    /** The authorities granted to this account. */
    private Set<Authority> authorities;
    /** Information about the user, including their name and text that
    describes them. */
    private UserInfo userInfo;
    /** The set of organizations where this user works. */
    private Set<Organization> organizations;
    --- DefaultUser.jdo --------------------------------------------------
    <?xml version="1.0"?>
    <!DOCTYPE jdo PUBLIC
    "-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 2.0//EN"
    "http://java.sun.com/dtd/jdo_2_0.dtd">
    <jdo>
    <package name="edu.ucsc.whisper.core">
    <sequence name="user_id_seq"
    factory-class="native(Sequence=user_id_seq)"/>
    <class name="DefaultUser" detachable="true"
    table="whisper_user" identity-type="datastore">
    <datastore-identity sequence="user_id_seq" column="userId"/>
    <field name="username">
    <column name="username" length="80" jdbc-type="VARCHAR" />
    </field>
    <field name="password">
    <column name="password" length="40" jdbc-type="CHAR" />
    </field>
    <field name="enabled">
    <column name="enabled" />
    </field>
    <field name="userInfo" persistence-modifier="persistent"
    default-fetch-group="true" dependent="true">
    <extension vendor-name="jpox"
    key="implementation-classes"
    value="edu.ucsc.whisper.core.DefaultUserInfo" />
    <extension vendor-name="kodo"
    key="type"
    value="edu.ucsc.whisper.core.DefaultUserInfo" />
    </field>
    <field name="authorities" persistence-modifier="persistent"
    table="user_authorities"
    default-fetch-group="true">
    <collection
    element-type="edu.ucsc.whisper.core.DefaultAuthority" />
    <join column="userId" delete-action="cascade"/>
    <element column="authorityId" delete-action="cascade"/>
    </field>
    <field name="organizations" persistence-modifier="persistent"
    table="user_organizations" mapped-by="user"
    default-fetch-group="true" dependent="true">
    <collection
    element-type="edu.ucsc.whisper.core.DefaultOrganization"
    dependent-element="true"/>
    <join column="userId"/>
    <!--<element column="organizationId"/>-->
    </field>
    </class>
    </package>
    </jdo>
    --- DefaultUser.jdoquery ---------------------------------------------
    <?xml version="1.0"?>
    <!DOCTYPE jdo PUBLIC
    "-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 2.0//EN"
    "http://java.sun.com/dtd/jdo_2_0.dtd">
    <jdo>
    <package name="edu.ucsc.whisper.core">
    <class name="DefaultUser">
    <query name="UserByUsername"
    language="javax.jdo.query.JDOQL"><![CDATA[
    SELECT UNIQUE FROM edu.ucsc.whisper.core.DefaultUser
    WHERE username==searchName
    PARAMETERS java.lang.String searchName
    ]]></query>
    <query name="DisabledUsers"
    language="javax.jdo.query.JDOQL"><![CDATA[
    SELECT FROM edu.ucsc.whisper.core.DefaultUser WHERE
    enabled==false
    ]]></query>
    <query name="EnabledUsers"
    language="javax.jdo.query.JDOQL"><![CDATA[
    SELECT FROM edu.ucsc.whisper.core.DefaultUser WHERE
    enabled==true
    ]]></query>
    <query name="CountUsers"
    language="javax.jdo.query.JDOQL"><![CDATA[
    SELECT count( this ) FROM edu.ucsc.whisper.core.DefaultUser
    ]]></query>
    </class>
    </package>
    </jdo>

    I'm sorry, I have no idea. I suggest sending a test case that
    reproduces the problem to support.

  • [svn:cairngorm3:] 21199: Maven Tests failing for unkown reason:

    Revision: 21199
    Revision: 21199
    Author:   [email protected]
    Date:     2011-05-04 01:08:33 -0700 (Wed, 04 May 2011)
    Log Message:
    Maven Tests failing for unkown reason:
    https://bugs.adobe.com/jira/browse/CGM-60
    Ticket Links:
        http://bugs.adobe.com/jira/browse/CGM-60
    Modified Paths:
        cairngorm3/trunk/libraries/NavigationParsley/pom.xml

    Hi Suraj,
    > Since its graphical the blocks will take space, but
    > there is always an adavntage of processing time.
    > Ebven though it may appear bigger, it will take less
    > time as compared with Java code (for the same
    > mapping).
    Could you explain more why the graphical mapping has better performance? I thought the graphical mapping is compiled into a Java class in the runtime anyway.
    > Yes thats there, but same goes with Java mapping too
    > right (if you haven't mentioned it as constants)
    I mainly think about inheritance. If I have to build 10 interfaces and they all have some common behavior, I can create a base interface class to encapsulate the common logic. But with graphical mapping, you have to duplicate them in each interface.
    > Disadvantages of Java mapping:
    > 1. Performance
    Same as above. I just don't see why Java has worse performance. I actually think Java should have better performance. You can optimize the code anyway you want. In some cases, you have to use queue functions in graphical mapping but it's not necessary in Java.
    > 2. All might not be well versed with Java Code(though
    > everyone may know basic java) .
    I am not asking everyone to abandon graphical mapping. I am just wondering which one is better when you have skills for both.
    > 3. Lot of standard functions are available in GM
    > which you can choose, but you have to remember the
    > exact code for those in Java mapping.
    You can create functions in Java too. All you have to do is to remember the function name.
    Kenny

  • Unit test plan for inbound and outbound interfaces

    I am trying to create a UNIT TEST PLAN for an interface. In this interface a flat file in IDOC format is picked up from the application server and processed using EDI_DATA_INCOMING for the relevant posting ( example : Sales order creation from a PO IDOC). IF the file is not in IDOC format then it is reformatted to the IDOC format manually.
    In second scenario(outbound), after sales order creation or billing document creation, IDOC is created which is read and a custom flat file is created and sent to a middleware.
    PLease suggest a unit test plan for these kind of scenarios or send a sample UTP if possible.
    REgards
    Nishant
    PS: points will be awarded to helpful answers.

    Unfortunately this isn't possible, the esa has only one routing table. You'll have to add specific routes for your internal networks.
    I usually avoid two-armed setups because of this and it gets even worse if you want to use virtual gateways (traffic gets sent via the internal interface with an IP from the external interface)

  • Unit Test Validation for Output Ref Cursor Not Working

    Here is the problem:
    I have a stored procedure as follows:
    CREATE OR REPLACE
    PROCEDURE usp_GetEmployee(
    p_employeeId IN NUMBER,
    cv_employee OUT Sys_RefCursor )
    AS
    BEGIN
    OPEN cv_employee FOR SELECT * FROM employees WHERE employee_id=p_employeeid;
    END usp_GetEmployee;
    For this, I am implementing a unit test.
    * In the "Select Parameters" step, I am unchecking the "Test Result" check box for the cursor OUT variable.
    * In the "Specify Validations" step, I am choosing "Boolean Function" and putting the following PL/SQL code:
    DECLARE
    emp_rec {cv_employee$}%rowtype;
    BEGIN
    FETCH {cv_employee$} INTO emp_rec;
    IF {cv_employee$}%FOUND THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    RETURN TRUE;
    END;
    But, when I try to execute this Test, I get the following error:
    Validation Boolean function failed: Unable to convert <oracle.jdbc.driver.OracleResultSetImpl@4f0617> to REF CURSOR.
    If I run in the debug mode, I get the following content in a dialog box:
    The following procedure was run.
    Execution Call
    BEGIN
    "ARCADMIN"."USP_GETEMPLOYEE"(P_EMPLOYEEID=>:1,
    CV_EMPLOYEE=>:2);
    END;
    Bind variables used
    :1 NUMBER IN 1001
    :2 REF CURSOR OUT (null)
    Execution Results
    ERROR
    CV_EMPLOYEE : Expected: [Any value because apply check was cleared], Received: [EMPLOYEE_ID                             COMMISSION_PCT                          SALARY                                 
    1001                                    0.2                                     8400                                   
    Validation Boolean function failed: Unable to convert <oracle.jdbc.driver.OracleResultSetImpl@31dba0> to REF CURSOR.
    Please suggest how to handle this issue.
    Thanks,
    Rahul

    979635 wrote:
    But, when I try to execute this Test, I get the following error:
    Validation Boolean function failed: Unable to convert <oracle.jdbc.driver.OracleResultSetImpl@4f0617> to REF CURSOR.
    If I run in the debug mode, I get the following content in a dialog box:
    The following procedure was run.
    Execution Call
    BEGIN
    "ARCADMIN"."USP_GETEMPLOYEE"(P_EMPLOYEEID=>:1,
    CV_EMPLOYEE=>:2);
    END;
    Bind variables used
    :1 NUMBER IN 1001
    :2 REF CURSOR OUT (null)
    Try explicity declaring the ref cursor instead of using a bind variable, something like (untested)
    begin
      foo sys_refcurosr;
    begin
      test_procedure(foo);
    end;Alternately, in SQL*PLUS use the DEFINE command to ste a named bind variable to type REFCURSOR and use the named bind variable in your test
    Edited by: riedelme on Jan 23, 2013 7:10 AM

  • Windows App Certification Kit - Test Fails for Validate Desktop App at "Write appropriate Add/Remove Program values"

    Hi,
    I am trying to validate a .Net Framework 4 WinForms application for use in the Microsoft Partner Network portal.
    I am using Windows App Certification Kit 3.4 for Windows 8.1 , and the Validate Desktop App option.
    To build the package I am using InstallShield 2012 SPR Limited Edition (for Visual Studio), and the validation fails
    only with the following error (please also see the attached image):
    Clean reversible install test: Failed to Write appropriate Add/Remove Program values
    Error Found: The registry population test detected the following error: app didn't create the required registry entries.
    A non-optional value 'DisplayName' is missing or invalid (same for 'Publisher', 'ProductVersion')
    Please note that I have filled in all the publisher/product details in the InstallShield project, on the General Information page.
    Also I have tried to use the Microsoft Visual Studio Installer Project for VS2013, and the validation failed with the exact same error.
    (https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d)
    Any help would be very appreciated.
    Thank you.

    You may need to add the necessary info to the app’s Windows Installer package so it can configure Add/Remove Programs in Control Panel correctly. Setting these properties automatically writes the corresponding values into the registry. From the picture,
    you are missing some necessary information about your desktop app.
    Also You need the correct admin permissions to write to the registry.
    Please refer to this thread:
    http://stackoverflow.com/questions/21182856/windows-app-certification-kit-test-result-app-didnt-create-the-require-regist
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unit Test Framework for 8.6

    Hi all,
    Do we have Unit Test Framework Toolkit for LabVIEW 8.6?
    We have unit Test Framework Toolkit for LabVIEW 8.6.1(Uit Test Framework Toolkit 1.0)
    Thanks,
    Suresh Kumar.G

    John Harby <[email protected]> wrote:
    Did you ever find anything? We are looking too ...I have been reading a great book that has given me some ideas, but I have not
    solidified any proofs of concept as of yet. Check out Vincent Massol book JUnit
    in Action. He has some great working examples of Mock Objects and Stubs using
    Cactus and Jetty. What I am thinking is that in a seperate "Java Project" within
    the application, we can extend JUnit and create whatever global objects a process
    needs and then make SOAP based calls to the JPD, since the JPD is derived from
    a web service. So the other piece to this is experience Unit Testing SOAP...
    - Noam

  • Where should I put my extended unit test assemblies for Visual Studio 2013?

    Hi, I have a question about M/S Unit test extension.
    1. My purpose
    I'm trying to extend Visual Studio Unit Test.
    The points where I extends unit test is to output detail logs.
    My development environment is as follows.
    OS: Windows 8.1Pro (64bit version)
    IDE: Microsoft Visual Studio Professional 2013
      (Version 12.0.30723.00 Update 3)
    2. Things which I'd like to know
    To enable my test extension, it is required to put my test extension assemblies into designated sub folder under Visual Studio's installed folder.
    The source of this information is MS developers blog below.
    (http://blogs.msdn.com/b/vstsqualitytools/archive/2009/09/04/extending-the-visual-studio-unit-test-type-part-1.aspx)
    Q1. It's required to put the assemblies bellow.
    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies
    Howerver, the guidance in the blog is for Visual Studio 2010.
    In Visual Studio2013, above "PrivateAssemblies" could not be found under "\Microsoft Visual Studio 12.0\Common7\IDE" folder.
    Where should I put my assemblies for my 2013. Is there any substitution for "\PrivateAssembly" folder?
    Q2. Another requirement is to set Assembly information entry into the registry below.
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\EnterpriseTools\QualityTools\TestTypes\{13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b}\TestTypeExtensions
    For Visual Studio 2013, I could find almost the same node hierarchy, but
    could not find the last "TestTypeExtention" node. Instead,
    I could find "Extensions" node.
    Should I write registry entry here? Or, should I make a new "TestTypeExtension" node and write the entry there?
    Q3.Last question is more basic question.
    Is there any way to kick extended test program in Visual Studio 2013's Test Explore
    without registering my assemblies in the way recommended above.
    I think it's much tender for developer's in debugging phase. For example,
    it is very much helpful, if I could kick a unit test which uses my extended test class in the unit test extension solution.
    That's all. Any information concerning this topics will be appreciated.

    Hi TrailRunner-MF,
    One possible reason is that you didn't view the correct folder, for example, in my windows 8.1 64 bit, it is in the path: "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE", not the "C:\Program Files\Microsoft Visual Studio
    12.0\Common7\IDE " folder.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Required Unit test Plan for Data migration

    Dear All,
    I am looking for unit test plan Draft documents/templates which covers
    1. Testing tools
    2. Methods
    3. Error handling
    4. Reviews and approvals
    The project is a Oracle 10g data migration from one schema to another schema.
    It will be a greate help if anyone can forward the same to me.
    Thank you.

    Hi Vaishali,
    You may wish to refer the links below...
    https://service.sap.com/instguides --> SAP NetWeaver --> Release 2004s --> Upgrade
    https://www.sdn.sap.com/irj/sdn/developerareas/bi
    latest on upgrade tp BI7.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2e8e5288-0b01-0010-2ea8-bcd4df5084a7
    Upgrading BW 3.X to SAP NetWeaver 2004s BI (PDF 2.6 MB)
    Front End Migration strategy
    Here's the migration strategy: Rolling out the New SAP NetWeaver 2004s BI Frontend Tools
    Presentation
    http://csc-studentweb.lrc.edu/swp/Berg/Articles/PM_2006_upgrade_NW2004s_Bjarne_Berg_v12.ppt
    Here are the frontend requirements:
    Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation
    Here are the backend requirements in the product availabilty matrix:
    https://websmp110.sap-ag.de/~form/handler?_APP=00200682500000001303&_EVENT=DISP_NEW&00200682500000002804=01200615320900001250
    Migration of Web Teplates
    832713 - Migration of Web templates from BW 3.x to Netweaver
    Assign points if this helps.
    Regards,
    Anil

  • Cache Connectivity Test fails for PI on MSCA

    Hi all,
    I experience the following problem with newly installed PI 7.0 SP12 system on MSCA.
    When I go to RWB and press "Cache Connectivity Test" I got the following error for central adapter engine:
    Attempt to fetch cache data from Integration Directory failed; cache could not be updated
    [Fetch Data]: Unable to find an associated SLD element (source element: SAP_XIIntegrationServer, [CreationClassName, SAP_XIIntegrationServer, string, Name, is.74.sapxi03, string], target element type: SAP_BusinessSystem)
    Tx: SLDCHECK - reports no problems.
    Tx:SLDAPICUST - is set to virtual host name and port.
    Appreciate your help.

    hi,
    here u have to clear the delta cache in SXI_CACHE.
    Open Tcode SXI_CACHE -
    >from menu  XI Runtime cache----->start Delta Cache Refresh(F6     or  CNTRL + F6 )
    reward points  if helpful
    regards
    sreeni

  • WACK Test Failed for Supported APIs for sqlite3.dll

    Hi,
    My recent WACK tests get the following error message: The supported APIs test detected the following errors:
    API __C_specific_handler in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API __CppXcptFilter in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API __clean_type_info_names_internal in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API __dllonexit in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _amsg_exit in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _calloc_crt in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _initterm in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _initterm_e in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _localtime64_s in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _lock in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _malloc_crt in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _msize in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _onexit in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API _unlock in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API free in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API malloc in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API memcmp in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API memcpy in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API memmove in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API memset in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API qsort in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API realloc in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API strcmp in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    API strncmp in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API. 
    The same application package was tested successfully on one machine while on another machine, it fails with the above error message. How could SQLite extension become unsupported APIs? Could this be an issue with the WACK tool itself?
    Thanks,

    Hi,
    I just completed my Windows Store App and when I test it using WACK, it failed and list the following errors:
    Error Found: The supported APIs test detected the following errors:
    API __CppXcptFilter in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API __clean_type_info_names_internal in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API __dllonexit in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _amsg_exit in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _calloc_crt in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _except1 in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _except_handler4_common in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _initterm in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _initterm_e in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _localtime64_s in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _lock in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _malloc_crt in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _msize in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _onexit in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API _unlock in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API free in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API malloc in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API memcpy in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API memmove in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API memset in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API qsort in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API realloc in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    API strncmp in msvcr120_app.dll is not supported for this application type. sqlite3.dll calls this API.
    Impact if not fixed:     Using an API that is not part of the Windows SDK for Windows Store apps violates the Windows Store certification requirements.  
    Why the SQLite 3.8.x is failed the certification requirement? Would it because of the dependency lib msvcr120_app.dll? Or it is a problem of WACK?
    Any solution to this?
    Thanks for any help reply in advance!

  • Better UI for Unit Tests

    I've been doing a lot of unit tests lately.  Right now I'm working on a code converter Air app and I'm constantly creating unit tests for bugs I'm finding and running them, and debugging them when they don't work.  When I debug, it's easiest to isolate the runner to run only one test.  I know I can do that by editing the source file and typing in the test name in the core.run call.  However, I can't help by think a better UI is needed for doing this form for TestDriven Development. 
    Basically, what I think would be perfect, is to have the UI, not run the tests initially.  It should provide you with a list of tests with checkboxes.  Then give you the opportunity to select which ones you want to run, and then run them.  It should also have the ability to re-run a test.  I realize that for any code changes to take affect you would need to re-run the entire app, but a lot of times, I find myself running the same test over and over and stepping through the code with the debugger in order to figure out what's going on.  Then I eventually change the code.
    Also, the new UI should persist the last set of selected tests, and maybe have a way to store previous selections.  That would make it perfect for how I use it. 
    Does anyone agree or disagree with this?  Has someone done this already?
    BTW, the reason I'm using the stand alone runner and not the one in Flash Builder 4 is because I've run into some bugs with the FlexUnit shipped with Flash Builder 4 and there doesn't seem to be a way to get the latest FlexUnit 4.1 to work properly with Flash Builder 4.  There seems to be a way to do it with Flash Builder 4.5, but I don't have that version.
    Thanks,
    Mark

    On 05/08/2012 03:56 PM, prakash jv wrote:
    > We have been looking for unit test framework for unit testing SWT
    > components in our RCP application developed in eclipse galileo 3.5.
    >
    > We found SWTBot supports the better UI testing and wanted to additional
    > details reagrding its support for maven 2.2.1.
    >
    > Does SWTBot work with projects which are mavenized with maven 2.2.1?
    >
    > Our aim of adding the unit tests for UI components is for better build
    > quality. So we would want these Unit tests to be run everytime we build
    > our assembly. As of now we use Junit4 for running our JUnits and they
    > run with maven outside eclipse.
    >
    > Does SWTBot support running the UI unit tests outside eclipse using maven?
    Hi
    in
    http://code.google.com/a/eclipselabs.org/p/emf-components/
    we run swtbot tests with maven/tycho
    hope this helps
    cheers
    Lorenzo
    Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
    ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
    HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
    http://www.myspace.com/supertrouperabba
    BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
    http://www.gnu.org/software/src-highlite
    http://www.gnu.org/software/gengetopt
    http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net

  • Hi Experts, need an example for abap unit test(ABAP OO)?

    Hi Experts,
    I want to do abap unit test for the developed programs, could anyone please give me an example program of development(a simple is ok, just use it to test)? and an abap unit test example for the program, what I want is to use object oriented abap, thanks in advance!
    Merry Christmas to you all.
    Kind regards
    Dawson

    Hi
    Below documents will give you more information,
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/8a1b602e858645b8aac1559b638ea4/content.htm
    ABAP Testing and Troubleshooting [original link is broken]
    http://bi.offis.de/publicProject/g16cglafhqva.htm
    regards
    Nagaraju

Maybe you are looking for