Simple test suite for regression testing

Hi,
I was wondering if anyone has a simple test suite available.
I'm after these main areas:
1. arbitary script lanching (or just firing off ud32 files)
2. database comms (inserting test data, extracting final status)
3. comparison (ala diff) for regression tests.
I have knocked out a partial (i.e. not 100% finished!) one myself in perl, but was wondering what else other people have created .
i'm Looking for insparation / use what has already been done!
Thank in adavance,
Wayne

Subclass the test case itself, and have a factory method to return instances of the correct class you wish to test, or, use a protected instance variable to put it in
e.g
public class TestMyClass extends TestCase {
   public MyClass getMyClass() {
     return new MyClass();
  public void testSomething() {
       MyClass myClass = getMyClass();
       assertTrue(myClass.isWorking());
  public class TestSubclass extends TestMyClass {
     @Override
     public MyClass getMyClass() {
        return new Subclass(); // assume this extends MyClass
     // all the superclass test methods still get run
  }or
public class TestMyClass extends TestCase {
  protected MyClass myClass;
  public void setup() {
    this.myClass = new MyClass();
  public void testSomething() {
       assertTrue(myClass.isWorking());
  public class TestSubclass extends TestMyClass {
  public void setup() {
    this.myClass = new SubClass();
     // all the superclass test methods still get run
  }

Similar Messages

  • Test Suites for ESB?

    Hi All,
    We all know that it is possible to automate the testing of the BPEL process.
    Could the same be possible for ESB Services as well.
    That is , could it be possible to develop test suites for ESB Services as well?
    Request you to provide inputs on the same.
    Thanks in advance!!!
    Warm Regards,
    Sai Maddali

    Hi Sai
    Make sure that your ApplicationServer and IntegrationServer connections are working from JDev
    Test a very basic project to determine if it is a problem with all projects or just this one
    Test the import function by importing the CustomerData.zip file as described in the ESB QuickStart Guide
    Make sure there are NO spaces in the path of your JDev project
    Make sure that all external service dependancies such as a SOAP WSDL URL in the project are resolved
    Cheers
    Pucha Anirudh

  • Environment for Simple Tests

    For Debug and Release configurations one can set environment variables (eg LD_LIBRARY_PATH) under Project Properties -> Run -> Environment. However, these settings are not used in my projects and are also not used for Test "targets", ie C++ Simple Tests. Is there a way to set the environment and for tests? (I'm using Solaris 12.3 under SL 6.2.)
    Many thanks!
    Edited by: user7741736 on May 11, 2012 5:16 PM

    It is OK to use LD_LIBRARY_PATH temporarily and in limited contexts, such as when testing a new shared library, but zootle is correct that you should not rely on it for more than that. It is not a sustainable or scalable solution. For more on this topic, see the blog post by Rod Evans:
    https://blogs.oracle.com/rie/entry/tt_ld_library_path_tt
    and the paper on using shared libraries by Darryl Gove and myself:
    http://www.oracle.com/technetwork/articles/servers-storage-dev/redistrib-libs-344133.html

  • Pre-qualification Test Suites for Device Driver Verification

    Pre-qualification test suites for verification of network and storage device drivers on Solaris(TM) 7 (Intel Platform Edition) are now available. These test suites are prototypes of test suites we plan to make available later this year. We are making the prototypes available for download
    because IHVs (Independent Hardware Vendors) and third-party developers have told us these tests are useful in assessing the readiness of their drivers. Please note that these prototype test suites are unsupported. We welcome your comments, which can be submitted by e-mail to
    [email protected]
    The test suites (NETTests for network drivers, SUNWprtst for storage drivers) are on the Developers Tools page (http://soldc.sun.com/developer/support/driver/tools/). If you're a
    registered user of the Solaris Developers Connection, log on and go straight to this page, then choose the network or storage test suite to download. If you haven't registered yet, go to
    http://soldc.sun.com to register (it's quick and it's free). You'll find links to the test suites under "What's New" on this same page.

    Pre-qualification test suites for verification of network and storage device drivers on Solaris(TM) 7 (Intel Platform Edition) are now available. These test suites are prototypes of test suites we plan to make available later this year. We are making the prototypes available for download
    because IHVs (Independent Hardware Vendors) and third-party developers have told us these tests are useful in assessing the readiness of their drivers. Please note that these prototype test suites are unsupported. We welcome your comments, which can be submitted by e-mail to
    [email protected].
    The test suites (NETTests for network drivers, SUNWprtst for storage drivers) are on the Developers Tools page (http://soldc.sun.com/developer/support/driver/tools/). If you're a
    registered user of the Solaris Developers Connection, log on and go straight to this page, then choose the network or storage test suite to download. If you haven't registered yet, go to
    http://soldc.sun.com to register (it's quick and it's free). You'll find links to the test suites under "What's New" on this same page.

  • [svn:osmf:] 16045: To fix bug FM-760, add a test suite for http streaming video.

    Revision: 16045
    Revision: 16045
    Author:   [email protected]
    Date:     2010-05-11 16:35:52 -0700 (Tue, 11 May 2010)
    Log Message:
    To fix bug FM-760, add a test suite for http streaming video.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/OSMFIntegrationTests.as

    (Removed)

  • Any simple program available for testing instant client for Windows

    Any simple program available for testing installation of instant client for Windows.
    Thankx in advance

    Having a program means you need a dev environment to compile, link and then test it with your instant client env.
    I would suggest you download sqlplus ZIP and connect to a DB server.

  • Test suites for Java.lang, java.util ?

    Does anyone known a good (free) test suite for java.lang and java.util ?
    I heard about "Mauve project" and was wondering how good it is...
    any others equivalent projects ?
    Thanks a lot !
    Eg\\*

    Hi,
    because I will have to test a specific implementation of these package (on an embedded device).
    Eg\\*

  • SAP Business Connector : Simple Test

    Hi Folks,
    Before I start , let me mention here that I am completely new to BC . And my requirement (I think) is also very simple.
    I have installed the business connector developer in my pc , and the BC server connection to SAP server is also working alright.
    My requirement is very simple , I want to pass a XML document to sap server . It is just a simple test as I am not going for any middleware setup etc.
    I just want to send this XML document to SAP for testing . I have tried by creating a "Flow" which expects a XML document but somehow it does not seem to work .
    Kindly let me know if possible the manual steps for sending XML doc to SAP.
    Thanks in Advance....

    You may use the standard developer's guide example to configure your scenario.
    Suppose you have File to RFC scenario.
    1. First create a structure for file system. This should be created as a Record in BC. Import the RFC structure too in BC.
    2. There is a standard ftp service (I guess in WmPublic package) which should be the first flow step of your flow service.
    3. Then use map steps to map the Records of file structure and Idoc.
    4. Then you may use imported RFC flow step to call RFC.
    5. At server, you need to define to routing rule from SAP BC -> R/3.
    Regards,
    Prateek

  • Noobie: unable to compile a simple test

    Hello all,
    I'm unable to compile a simple test to connect to the database, here is the env data:
    OS: windowsXP (32bit).
    compiler/linker: mingw.
    IDE: codeblocks.
    the program is:
    #include <iostream>
    #include <algorithm>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    class occicoll
    private:
    Environment *env;
    Connection *conn;
    Statement *stmt;
    string tableName;
    string typeName;
    public:
    occicoll (string user, string passwd, string db)
    env = Environment::createEnvironment (Environment::OBJECT);
    conn = env->createConnection (user, passwd, db);
    ~occicoll ()
    env->terminateConnection (conn);
    Environment::terminateEnvironment (env);
    int main()
    return 0;
    and I get this compiler errors:
    |=== TestOCCI, Debug ===|
    C:\XEClient\oci\include\oratypes.h|98|Error E2257 : , expected|
    C:\XEClient\oci\include\oratypes.h|99|Error E2238 : Multiple declaration for '_int64'|
    C:\XEClient\oci\include\oratypes.h|98|Error E2344 : Earlier declaration of '_int64'|
    C:\XEClient\oci\include\oratypes.h|99|Error E2257 : , expected|
    C:\XEClient\oci\include\oratypes.h|104|Error E2257 : , expected|
    C:\XEClient\oci\include\oratypes.h|105|Error E2257 : , expected|
    main.cpp|33|Error E2176 : Too many types in declaration|
    main.cpp|34|Error E2111 : Type 'occicoll' may not be defined here|
    main.cpp|36|Error E2034 : Cannot convert 'int' to 'occicoll' in function main()|
    ||=== Build finished: 9 errors, 0 warnings ===|
    most like I'm missing a few flags, any Ideas?
    thanks,
    Gal

    Hi,
    OS: windowsXP (32bit).
    compiler/linker: mingw.
    On Windows the only supported environment is Visual Studio / cl.exe (the Microsoft compiler).
    Regards,
    Mark

  • Help:set up simple test sequence, operator selects particular test then teststand links to part of sequence file and performs test

    Hi,
    I am extremely new to TestStand, please see question below and offer advice.
    I want to set up a simple test sequence.
    I want a message to popup on screen that asks the operator which unit of 6(max 10) Units to test(i.e. there are say 6-10 box's to select from).
    Then the sequence goes to the particular part of the sequence and performs the test on which ever unit was selected.
    What is the best way to do this?
    Could i use message popups to do this?and if so what do i need to do link it to the correct part of the sequence file?
    Do message popups only allow 6 options to select from?
    Thanks,
    Solved!
    Go to Solution.

    Hi,
       You can do using message popup method. You can ask the user which unit want to execute by inserting message in message expression in message popup step settings.Something like below
    "Enter unit number to execute 
     1.  Unit1
     2.  Unit 2
     10. Unit 10"
    then check "Enable response text box" from options tab in step settings.When user enters unit number you can get the user entered value by inserting the below statement in post expression of message popup step settings
        Locals.String = Step.Result.Response 
        Note : String is a local variable to be defined.
    Convert that string in to number and send that output to switch expression there by you can use a sequence call step to call sequence whichever to be executed. (I hope your each unit will be seperate sequence file)
    I hope these resolves your problem. If you don't understand let me know so that I can develop a small example and send it to.
    Cheers,
    krishna 

  • Unable to create a simple test client. Got ConfigException: JBO--33001

    I am trying to create a simple test client as per ADF training manual. Have just created an empty AM. The test client is giving this error at runtime.
    The test client looks like:
    public static void main(String args[])
    String amDef = "test.TestModule";
    String config = "TestModuleLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
    // Work with your appmodule and view object here
    Configuration.releaseRootApplicationModule(am, true);
    Getting the following error
    Exception in thread "main" oracle.jbo.ConfigException: JBO-33001: Cannot find the configuration file /test/common/bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:432)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:284)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:539)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1252)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1230)
         at amit.bc4j.TestClient.main(TestClient.java:18)
    Process exited with exit code 1.
    I have added JAXB and Applications Core libraries to the default library list.
    (added JaxB because of http://myforums.oracle.com/jive3/thread.jspa?messageID=3425268&#3425268
    and Unable to create a simple test client. Error JAXBException
    I have checked that /home/aagupta/jdevhome/home/aagupta/jdevhome/FusionJdev/mywork/Test2/TestProj/classes/amit/bc4j/common/bc4j.xcfg file exists.
    I even tried to add this directory using Add lib/directory pane, but no help.
    Please suggest what to do...
    Thanks,
    Amit

    Got it....i paid the price of not understanding the error messages and expecting bc4jclient and ctrl+enter is a magic wand :)
    Thanks to Steinmeier,Oliver http://myforums.oracle.com/jive3/thread.jspa?messageID=3408700&#3408700
    The shortcut only generates sample code. We need to substitute the actual AM location.
    public static void main(String args[])
    String amDef = "amit.bc4j.model.TestAM";
    String config = "TestAMLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
    System.out.println("Read the messages!");
    // Work with your appmodule and view object here
    Configuration.releaseRootApplicationModule(am, true);
    }

  • Quick & Simple Test 3 : OC on i7 920 with X58 Eclipse...4200mhz air cooling

    Xmas still have a few days ahead..but Santa had filled my Xmas stocking..... ...with MSI X58 Eclipse ( bios 1.34 ), Core i7 920 at 1.4vcore, Corsair TR3X3G1600C9 at 1600mhz 1.65vdimm, HSF Noctua NH-U12P SE1366,  MSI R4870T2D1G-OC, Corsair TX650w, WDGP640gb, DVR216BK, CM690, and Synmaster T220.  So..i tried to make a quick & simple  test with my new toys..and here the temporal result : 4ghz very easily and stable...
    feeewww...guys...this board are  ...have more than enough OC's ability ...MSI made a very good  board with this...
    cheers...
    p.s : still looking the max oc with air cooling...

    Just to update this simple test...max OC with air cooling and simply tweak...4200 mhz..and then hit the wall...
    I made your image clickable
    -Frankenputer

  • Creating a simple java client for a session EJB local interface

    Hi all
    Is it possible to create a simple java client for a session ejb local interface with JDeveloper.
    The problem is that it creates a test client for a remote interface only...
    i.e.
    MySessionEJB sessionEJB = context.lookup("MySessionEJB")
    and once i try to adjust it manually for the local interface...
    MySessionEJBLocal sessionEJB = (MySessionEJBLocal) context.lookup("MySessionEJBLocal") (MySessionEJBLocal - is the name of my local interface)
    it generates the exception:
    javax.naming.NotFoundException: SessionEJBLocal not found
    at...........................(RMIClientContext.java:52)
    There is still no problem with accessing the local interface object from the jsf project where i've added <ejb-local-ref> tag into the web.xml file.
    but i need the possibility of testing the simple java client for the local interface to test business methods wich should return objects without indirect properties
    Thanks in advance.
    Alex.

    Pedja thanks for reply.
    I still dont understand what is wrong with my example.
    The first peace of the code i wrote (getting the reference to the remote interface object) works pretty well, and even more it is produced automatically by JDeveloper, so why we cant get a reference to the local interface object the same way?
    Certanly we should use the local interface for getting access to the resource functioning under the same local jvm and i think it doesnt metter wich app server we really use wls or oas or others
    Thanks. Alex.

  • [svn:fx-trunk] 12903: Fix for regression in BitmapUtil.getSnapshot().

    Revision: 12903
    Revision: 12903
    Author:   [email protected]
    Date:     2009-12-14 07:53:53 -0800 (Mon, 14 Dec 2009)
    Log Message:
    Fix for regression in BitmapUtil.getSnapshot(). The fix last week (for sdk-20250) compensated for larger bounds with text objects and objects whose children have filters that go beyond the parent bounds. But the new call to BitmapData.getColorBoundsRect() had an error in the mask value that resulted in only capturing colored pixels, not all opaque pixels. This fix uses a mask that will cause the function to correctly capture all opaque pixels, regardless of color.
    QE notes: failure in Mustella Wipe_FxAnimateColor, but this is a known intermittent failure, not related to this fix
    Doc notes:
    Bugs: sdk-24684
    Reviewer: SteveB
    Tests run: checkintests, Mustella spark/effects/Wipe|CrossFade|AnimateShaderTransition
    Is noteworthy for integration: yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-20250
        http://bugs.adobe.com/jira/browse/sdk-24684
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/BitmapUtil.as

  • Watchless - a simple Bash helper for LESS to CSS compilation

    Here is a simple Bash tool for LESS files compilation, watching your .less files using inotifywait and compiling CSS on file change.
    Supports @import-ed files. Compiled files can go in the current directory or in another directory, keeping the directory structure intact (~/Project/less/style.less to ~/Project/css/style.css for example)
    Not well tested, may be dangerous.
    AUR: https://aur.archlinux.org/packages/watchless/

    I place all my LESS files, along with all of the JavaScript files in a sub-directory called _src (for source files). The _scr folder is Cloaked so that it is not included in file transfers. The structure looks like
    _src
        js
              bootstrap
                  ..... // files go here
              fonts
                  ..... // files go here
              jquery
                  ..... // files go here
              myscripts.js // scripts of my own that I want added
              scripts.js  // contains imported JS files that are combined and minified into one production script
        less
              bootstrap
                  ..... // files go here
              fonts
                  ..... // files go here
              footer.less //
              form.less //
              header.less  // these files are for the various parts of the template and or documents
              main.less //
              nav.less //
              styles.less // contains imported LESS files that are combined and minified into one production style sheet
    I will then use PrePros to compile the JS and CSS files making for just two HTTP requests.
    Have a look at source code (lines 7 and 110) of this site.
    Incidentally, by using PrePros, not only do the LESS and JS files get compiled automatically, any saved changes are immediately visible in my browser without having to refresh each time.

Maybe you are looking for