IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Testing Tools Strategies

    Posted 05/15/03 01:59 PM

    Hi,

    I wanted to know if any one has used any tool(s) to automate the testing of webMethods Services (B2B and EAI) or created services to do the same. I am looking for some kind of tools(or create services) that will help me AUTOMATE the testing. These tools(services) should also generate reports.

    Looking forward for your responses,

    Thanks in advance,

    Gamad


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Testing Tools Strategies

    Posted 05/15/03 02:30 PM

    Mercury Interactive tool WinRunner can be used for automated testing of webMethods Services,which most of companies prefer this.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: Testing Tools Strategies

    Posted 05/15/03 03:33 PM

    Personally, I love JUnit. I automate the tests with Ant.

    I have created a simple class that extends the Junit TestCase class that sets up and tears down the IS Java client connection to IS, so each test I write just has to do context.invoke on the services I want to test. I’ve been meaning to write this up with full examples, but here main bit:

    package com.xxx.junit.framework;

    import junit.framework.*;
    import com.wm.app.b2b.client.Context;

    public class ISTestCase extends TestCase
    {
    static protected String DEFAULT_SERVER = “localhost”;
    static protected String DEFAULT_PORT = “5555”;
    static protected String DEFAULT_UID = “Administrator”;
    static protected String DEFAULT_PWD = “manage”;
    static protected String DEFAULT_TESTPACKAGE = “TestPackage”;

    private String server; 
    private String port; 
    protected Context context; 
    protected String uid; 
    protected String pwd; 
    private String packageName; 
    
    public ISTestCase(String name) { 
    super(name); 
    server = System.getProperty("junit.server", DEFAULT_SERVER); 
    port   = System.getProperty("junit.port",DEFAULT_PORT); 
    uid = System.getProperty("junit.uid",DEFAULT_UID); 
    pwd = System.getProperty("junit.pwd",DEFAULT_PWD); 
    packageName = System.getProperty("junit.packageName", DEFAULT_TESTPACKAGE); 
    } 
    
    /** 
    * Setup the client connection to IS 
    */ 
    public void setUp() { 
    
    context = new Context(); 
    try { 
    context.connect(server+":"+port,uid,pwd); 
    } 
    catch (Exception e) { 
    e.printStackTrace(); 
    fail(" Error: Unable to connect to server '" + server 
    + ":" + getPort() 
    + "' uid:'"  + getUID() 
    + "' pass:'" + getPWD() 
    + "' aborting testing:" + e); 
    } 
    } 
    
    /** 
    * Disconnect from Server. 
    */ 
    public void tearDown() 
    { 
    if (context.isConnected()) 
    context.disconnect(); 
    return; 
    } 
    
    public String getServer() 
    { 
    return server; 
    } 
    public String getPort() 
    { 
    return port; 
    } 
    public String getUID() 
    { 
    return uid; 
    } 
    public String getPWD() 
    { 
    return pwd; 
    } 
    public String getPackageName() 
    { 
    return packageName; 
    } 
    

    }


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 4.  RE: Testing Tools Strategies

    Posted 05/15/03 05:13 PM

    Yeh, I’ve used JUnit too for IS services.

    Sometimes it can be a little hard to test certain services at a decent level of detail - ones that create complex documents, for example - but it’s generally extremely useful.

    http://junit.org


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 5.  RE: Testing Tools Strategies

    Posted 05/15/03 05:43 PM

    Also, Pete Arvanitis wrote a webMethods Ezine article on this topic. You may find it to be helpful as you get started with JUnit.

    The article can be read at [url=“wmusers.com”]wmusers.com.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB