Simple UI test

I've managed to get check boxes working. No vast feat I know but I'm happy with it!
Feast your eyes on the incredible red or grey box script!
/// simple UI script that creates an image and fills it red or grey
preferences.rulerUnits = Units.PIXELS
var dlg=
"dialog{text:'Script Interface',bounds:[100,100,280,250],"+
"panel0:Panel{bounds:[10,10,170,140] , text:'Fill that box ' ,properties:{borderStyle:'etched',su1PanelCoordinates:true},"+
"redcheck:Checkbox{bounds:[30,30,120,51] , text:'Change to red' },"+
"exit:Button{bounds:[30,90,130,110] , text:'Cancel' },"+
"fill:Button{bounds:[30,60,130,80] , text:'Fill it!' },"+
"},"+
var ColorRef = new SolidColor;
ColorRef.rgb.hexValue="A6A6A6"
var win = new Window(dlg,'Simple Window');
win.center();
win.panel0.exit.onClick = function(){
win.close(1);
win.panel0.redcheck.onClick = function(){
  if (win.panel0.redcheck.value){
     ColorRef.rgb.hexValue="DD0022";
  } else {
     ColorRef.rgb.hexValue="A6A6A6";
win.panel0.fill.onClick = function(){
var docRef = documents.add(100, 100, 72.0);
app.activeDocument.selection.fill(ColorRef)
win.close(1);
win.show();

Are you using LabVIEW? If so perform the following:  I did this on the TS 2012 and LV 2012.
1.) Right click on the button lableled 'ENTRYPOINT1] and select Advanced-> Enable State -> Disabled & Greyed
2.) Now in the code open the ConfigureSequenceFileView Manager.vi
In the first ConnectCommand invoke node,the one where you are setting 'CommandKind_ExecutionEntryPoints_Set' with Index 0.  This would be the Test UUTs execution entry point.
Set the 'opts' parameter to 0x4.  Here is the help on the options parameters:
CommandConnection_EnableImage–(Value: 0x8) The connection sets the image on the connected control.
CommandConnection_IgnoreCaption–(Value: 0x2) The connection does not set the caption on the connected control.
CommandConnection_IgnoreEnable–(Value: 0x4) The connection does not enable or disable the connected control.
CommandConnection_IgnoreVisible–(Value: 0x1) The connection does not change the visibility of the connected control.
CommandConnection_NoOptions–(Value: 0x0) No options.
So my disabling the button in LabVIEW and 'ignoring' it via the 0x4 parameter should work.  Otherwise without the 0x4 it seems to ignore the LabVIEW setting that you actually disabled the button.
Good luck,
PH

Similar Messages

  • Best way to do a simple Boolean test?

    Hello All,
      Trying to do a simple Boolean test, but it is proving to be more complicated than I would have expected.  Hoping that I am missing something simple.
    I have a Labview code module that provides a Boolean value for the output.  I want to evaluate this value and provide pass/fail results to the report.  Sounds simple, but here is what I am running into:
    -The built-in NI step type "Pass/Fail Test" will evaluate the Boolean directly with True=Pass, and False=Fail.  This would be fine, except that I have situations where I need False to equal Pass.  I've read a few posts that speak of inverting or negating the Boolean result, but they all involve passing the result to a parameter or variable, and then evaluating it outside of the test step.  This adds several layers that I don't think I should need.
    -I have read a post that suggested I convert the Boolean to a numeric inside of the code module.  This does indeed make sense, but this is not practical in my situation because of the scale and implementation of my code modules.  I use custom type definitions for controls and indicators from a Labview project, and would have to create a new control/indicator for every one if I wanted to change the data type.  
    -Next logical step was to see if the "Numeric Limit Test" would recognize a Boolean.  Turns out it doesn't.     
    -After this, I looked into creating a custom step type.  This would probably be the most useful, but it is beyond my current ability to do so.  I got as far as making a copy of the built in step type and putting it in the custom "MyTypes" directory, but I have made very little progress in editing it to make it a work.  Additionally, I've read a few posts that recommend avoiding custom step types.  
    Hoping someone can point me in the right direction.  Please advise.
    Thanks,
    GSinMN    
    Solved!
    Go to Solution.

    You could change the Data Source based on what value you want.  Since there doesn't appear to be an logical XOR, you will need to use a case statement.  For example, you could do:
    Locals.Desired? Step.Result.PassFail:!Step.Result.PassFail
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Error while running simple JAXB test class

    I am new to JAXB and trying to run simple tutorial code.
    I created Java project and added required jar files in a classpath.
    But I get error as
    "com.jaxbtest" doesnt contain ObjectFactory.class or jaxb.index
    I am using Eclipse and I have added these external jars in build path as well as in "Open Run Dialog" classpath.
    Thank you in advance.
    YB

    Hi Timo,
    Im using JDev version 11.1.1.6.0.
    I checked the class path on the jdev console. All the library references are mentioned in the manifest.mf classpath of the test project like below:
    Manifest-Version: 1.0
    Class-Path: lib/identitystore.jar
    lib/adfm.jar
    lib/groovy-all-1.6.3.jar
    lib/adftransactionsdt.jar
    lib/adf-dt-at-rt.jar
    lib/adfdt_common.jar
    lib/adflibrary.jar
    lib/xmlparserv2.jar
    lib/db-ca.jar
    lib/jdev-cm.jar
    lib/ojmisc.jar
    lib/commons-el.jar
    lib/jsp-el-api.jar
    etc...
    So I expect the library references should be resolved looking at the manifest file.
    Another set of entries that I see in the jdev classpath are related to the Model project which is under test.
    -classpath
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\.adf;
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\Model\classes;
    How do I put these entries into my class path? Will it be sufficient if I add the Model.jar into my test project classpath?
    Thanks,
    Sapna

  • Help creating a simple function testing conditions in 2 columns

    I want to create a simple function which tests if a value is found in one of two columns:
    If MyValue is in columnA or ColumnB then True ELSE False
    Any ideas?

    Ok, This is the deal. This has been kicking my butt all day. So here is the exact table names and view names and all the columns involved.
    The table I am inserting into only after I determine that the concatenated string is not there either "forward" or "backwards."
    RPT_DS1_ALOC_ZLOC_REVERSE_VW:
    ALOC VARCHAR2(8)                 Data looks like 'AFD32GD2'
    ZLOC VARCHAR2(8)                 Data looks like 'AFD55GDF'
    MASTER_ROUTE_NAME VARCHAR(17)      Data looks like 'AFD32GD2-AFD55GDF'
    REVERSED       VARCHAR(17)      Data looks like 'AFD55GDF-AFD32GD2'
    This view is built off another table that has only the ALOC and ZLOCsSELECT * FROM RPT_DS1_ALOC_ZLOC_REVERSE_VW WHERE ROWNUM <=5;
    MASTER_ROUTE_NAME     REVERSED          ALOC          ZLOC
    ABDLFLXA-ABDLFLXA     ABDLFLXA-ABDLFLXA     ABDLFLXA     ABDLFLXA
    AGSTGAAU-AGSTGAAU     AGSTGAAU-AGSTGAAU     AGSTGAAU     AGSTGAAU
    AGSTGAFL-AGSTGAFL     AGSTGAFL-AGSTGAFL     AGSTGAFL     AGSTGAFL
    AGSTGAMT-AGSTGAAU     AGSTGAAU-AGSTGAMT     AGSTGAMT     AGSTGAAU
    AGSTGAMT-AGSTGAFL     AGSTGAFL-AGSTGAMT     AGSTGAMT     AGSTGAFL
    RATE_MASTER_ROUTE:
    MASTER_ROUTE_NAME VARCHAR2(17)   Data looks like 'AFD32GDS-AFD55GDF' or 'AFD55GDF-AFD32GDS'
    ALOC VARCHAR2(8)                 Data looks like 'AFD32GD2'
    ZLOC VARCHAR2(8)                 Data looks like 'AFD55GDF'SELECT * FROM RATE_MASTER_ROUTE WHERE ROWNUM <=5;
    MASTER_ROUTE_NAME     ALOC          ZLOC
    ABDLFLXA-ABDLFLXA     ABDLFLXA     ABDLFLXA
    AGSTGAAU-AGSTGAAU     AGSTGAAU     AGSTGAAU
    AGSTGAFL-AGSTGAFL     AGSTGAFL     AGSTGAFL
    AGSTGAMT-AGSTGAAU     AGSTGAMT     AGSTGAAU
    AGSTGAMT-AGSTGAFL     AGSTGAMT     AGSTGAFThe idea is to insert a record into RATE_MASTER_ROUTE ONLY if it is not in there already. So since the view takes care of the reversing, all I am doing is passing in the MASTER_ROUTE_NAME and the REVERSED to see if either of them are in RATE_MASTER_ROUTE. If not, then I am INSERTING both the ALOC and ZLOC and the MASTER_ROUTE_NAME into RATE_MASTER_ROUTE. I appreciate the help so far, but I am still missing something. I have tried a number of variations. I added a dummy record to the first table that I knew was not in the second. I tried selecting it according to a similar query that was made above. But I am not communicating something correctly so this is the detail. I hope somebody can help me over this brain freeze.

  • Simple CIS test using JSP?

    Can anyone post a simple block of JSP code that will execute a basic connectivity test to make sure CIS is set up properly? My setup is using the following:
    - Tomcat 5.5 (standalone installation)
    - CIS Server (deployed as a WAR into Tomcat)
    - Content Server (running on the same box as Tomcat and Apache)
    - Apache 2.2.9
    I'd also assume that this JSP test page should be executed from the cis-server web root?
    Thanks

    Hi,
    can you please share the url of the place from where you downloaded the CIS WARs.
    I am also planning to do the same using TomCat / Apache. This is why i need WARs.
    If there is some workaround using which we can get the work done in tomcat using CIS EARs. Please let me know.
    regards,
    sapan
    Edited by: sapan on Nov 6, 2008 9:21 PM

  • HT203254 MBP Logic board failure or GPU failure?  Apparently it's simple to test...

    I have a 2008 Macbook Pro 15" (2.2Ghz) with NVidia 8600M GT graphics chip.  Last month it failed, no longer booting up.  The fans start, the LED light comes on, but the keyboard, hard drive and screen fail to come on. After reading article TS2377 I was convinced that the symptoms described match those on my MBP, so I took it to the nearest Apple store.  The 'genius' at the 'genius bar' (cringe) took it away then came back and told me that the problem was with the logic board, not the GPU.  They diagnosed this by removing the RAM and seeing if the RAM failure beeps sounded.  Seeing as there was no sound they diagnosed that the logic board was the source of failure because the RAM test comes before the GPU test in the boot sequence.  This test is so simple surely it should be posted under article TS2377???
    I must say that I'm completely unconvinced by the diagnosis, but who can argue with a 'genius'?  I'd really appreciate it if someone on here could give me a second opinion?  Even if they turn out to be right I think I might take out the logic board to see if there's evidence that the GPU has fried the logic board...

    There are many comments about the NVIDIA GPU issue and Apple not replacing the GPU.  I will say I had good success in getting Apple to replace mine in my Macbook Pro. When my computer suddenly would not fully turn on, I researched the issue to find out the possible reasons and then somewhat dawdled in taking it in. It was 2 weeks past the 4-year GPU warranty window. But I had had problems for some time preceding when it wouldn't fully turn on, such as geo designs appearing on the screen and the screen going dark, and those issues did occur at least a month or more before my warranty ended. I had no idea what those issues meant and simply ignored them until the computer wouldn't fully turn on.
    The good folks at The Apple store in Austin initially said no luck; yes it's the GPU but it's two weeks past the warranty. But then they kindly relented because clearly the symptoms I described to them that occurred during the warranty were caused by the faulty GPU. How would I know this was the issue?  They replaced the logic board at no cost. I've seen comments here that a Genius said the problem was the logic board, not the GPU, and therefore Apple would not make the repair. I was told by my Genius that the GPU is partof the logic board, and therefore the logic board needed replacing. This was a $526 repair that I was grateful Apple took care of. I would not have made the repair and would have gone out and bought a new non-Apple computer with a warranty.
    When I got my computer back, I checked it before I left the Apple store and it was running slow. I ended up paying Apple to replace the hard drive, so ultimately I did pay for an Apple repair. But I'm a happy rather than disappointed Apple customer because of the free GPU repair. Happy, devoted customers has made Apple a great company, and it should be worth it to the company to fix the faulty GPUs that are close to warranty to keep customers and keep them happy.

  • Simple multiversion test crashes (db-5.3.15)

    Hi!
    I wrote a small test for a multiversion database (using the C++ API). The test starts a transaction with DB_TXN_SNAPSHOT and reads/writes a key-value pair foo=bar. It then sleeps 10 seconds to allow starting a second instance of the program. The first instance succeeds, with this output:
    $ mvcctest
    get key foo
    put key foo
    successfully wrote key foo=bar
    waiting 10 seconds...
    $
    The second instance which I started in gdb to get the stacktrace produces this output/stacktrace:
    (gdb) r
    Starting program: /home/stefan/src/sandbox/bdb-trans/mvcctest
    [Thread debugging using libthread_db enabled]
    get key foo
    put key foo
    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff7b5bd01 in __memp_fput (dbmfp=0x605230, ip=0x0, pgaddr=0x0, priority=DB_PRIORITY_UNCHANGED)
    at ../src/mp/mp_fput.c:125
    125 infop = &dbmp->reginfo[bhp->region];
    (gdb) bt
    #0 0x00007ffff7b5bd01 in __memp_fput (dbmfp=0x605230, ip=0x0, pgaddr=0x0, priority=DB_PRIORITY_UNCHANGED)
    at ../src/mp/mp_fput.c:125
    #1 0x00007ffff79f3cce in __bam_get_root (dbc=0x605a10, root_pgno=1, slevel=1, flags=12802, stack=0x7fffffffd75c)
    at ../src/btree/bt_search.c:235
    #2 0x00007ffff79f3ed6 in __bam_search (dbc=0x605a10, root_pgno=1, key=0x7fffffffdbf0, flags=12802, slevel=1, recnop=0x0,
    exactp=0x7fffffffd934) at ../src/btree/bt_search.c:309
    #3 0x00007ffff79dce1c in __bamc_search (dbc=0x605a10, root_pgno=1, key=0x7fffffffdbf0, flags=14, exactp=0x7fffffffd934)
    at ../src/btree/bt_cursor.c:2804
    #4 0x00007ffff79dad0b in __bamc_put (dbc=0x605a10, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=14, pgnop=0x7fffffffd9b0)
    at ../src/btree/bt_cursor.c:2143
    #5 0x00007ffff7adf03f in __dbc_iput (dbc=0x605a10, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=14)
    at ../src/db/db_cam.c:2136
    #6 0x00007ffff7adee8d in __dbc_put (dbc=0x605a10, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=14)
    at ../src/db/db_cam.c:2049
    #7 0x00007ffff7ad78dd in __db_put (dbp=0x604af0, ip=0x0, txn=0x605390, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=0)
    at ../src/db/db_am.c:583
    #8 0x00007ffff7af20c8 in __db_put_pp (dbp=0x604af0, txn=0x605390, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=0)
    at ../src/db/db_iface.c:1661
    #9 0x00007ffff79bc576 in Db::put (this=0x604a50, txnid=0x605fa0, key=0x7fffffffdbf0, value=0x7fffffffdc20, flags=0)
    at ../lang/cxx/cxx_db.cpp:367
    #10 0x0000000000400caf in main () at mvcctest.cc:60
    I am unsure if this is my fault (because the testcase does something it should not do), or if this is a Berkeley DB bug.
    #include <sys/stat.h>
    #include <sys/types.h>
    #include <assert.h>
    #include <db_cxx.h>
    #include <string.h>
    #include <stdlib.h>
    #include <string>
    using std::string;
    int
    main()
    mkdir ("bdb", 0770);
    DbEnv *db_env = new DbEnv (DB_CXX_NO_EXCEPTIONS);
    int ret = db_env->open ("bdb",
    DB_CREATE | /* on-demand create */
    DB_INIT_MPOOL | /* shared memory buffer subsystem */
    DB_INIT_TXN | /* transactions */
    DB_INIT_LOG | /* logging */
    DB_INIT_LOCK | /* locking */
    DB_MULTIVERSION,
    0);
    assert (ret == 0);
    db_env->set_flags (DB_MULTIVERSION, 1);
    Db *db = new Db (db_env, 0);
    db->set_flags (DB_DUP); // allow duplicate keys
    // Open the database
    u_int32_t oFlags = DB_CREATE | DB_AUTO_COMMIT | DB_MULTIVERSION; // Open flags;
    db->open (NULL, // Transaction pointer
    "db", // Database name
    NULL, // Optional logical database name
    DB_BTREE, // Database access method
    oFlags, // Open flags
    0); // File mode (using defaults)
    DbTxn* transaction;
    ret = db_env->txn_begin (NULL, &transaction, DB_TXN_SNAPSHOT);
    assert (ret == 0);
    char foo[4] = "foo";
    char bar[4] = "bar";
    Dbt key (foo, 3);
    Dbt new_data (bar, 3);
    Dbt data;
    printf ("get key foo\n");
    ret = db->get (transaction, &key, &data, 0);
    if (ret == 0)
    printf ("successfully read key foo\n");
    printf ("put key foo\n");
    ret = db->put (transaction, &key, &new_data, 0);
    if (ret == 0)
    printf ("successfully wrote key foo=bar\n");
    printf ("waiting 10 seconds...\n");
    sleep (10);
    ret = transaction->commit (0);
    assert (ret == 0);
    ret = db->close (0);
    delete db;
    db = NULL;
    assert (ret == 0);
    ret = db_env->close (0);
    delete db_env;
    db_env = NULL;
    assert (ret == 0);
    }

    Yes, we have the same error:
    com.sleepycat.dbxml.XmlException: std::exception thrown from C++ API: bad allocation: Unknown error, errcode = INTERNAL_ERROR
         at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
         at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:93)
    com.sleepycat.dbxml.XmlException, errcode = NO_MEMORY_ERROR
         at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
         at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:93)
    The version we use is 2.2.13, can anyone give suggestions to resolve it?
    Regards,
    Jane

  • Simple Load Test Using SQL

    Does anyone have some SQL scripts that creates some test data and then executes against the data to test AMM?
    Example:
    I want to see how AMM dynamically changes memory but the test database I have only now has dictionary data.
    Thanks

    ALWAYS
    Post Operating System (OS) name & version for DB server system.
    Post results of
    SELECT * from v$version;
    Why do you expect us to have test data for YOUR DB?

  • Sample delivered simple cobol test program error

    Hi,
    I am receiving the below error, When I try to run the delivered cobol program on my new production linux server. (The same program executed successfully in my Dev and test servers.)
    Compiled and linked the cobol program successfully.
    Any help on this highly appreciated.
    SUCCESSFUL DATABASE CONNECTION
    Application Program Failed
    Action Type     : SQL UPDATE                  
    In Pgm Section  : SQLRT: SQL-STMT-GET                                                                                                                                       
    Error Message   : Stored Statement PTPUSTAT_U_PRCRQSE not found
    Stored Stmt     : PTPUSTAT_U_PRCRQSE
                                           at pos 00028
    PTPSQLRT - Error Encountered
    No longer have connection to DB due to an error from previous
    action: SQL UPDATE                    . Bypassing current action: SQL SELECT                    .
    Terminating Program.
    Thanks
    Soundappan

    The error message indicates that a stored statement is missing from PS_SQLSTMT_TBL. This table is initially loaded by the dms scripts that run when the database is created (something like epengs.dms), but there is a later step in the installation guide--Updating PeopleTools System Data--which instructs you to run the storept.dms script. This would have refreshed all stored statements for programs that start with PT. If you still have your log files you can check to see if this was run, or if it encountered errors. Either way, you can run the dms script to fix the problem. If this task was missed, though, you might want to verify that this was the only task that was missed.
    Regards,
    Bob

  • Simple Soap Test, VERY SLOW with XP, only 5 calls per second !

    Hello,
    I'm just starting developing a web service. My first test shows a very slow performance of only about 5 calls per second:
    Windows XP client localhost -> Windows XP server: 2000 calls per second
    Windows XP client in VM on server maschine -> Windows XP server: 4,5 calls per second
    Windows XP client over 100 MBit LAN -> Windows XP server: 2000 calls per second: 4,5 calls per second
    Windows XP client over 1000 MBit LAN -> Windows XP server: 2000 calls per second: 4,5 calls per second
    So you might think, that is it, but - using identical jars:
    Mac OS X, 10.6 client -> Windows XP server: 880 calls per second
    Windows XP client -> Mac OS X 10.6 server: 4,5 calls per second
    So the problem seems to be the client setup on an Windows XP system.
    This is the service code:
    package net.metasafe.soapbenchmark.server;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService
    public class TestLib {
         private int count = 0;
         public TestLib() {
              // nothing to do
         @WebMethod
         public int div(int a, int b) {
              this.count++;
              if (b == 0)
                   throw new IllegalArgumentException("b must not be 0!");
              return a / b;
         @WebMethod
         public int getNumberOfCalls() {
              return this.count;
         @WebMethod
         public void resetCount() {
              this.count = 0;
    }This is the sevice publisher:
    package net.metasafe.soapbenchmark.server;
    import javax.xml.ws.Endpoint;
    class ServicesPublisher {
         public static void main(String[] args) {
              if (args.length != 2) {
                   System.out.println("2 Arguments required: <servername/IP> <port>");
                   return;
              String url = "http://" + args[0] + ":" + args[1] + "/services";
              System.out.println("Publishing TestLib service at url '" + url + "'.");
              Endpoint.publish(url, new TestLib());
    }This is the client code:
         public static void main(String[] args) throws MalformedURLException {
              if (args.length != 3) {
                   System.out
                             .println("3 Arguments required: <servername/IP> <port> <number of calls>");
                   return;
              int num = Integer.parseInt(args[2]);
              URL url = new URL("http://" + args[0] + ":" + args[1]
                        + "/services?wsdl");
              System.out.println("Conneting to service '" + url + "' .... ");
              QName qname = new QName("http://some_uri/",
                        "TestLibService");
              TestLibService service = new TestLibService(url, qname);
              TestLib tl = service.getTestLibPort();
              System.out.println("Connected !");
              // reset count
              tl.resetCount();
              System.out.println("\nPerforming " + num + " calls ...");
              long starttime = System.currentTimeMillis();
              int i;
              for (i = 1; i <= num; i++) {
                   tl.div(i, 2);
                   if (i % 100 == 0)
                        System.out.println(i);
              long t = System.currentTimeMillis() - starttime;
              System.out.println("Performed " + tl.getNumberOfCalls() + " calls in "
                        + (t / 1000.0f) + " seconds.");
              System.out.println("Calls per second: " + (num * 1000.0f / t));
              System.out.println("Done");
         }Any idea, why this is so slow, if the client runs on an Windwos XP (Pro) system ?
    Is there anything I have to be aware of when choosing the QName ?
    Best regards
    Marc

    Hello,
    no one any idea on for this ?
    How many calls do you get normally on Windows XP machines ?
    Regards
    Markus

  • Simple academic test on SIRI

    Just got 4S from delivery few days ago, and i was inspired by a capture that someone asked SIRI to solve quadratic equation, i wanna test more about academic things on SIRI and the results are really amazing!
    SIRI is supported by wolfram alpha and this is what make it Mrs/Mr Noitall. I tested her about limit, derivertive and integration, SIRI solved them like what my wolfram apps do on my ipad, it perfectly combines voice comtrol and wolfram computing together. Also I ask SIRI some chemistry but maybe i didnt ask the right way i didnt get wat i really want.
    And for seaching location, it seems this only work in United States. Hope there will be bunches of patches coming up for SIRI in the future!
    p.s. just wondering when could SIRI iCloud with my brain, so im not gonna worry about exams anymore lol jk
    here are the captures:

    Hi,
    can you please share the url of the place from where you downloaded the CIS WARs.
    I am also planning to do the same using TomCat / Apache. This is why i need WARs.
    If there is some workaround using which we can get the work done in tomcat using CIS EARs. Please let me know.
    regards,
    sapan
    Edited by: sapan on Nov 6, 2008 9:21 PM

  • Simple/easy, test your knowledge!

    Hi All,
    Coming from a C/C++ background, please assist us with the following:
    1) Is there an equivalent in java for "memset" and "memcpy". I have an array of bytes:
    byte[] bTxBuffer = new byte(512);
    and I hava a need to set all the array elements with '0' using one command as opposed to set a (for i=0; i <5122; i++) ...
    In C++ we do memset(&bTxBuffer, 0 , 512);
    Likewise I need to copy a chunck of data to the byte array using one statement, like memcpy.
    2) How can I cast integer to byte. I have the following:
    int iAddress = 12;
    byte[] bTxBuffer = new byte(512);
    I've tried:
    bTxBuffer[4] = (byte)iAddress;
    but the compiler complains about loss of precision. The variable iAddress value will never be more than 255, but it needs to be type integer for other reasons;
    Thanks in advance
    Regards,
    Trajano

    http://java.sun.com/j2se/1.4.1/docs/api/java/util/Arrays.html
    public static void fill(int[] a, int fromIndex, int toIndex, int val)
    should take care of that memset problem.
    memcpy ? i didn't find exact method, but search the api, maybe System has somethint (i didn't look there)
    if you know that iAddress is never more than 255, then you actually don't lose any precision, but the compiler doesn't know that, thats why it is warning you.
    BTW:
    java.lang.System:
    arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
    you wellcome

  • Simple SSL test: failing with "The certificate is not trusted ..."

    WebLogic 10.3.4 on Win7.
    I created a new domain and enabled SSL,with listen ports 7001 and 7002 for http and https respectively.
    I deployed a trivial webapp whose main page runs in http, but it opens an iframe with https for a different page in the app.
    I loaded the main page, but the iframe fails to load, giving the following error:
    The certificate is not trusted because no issuer chain was provided.
    (Error code: sec_error_unknown_issuer)
    What is the easiest path to get this working?

    Hi David,
    I dont think that the Demo Certificate shall cause the issue.You can enable the SSL debug in weblogic and check what exactly is wrong,while loading the iframe window.
    Error code: sec_error_unknown_issuer
    Moreover,you can try to add the root certificate to your IE browser and check it
    Tools -> Internet options -> content ->Certificates ->
    After your import,You can verify the same by checking it from the list and then verify by accessing it again

  • VSTS loadtest error while running Loadtest with Runsettings as No of test iterations , ERROR is : could not read result repository: unknown transaction id in results:

    Subject: VSTS loadtest error while running Loadtest with Runsettings as  No of test iterations ,  ERROR is :  could not read result repository: unknown transaction
    id in results:
    Hello All,
    I am facing the following error while running a loadtest (when i choose the scenario to be executed for No of test iterations). But the same loadtest with the Run duration for X minutes is running fine without any issues. 
    Any suggestions on the issue i am facing
    error is :
    could not read result repository: unknown transaction id in results:
    or
    could not read result repository: unknown request id in results: 
    Thanks
    Satish

    Hi Kotapati,
    >>Subject: VSTS loadtest error while running Loadtest with Runsettings as  No of test iterations ,  ERROR is :  could not read result repository: unknown transaction
    id in results:
    According to your description, you mean that when you run your load test using the Test Iterations way and then get the error message, am I right?
    If yes, please you try to close the VS, and then open this VS again. Then clean your load test project/solution and then re-build it, run your load test again check this issue again.
    In addition, I suggest you could try to create a new load test and then run it using Test Iterations way check if you get the issue for the specified load test or all load tests.
    If possible, I suggest you could share me simple load test for us so that we will further help you.
    You could upload your load test to OneDrive and then copy link here.
    Best Regards,
    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.

  • Flash Builder 4.7 Unit Tests for Mobile Devices

    I am trying to setup a simple unit test using Flash Builder 4.7. I created a Test Suite and a Test Case class.
    Using the menu, I select Run > Run. I see options to select which Test Case / Methods I'd like to run.
    But the strange thing is, next I have to select a launch configuration. I'd assume it would just launch in some console window and give me test results. I did what I could and have it setup to run on the AIR simulator for a XOOM device. Nothing happens I just see a blank screen with a blank bar at the top.
    I've also tried right clicking the project and choosing execute flexunit tests. My FlexUnit Resulst still says 0/0.
    What is the launch configuration I need to use to execute the test cases and get the results?

    I solved it! After looking at example code on google, I realized that the s:ViewNavigatorApplication was missing two key options:
    firstView="flexunit.flexui.FlexUnitTestRunnerUIMobile"
    firstViewData="{getFirstViewData()}"
    Thankfully I was able to derive this. It makes 0 since to me why this wouldn't be added to the automatically generated mxml file but the functions it utalizes does. This to me seems like a defect. If you'd like people to use automatically generated files, make sure they are functional.
    Thanks

Maybe you are looking for