Using JUnit to let user type into Swing components

Our goal is to create a test suite in which the user, our customer, types into components in JFrames and experiments with these components. We wanted to enable him to play with a TestCase/JFrame until he closed the JFrame, and let AllTests do the next TestCase.
We are NOT looking into automated Robots and recording.
We found that when a TestCase contains a JFrame, and we do a frame.setVisible(true), the frame appears for a split second, and TestCase calls tearDown.
We kluged a call to Robot.delay(60000). Ugly as it is, it does allow us to play with components in the TestCase! However, this kluge stops AllTests from running all of the TestCase's in its suite.
Is there a way to throw up Swing TestCases one after another?
Thanks,
Matt

Use BADI ME_PROCESS_PO_CUST

Similar Messages

  • 0 down vote favorite share [fb] share [tw]        How to hide cut/copy/paste/Replace- menu on the UIWebView when it is being displayed over the keyboard.  Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text b

    How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
    Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
    I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
    Any clues will help a lot.
    Thanks.

    You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.

  • Hi all I am using Jbuilder 7 can not type into jlist. Why!!

    Hi there
    can anyone tell me why when I compile my code all works.
    I can't type into my jlist
    WHY??
    please someone
    Craig

    Maybe I'm missing something, but JLists are made from arrays, vectors, or objects with a constructor or by adding those items to an already created JList. I've not seen where you can type directly into the list, unless programatically implemented.

  • In mail and the keyboard will not let me type into it, help!

    Can anyone help to answer why when I am trying to type in my emails the keyboard sometimes will not come up and other times it comes up but will not type on the screen?

    Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple logo. Ignore the red slider.

  • How to use an array for variable name of swing components using NetBeans

    I'm completely new to Java and GUIs, so excuse me if I use the wrong terminology. I'm making a JFrameFrom in NetBeans. I'm getting really tired of typing instructions like jTextField15.setText(variable[15].text); I would like to make the variable names of my text fields an array so I can use a loop to change the values, text, tooltips, etc. When I click "change variable name" it won't let me put an array in. The code that Swing generates is protected and I can't change it. I know there must be a way to do this. Any help is appreciated.

    Try not to use the NetBeans visual GUI builder. Then it should be easy to create an array of text fields:
    JTextField[] tfs = new JTextField[15];
    for (int i = 0; i < tfs.length; i++) {
        tfs[i] = new JTextField(10);
    }For laying out the text fields, see: [http://download.oracle.com/javase/tutorial/uiswing/layout/using.html]

  • Let user drag drop dynamic components, resize them

    I'm just wondering how you can create UI components and let
    the user drag and drop them on the screen
    let the user resize the elements, change the text for example
    or rotate the element (just like scrapblog)
    Lets say you want to have an image object.
    Do have to create your own custom components that inhertis
    from the image component
    add some kind of handle objects and handle al the events so
    the user can change the size and rotate it
    Or is there a much easier way of doing this kind of cool
    stuff
    If anyone knows how this kind of technique is called, let me
    know its hard to find something about it (in any language,
    if i search for wysiwyg drag and drop in flex or .NET i
    mostly get results like FlexBuilder en Visual Studio not how to
    program such special components)
    grtz

    Did some more searching and already found some cool examples
    http://www.rogue-development.com/objectHandles.html
    http://blogs.adobe.com/flexdoc/2007/03/creating_resizable_and_draggab.html
    more examples are still welcome :)

  • Can you type into keynote

    hi
        i am doing a project on keynote for homework but it wont let me type into the slides.  i got typing onto it previously but only by copy and paste from pages
    thanks

    Have you tried inserting a text box?

  • TS3112 I tried using sudo rm to get rid of remote desktops but the terminal responded as needing password and yet would not let me type in anything.  help please.

    I tried to type in details but unable to do so.  we lived in a gated apt buildings in Hi with 24-hour security guards and cameras.  This false sense of security led us to foolishly leave the computer on all the time, not log off even when out shopping.  Never expect people would open our locks (three locks) and walked into our apt while we were out.  We have dishes, clothes and corning vision cookwares missing.  We have all our important docs including computer serial numbers.  We noticed our computer not respond and files and applications move around.  We know they are not done by themselves and looked into console log list.  The person who remotely logs or links with our computer thought that we are old folks and knew little about how to discover their act. Tried many times to get rid of it but was not successful.  Finally today we hauled our  imac to the apple store and explained the need to get rid of remote desktop.  All went well and we thought our computer is at a factory installed state.   We forgot to start firewall, probably did not disconnect third party help status (apple store third party).  Forgot to write down cable provider IP and resulted in using wi fi.  Look into system log list and other diagnostics messages and found an mac book pro and went back to see if I can write down the entire message but this time it went blank.  system log blank, library logs blank and /var/logs blank and so is user log.  Activity monitor froze would not open.  We had it clean up in apple store today november 18, 2013.  We have an Imac and don't know anyone who owns mac book pro with log message dated on oct 22.  The question is how it still hangs around after reset at the apple store and how to get rid of it and if it is possible?  greatly appreciated. 

    The Terminal is letting you type it in. It just doesn't display anything when you do.
    (92983)

  • My iPad won't let me sign into my Apple ID when I try and download an app it asks for my id and password and when i type it in the iPad displays a message saying cannot connect to iTunes Store. However when i do this on my phone it works perfectly.

    My iPad won't let me sign into my Apple ID when I try and download an app it asks for my id and password and when i type it in the iPad displays a message saying cannot connect to iTunes Store. However when i do this on my phone it works perfectly. Even when i sign in and out.
    Has anyone else had this problem? If so how can I fix this?

    Remember, any purchased item from the itunes store is forever associated with the Apple ID used to buy it.  So when you get prompted for an ID/password and it doesn't accept it, then you are using the wrong ID.
    Go to Settings>iTunes and App Stores, be sure it's logged into the ID you have set on the iphone (since that one seems to be connecting with the right ID).  If you've done this, then you might wait a bit to see if the "cannot connect to .. store" message has to do with internet connections.

  • Not working right-will not let me type a new emall, pull contacts, also will not let me use wireless printer-kept shutting down windows.

    firefox will not let me type in yahoo mail as new email. will not pull up contacts. also, when I use wireless printer-it shuts down windows.

    Couple of points...
    DJ_Jynxx wrote:
    The thing is, this MUST be an Audition CC issue for two reasons. One, everything worked fine in CS6, which I was using right before I upgraded to CC. I even did a clean install of it by removing CS6 completely.
    All versions of Audition can co-exist on the same machine quite happily - there is no interaction between them at all, and the system was designed to be like this. So there's nothing to stop you keeping CS5.5, CS6, CC and even Audition3 on the same machine.
    The other thing I'm wondering about is Windows 8. There have been a considerable number of complaints about this doing weird things, including with Audition. I have a system that in many ways is very similar to yours, except that I don't overclock the mobo, and use a professional sound device (or two) with it (RME). The major difference though is that I use Windows 7 pro 64-bit, and I haven't had any of these problems at all. Yes I use it for a living, as well, but I don't bother with multiple DAWs - don't have time for all that these days. But I do use iZotope's RX software in its standalone mode without any difficulty.
    I'm not claiming that  Audition CC is trouble-free - any number of Mac users will confirm that - but people running it on W7 certainly seem to have far fewer problems with it. It may also be worth trying an uninstall-reinstall of CC - you never know. But differences in preview quality certainly point towards audio drivers, I'm afraid...

  • I changed emails.  My user ID will not let me get into my phone to do any updates, but the user id is associated with an email address that no longer exists

    I changed emails.  My user ID will not let me get into my phone to do any updates, but the user id is associated with an email address that no longer exists

    What a mess the Apple ID, and associating emails, ID etc has got itself in
    I have a new iPad but after 2 days of trying all sorts still can't sync it because it is says it is associated to the other via the iCloud
    I can't use my alternate email address to setup a new Apple ID account as it says it's already used or associated, but I haven't knowingly done anything
    One message says "This email address is already in use or you may already have an Apple ID associated with this email address. Please try again or sign in using your existing Apple ID."
    I am at a complete loss on what to do

  • Trying to mail user contents I type into textarea

    Okay I have a form with a textarea that allows me to type
    content. Whatever I type into the textarea named "mailcontent", I
    want to mail that to someone. When I load this page with the form,
    I keep getting this error message:
    element MAILCONTENT is undefined in FORM.
    What am I doing wrong here? I'm attatching the code. Don't
    worry about the #confirmdelete.EmailAddress# as this works b/c I
    have another form on this page as well.

    Remove the CFMAIL from your page and put it in
    coop_deleted_sendmail.cfm. The sequence of events (1) the user
    enters the information into the textarea, (2) user clicks the
    submit button, (3) coop_deleted_sendmail.cfm loads and processes he
    CFMAIL tag, at which time it can see and use the value for
    Form.mailcontent.

  • Can't access User type using Synonyms/Grant

    Hi,
    We have a Stored Proc and it accepts a usertype. We are sending info from Java using JDBC and trying to get the results back. If I use the owner of the schema for connection it works fine. If I use a different schema user which has synonyms and grant access to the storeproc and userobject program does not work. Here is the stripped down code. If any one faced this problem please respond to [email protected].
    In the program I used QStore_user as user. QStore_user has Synonyms for USERTABLE, GET_NEXT_ID. Owner of these objects is QSTORE_OWNER. QSTORE_OWNER provided Grant 'Execute' to both of these for QSTORE_USER. If I change the java code to use QSTORE_OWNER it works fine.
    Java Sample Program
    ====================
    * This sample can be used to check the JDBC installation.
    * Just run it and provide the connect information.
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.jdbc.dbaccess.*;
    // We import java.io to be able to read from the command line
    import java.io.*;
    class JdbcArrayCheckup
    public static void main(String args[])
    throws SQLException, IOException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    System.out.print("Connecting to the database...");
    System.out.flush();
    System.out.println("Connecting...");
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@DKING-W2K:1521:WASDB", "qstore_user", "qstore_user");
    System.out.println("connected.");
    Object[] elements = {"Sasi","Mahesh","Deepak"};
    String currentName = "Sasi";
    ArrayDescriptor arrayDesc = ArrayDescriptor.createDescriptor("USERTABLE", conn);
         System.out.println("Got Array Descriptor");
         oracle.sql.ARRAY inp_array = new oracle.sql.ARRAY(arrayDesc,conn,elements);
         System.out.println("inp_array = " + inp_array);
    // Create a Callable statement
         CallableStatement callStmt = conn.prepareCall("{? = call GET_NEXT_ID(?,?)}");
         System.out.println("created callable statement");
         // Call setArray to set input array
         callStmt.setArray(2,inp_array);
         System.out.println("set Array done for User ID array");
         callStmt.setString(3,currentName);
         System.out.println("set String done for Policy ID");
         callStmt.registerOutParameter(1,Types.VARCHAR);
         System.out.println("registered out Parameters");
         // Execute the query
         ResultSet rset = callStmt.executeQuery();
         System.out.println("executed query");
         String userID = callStmt.getString(1);
         System.out.println("after getting next assigned ID = " + userID);
         // close the result set, the statement and connect
    rset.close();
    callStmt.close();
    conn.close();
    System.out.println("Your JDBC installation is correct.");
    Database Temp Function
    ======================
    function GET_NEXT_ID (input_userid_list USERTABLE,
         input_policy_id varchar2
    return VARCHAR2
         is
         counter NUMBER;
         return_user_id varchar2(30);
         /* UserTable is defined as follows -
         create or replace type usertable as table of varchar2(30);
         BEGIN
              for counter in 1..input_userid_list.COUNT LOOP
                   dbms_output.put_line('tempuser id = ' || input_userid_list(counter) );
              end loop;
              dbms_output.put_line('out of the loop');
              return_user_id := 'Mahesh';
              return return_user_id;
    END GET_NEXT_ID;
    DataType
    ===========
    create or replace type usertable as table of varchar2(30)
    Error
    =======
    Connecting to the database...Connecting...
    connected.
    Exception in thread "main" java.sql.SQLException: ORA-21700: object does not exi
    st or is marked for delete
    ORA-06512: at "SYS.DBMS_PICKLER", line 16
    ORA-06512: at "SYS.DBMS_PICKLER", line 52
    ORA-06512: at line 1
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java, Compiled Code)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java, Compiled Cod
    e)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:822
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
    a:1371)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1900)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
    edStatement.java:363)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java:407)
    at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java:420
    at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:343)
    at oracle.sql.ArrayDescriptor.initPickler(ArrayDescriptor.java:1002)
    at oracle.sql.ArrayDescriptor.<init>(ArrayDescriptor.java:132)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:97)
    at JdbcArrayCheckup.main(JdbcArrayCheckup.java:36)
    press any key to exit...
    If you do not want this console to remain after the VM exits,
    clear the "Keep Executed App Console" setting in your Visual Cafe
    environment options
    Other INFo
    ===========
    Running select * from all_synonyms where table_owner = 'QSTORE_OWNER' under QSTORE_USER results in
    QSTORE_USER     USERTABLE     QSTORE_OWNER     USERTABLE     
    QSTORE_USER     GET_NEXT_ID     QSTORE_OWNER     GET_NEXT_ID     
    select * from all_tab_privs where table_schema = 'QSTORE_OWNER' under QSTORE_OWNER results in
    QSTORE_OWNER     QSTORE_USER     QSTORE_OWNER     GET_NEXT_ID     EXECUTE     NO
    QSTORE_OWNER     QSTORE_USER     QSTORE_OWNER     USERTABLE     EXECUTE     NO

    Might be possible that the usernmae & password you are using is not working on the route ... make sure that you are using correct username & password .... if not then reset the router so that the password also gets resetted & you can use Admin password without any username ...
    Once resetted you need to reconfigure the router ... .& open the port 8080 for remote access ....

  • My iphone is disabled it saying to connect to itunes but when i do it still wont let me type my pin into it please help :(?

    Please help my phone wont let me type in my password and when connected to itunes it wont let me type my password in still

    You need to restore the iPhone, not just connect it. If iTunes says that the iPhone needs to be unlocked before it can be restored, put the iPhone into Recovery Mode:
    http://support.apple.com/kb/ht1808
    and then restore it.
    Regards.

  • Whenever i type in the google box to search every letter i type firefox asks what would i like to use to open this file this is so annoying how do i get it to stop doing this?

    whenever i type in the google box to search every letter i type firefox asks what would i like to use to open this file this is so annoying how do i get it to stop doing this?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for