Problem in test case

Hi guys,
we are using solution manager for testing.  We have created the test case with test case type "Test Document" in SOLAR02 transaction.  Here we are trying to attach our test script sothat it can be included in the test note generated by blue-print.
But when we create a test case, the system is automatically taking the attribute as "Blue-print relavant" and because of this we are not able to create a test note.  WE are getting a message that test case is defined as blue-print relavant.
Where can we change the attribute of the test case ?
Can anybody helpme out

Hi Sai Vineeth,
1) Please get into SOLAR_PROJECT_ADMIN transaction
2) Choose your project ID
3) Toggle to Change mode
4) Get to Project Standards Tab
5) Go to Documentation Types sub Tab
6) Click on 'Project Template' button at the right bottom side
7) In the window that opens up, go through the document types that you want to take off Blueprint relevance, use the cursor to move it towards the right - you'll find a column meant for Blueprint relevance
8) Take the checkbox away, press the button Check and then Save.
9) Then press on 'Cancel (red X) icon.
This should make the Blueprint relevance disappear for the given Document Type.
Cheers,
Srini

Similar Messages

  • Problem in executing JFCunit test case

    Hi all,
    I have problem in executing a simple test case that checks for input blank fields entered.
    Below is the code for the test class that i am trying to run, but i am unable to execute it. Please can anyone try to resolve this.
    package unittest.com.erp;
    import junit.extensions.TestSetup;
    import junit.extensions.jfcunit.*;
    import junit.extensions.jfcunit.finder.*;
    import junit.extensions.jfcunit.eventdata.*;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    import junit.textui.TestRunner;
    import com.erp.client.swing.ClientLoginDialog;
    import com.erp.client.swing.workspace.ClientWorkspaceFrame;
    import com.erp.client.swing.workspace.data.LoginResults;
    import javax.swing.*;
    public class LoginScreenTest
        extends JFCTestCase {
      private ClientLoginDialog loginScreen = null;
      private JButton login = null;
      private JButton cancel = null;
      private JTextField username = null;
      private JTextField password = null;
      private JFCTestHelper helper = null;
      LoginResults loginSuccess = null;
      ClientWorkspaceFrame workspaceFrame = null;
      public LoginScreenTest() {
      public LoginScreenTest(String name) {
        super(name);
      public static Test suite() {
        return new StartApp(new TestSuite(LoginScreenTest.class));
      private static class StartApp
          extends TestSetup {
         * Construct the test decorator, which starts the application     *
         * @param test
         *          Test case.
        public StartApp(final Test test) {
          super(test);
         * Start the LoginScreenTestapplication.
        public void setUp() {
          new Thread(new Runnable() {
            public void run() {
              try {
                new LoginScreenTest().setUp();
              } catch (Exception e) {
          }).start();
          try {
            Thread.currentThread().sleep(10000);
          } catch (InterruptedException ex) {
         * Tear down the LoginScreenTest application.
        public void tearDown() {
      protected void setUp()
          throws Exception {
        super.setUp(); // Choose the text Helper
        setHelper(new JFCTestHelper()); // Uses the AWT Event Queue.
        // setHelper( new RobotTestHelper( ) ); // Uses the OS Event Queue.
        ClientWorkspaceFrame workspaceFrame = ClientWorkspaceFrame.getHandle();
        // loginScreen = new ClientLoginDialog( "LoginScreenTest: " + getName());
        loginSuccess = ClientLoginDialog.login();
        loginScreen = ClientLoginDialog.login(new JFrame(), true);
        if (loginSuccess != null && loginSuccess.isSuccess()) {
          workspaceFrame.initFrame();
          workspaceFrame.loggedInUser = loginSuccess.getName();
          workspaceFrame.loggedInFullUserName = loginSuccess.getFullLoginUserName();
          workspaceFrame.loggedInUserPassword = loginSuccess.getPassword();
          workspaceFrame.setVisible(true);
          workspaceFrame.validate();
            flushAWT();
      protected void tearDown()
          throws Exception {
        login = null;
        cancel = null;
        username = null;
        password = null;
        loginScreen = null;
        flushAWT();
        // getHelper.cleanUp( this );
        super.tearDown();
      public void testInitialState() {
        NamedComponentFinder finder = new NamedComponentFinder(JButton.class, "Cancel");
        finder.setName("Cancel");
        JButton exitButton = (JButton) finder.find(loginScreen, 0);
        assertNotNull("Could not find the Exit button", exitButton);
        NamedComponentFinder finder1 = new NamedComponentFinder(JButton.class, "Login");
        finder1.setName("Login");
        JButton enterButton = (JButton) finder1.find(loginScreen, 0);
        assertNotNull("Could not find the Enter button", enterButton);
        getHelper().enterClickAndLeave(new MouseEventData(this, enterButton));
        assertEquals("", workspaceFrame.loggedInUser);
        assertEquals("", workspaceFrame.loggedInUserPassword);
      public static void main(final String[] args) {
        TestRunner.run(LoginScreenTest.suite());
    Thanks & Regards,
    VishalMessage was edited by:
    vishal_vj
    Message was edited by:
    vishal_vj
    Message was edited by:
    vishal_vj
    Message was edited by:
    vishal_vj

    hi All,
    can any one guide me how to run the test casese in JFCunit ? as when i tried to run thru command prompt its not recognising the main class at all.
    Now i m trying with eclipse problem here is that it is showing error to this line of code
    DialogFinder dFinder = new DialogFinder(loginScreen);
    error is constructor is undefined?
    So looking for some solution.
    with regards
    kin

  • Test case: unusual locking problem or expected behaviour?

    I have tried the following test case on both 9.0.1 and 10.2.0. The problem I am seeing here is that a table receives an exclusive lock that doesn't get trapped by a FOR UPDATE NOWAIT condition.
    Test case setup
    create table x (
    f1 number not null,
    f2 varchar2(100) );
    create table y (
    f1 number not null,
    f2 number not null,
    f3 number,
    f4 varchar2(100) );
    alter table x add constraint pk_x
    primary key (f1);
    alter table y add constraint pk_y
    primary key (f1);
    /*** This is a self-referential integrity check ****/
    alter table y add constraint fk_y
    foreign key (f3)
    references y ( f1 );
    create or replace trigger trig_y
    before insert on y
    for each row
    begin
    update x
    set f2 = 'trig test ' || to_char(sysdate,'ddmmyyyy hhmiss')
    where f1 = :new.f2;
    end;
    insert into x values (1,'test 1');
    insert into x values (2,'test 2');
    insert into x values (3,'test 3');
    insert into y values (2,2,2,'y test 2');
    insert into y values (3,3,3,'y test 3');
    commit;
    Test case actions
    This requires 3 independent sessions to be started.
    * SESSION 1 *
    select * from x
    where f1 = 1
    for update nowait;
    * SESSION 2 *
    insert into y values (1,1,1,'test');
    -- This session waits because of the trigger that is attempting to update the
    -- same row that is locked in session 1.
    * SESSION 3 *
    select *
    from y
    where f1 = 2
    for update of f1 nowait;
    -- The row lock succeeds.
    -- Now update the primary key column in Y.
    update y
    set f1 = 2
    where f1 = 2;
    -- This update statement waits because of a lock. Why is this as the row
    -- has been successfully locked by the FOR UPDATE?
    -- Remove the foreign key constraint from table Y and try again. This time
    -- the update will not wait but will complete successfully.
    Is this expected behaviour, or a bug in self-referential integrity checks, or in
    all foreign keys? The reason this came about in our application is because FORMS attempts to update every column on a block regardless of whether all values in the block have changed. This includes the primary key columns.
    We have worked around this issue for now by setting the 'update changed columns only' property on blocks in the forms.

    No. All you are doing there is stating your intention of later updating the selected locked rows.
    You may not even update any rows, if the program logic decides that way. Your actual update is the only case where the validation of foreign key will be applied. It cannot be done at the time of doing FOR UPDATE select, since the database does not know what new value is going to be when you do update so it is not possible to check.
    Also, note that yoru statement did NOT fail. It was just rying to validate your foreign key, and in that process wants to make sure no one else makes the changes. The statement was waiting for resource to be free, it DID NOT FAIL (no error was raised).

  • JUnit - Strange Test Case running problem

    Hi Everyone,
    I am very new to J Unit testing. Here's my problem. I have a project set up in Net Beans. Inside the project, there is a folder named "tests". This folder contains the following class:
    public class Bob
        public static void main(String[] args)
            System.out.println("Hello");
    }There are other classes inside of this folder that extend TestCase and TestSuite. They are functionally working according to J Unit testing (they prompt a JUnit Test Results panel in Net Beans with Pass or Fail).
    The problem that I am having upon running/executing the class "Bob", NetBeans treats it as a JUnit test case and brings up a Pass/Fail panel. I do not want this to happen. I just want this class to print "Hello" as if it was not a Test. Do you guys have any idea what the problem is? My "Bob" class has nothing imported.
    Also, I have another question. Is there a way that I can take INPUT from a user when running a Test Case (such as using the Scanner class)? My test cases seem to skip over the Scanner.nextLine() code for some reason.
    Thanks in advance.

    Hi BigDaddy,
    Thanks for the suggestion, however I am unsure of what you mean by injecting the scanner. Here is an example of what I would like to do:
    public class BenchmarkTestSuite extends TestSuite
        public static void main(String[] args)
            try
                Scanner scan = new Scanner(System.in);
                System.out.print("Enter the number of iterations for read: ");
                readIterations = scan.nextInt();
                .... etc
            catch(Exception ex)
                ex.printStackTrace();
        .... etc
    }Here, the prompted question for the user gets ignored for some odd reason. I would like for the tests to not start until the question has been answered by the user. NetBeans is strange. I commented all of the test methods to see if the question gets printed to the console, and it does not.
    Thanks.

  • Problem at the time of Implementing Text Matching Test Case in OFT

    hi,
    I had add Text Matching Test Case on login of the application for the username and password. and If the Test Case fail on that screen,then it should not allow to go further in the application.
    As currently at the time of Playback, it is allowing to go further and in the Result Report it display the case failed.

    Actually my ques is that suppose at the time of recording i enter the username as abcd and password as 123.
    When the recording is done . I Insert a Text Matching test case for both the username and password where i put the condition for the username that select text should be present as "def" . And the Test Case failed .
    So i want to know that if the test case failed on Login. Whether it should be move forward at the time of playback?

  • Problem in writing test cases in BI

    Hello Sir,.
    How to write a test cases in BI? and we are doing function upgrade as we are migratiing 3.x to 7.x BI.
    we have a data flow as show below at the moment after the migration has done.
    Data source->Transformation->DSO->Transformation->Info Cube.each target has individual DTP`s.
    Finally data is lieing all over the data targets.I have no routine between Data source and DSO , but we have a start routine between DSO and Info Cube.
    So i am trying to write a test cases because we want to know how the code was working in 3.x and aafter migrating the to 7.x bi how the code is working and then loaded data to targets.How do i write functional test cases? and how to proceed to write test cases here in this scenario.please reply me asap.
    Thanks much!

    No,
    I try to explain better:
    In my real application (not this simple example) I compose an image by the union of many little gifs. Then I have to save the result in a unique image. It's for this that I've overridden paintComponent(), so , after having painted all gifs, I save composite image to a png one.
    This function is activated from a main application, and I don't want to show too much to user, so I try to make this by using a popup frame that disappear quickly.
    I hope to having been as clear as possible.
    I hope to have chosen the best solution too
    Bye and thanks
    Edited by: giuseppe_italiano on Nov 21, 2007 3:35 AM

  • Getting error while writing JUnit test case for RestFul Services

    Hi All,
    I have written Restful services in Netbean 6.8.
    It's running well...no issues.
    {color:#0000ff}While writing JUnit test cases for them, I am getting following error:
    {color}{color:#993300}Testcase: testGetAuthenticated(com.ct.services.LoginServicesTest): Caused an ERROR
    Implementing class{color}
    java.lang.IncompatibleClassChangeError: Implementing class
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:160)
    at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:65)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
    at com.ct.services.LoginServices.getAuthenticated(LoginServices.java:205)
    at com.ct.services.LoginServicesTest.testGetAuthenticated(LoginServicesTest.java:84)
    Test com.ct.services.LoginServicesTest FAILED
    F:\NetbeanProjectsWorkspace\DemoProject\nbproject\build-impl.xml:972: Some tests failed; see details above.
    BUILD FAILED (total time: 11 seconds)
    {color:#0000ff}Strange thing is that when I am commenting below lines and its related calls:
    {color}
    {color:#ff0000}EntityManagerFactory mEmf = Persistence.createEntityManagerFactory("AnyName");
    EntityManager mEm = mEmf.createEntityManager();
    {color}
    {color:#0000ff}from my code, JUnit test cases are working fine.
    {color}Anybody having any idea about this ?
    Thanks
    Avi
    Edited by: Avi007 on Aug 28, 2010 5:17 AM

    Hi All,
    [http://stackoverflow.com/questions/2778295/test-driven-development-problem]
    Please refer the above link for the solution
    Thanks
    Avi
    Edited by: Avi007 on Aug 30, 2010 12:33 AM

  • Help with writing a static method in my test case class inside blue j

    I have this method that I have to test. below is the method I need to test and what I have to create inside my test case file to test it Im having big time problems getting going. Any help is appreciated.
    public String introduceSurprise ( String first, String last ) {
    int d1 = dieOne.getFace();
    Die.roll();
    if (d1 %4 == 2){
    return Emcee.introduce(first);
    else {
    return this.introduceSpy (first,last);
    So how do write tests to verify that every fourth call really does give a randomized answer? Write a static method showTests which
    creates an EmCee,
    calls introduceSurprise three times (doing nothing with the result (!)),
    and then calls it a fourth time, printing the result to the console window.
    Write this code inside your test class TestEmCee, not inside EmCee!

    hammer wrote:
    So how do write tests to verify that every fourth call really does give a randomized answer? Write a static method showTests which
    creates an EmCee,
    calls introduceSurprise three times (doing nothing with the result (!)),
    and then calls it a fourth time, printing the result to the console window.
    Write this code inside your test class TestEmCee, not inside EmCee!Those instructions couldn't be anymore straightforward. Make a class called TestEmCee. Have it create an EmCee object. Call introduceSurprise on that object 3 times. Then print the results of calling it a 4th time.

  • Help with test case

    Hi,
    I'm trying to produce a test case for a subtle problem, but can't get a
    simple one to work :-(
    I think I'm doing something wrong:
    Source:
    package kodo;
    import java.io.InputStream;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Properties;
    import javax.jdo.JDOHelper;
    import javax.jdo.PersistenceManager;
    import javax.jdo.PersistenceManagerFactory;
    import junit.framework.TestCase;
    public class KodoTest1 extends TestCase
    * @param id
    public KodoTest1(String id)
    super(id);
    public void test1() throws Exception
    PersistenceManagerFactory pmf = getFactory();
    PersistenceManager pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    A a = new A();
    a._b = new ArrayList();
    pm.makePersistent(a);
    Object aId = JDOHelper.getObjectId(a);
    B b = new B();
    b._parent = a;
    a._b.add(b);
    pm.currentTransaction().commit(); // looks good after this -- _b is
    a ProxyLinkedList
    pm.close();
    pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    A aClone = (A) pm.getObjectById(aId, false);
    assertNotNull(aClone);
    Collection c = aClone._b;
    assertNotNull(c); // fails
    assertEquals(1,aClone._b.size());
    pm.currentTransaction().commit();
    private static PersistenceManagerFactory getFactory() throws Exception
    InputStream propStream =
    KodoTest1.class.getResourceAsStream("/kodo-local.properties");
    Properties props = new Properties();
    props.load(propStream);
    return JDOHelper.getPersistenceManagerFactory(props);
    package.jdo:
    <?xml version="1.0"?>
    <jdo>
    <package name="kodo">
    <class name="B"/>
    <class name="A">
    <field name="_b">
    <collection element-type="B"/>
    <extension vendor-name="kodo" key="inverse" value="_parent"/>
    </field>
    </class>
    </package>
    </jdo>
    kodo-local.properties:
    javax.jdo.option.RetainValues: true
    javax.jdo.option.RestoreValues: true
    javax.jdo.option.Optimistic: true
    javax.jdo.option.NontransactionalWrite: false
    javax.jdo.option.NontransactionalRead: true
    javax.jdo.option.Multithreaded: true
    javax.jdo.option.MsWait: 5000
    javax.jdo.option.MinPool: 1
    javax.jdo.option.MaxPool: 80
    javax.jdo.option.IgnoreCache: false
    javax.jdo.option.ConnectionUserName: tomd
    javax.jdo.option.ConnectionURL: jdbc:oracle:thin:@holygrail:1521:db1
    javax.jdo.option.ConnectionPassword: password
    javax.jdo.option.ConnectionDriverName: oracle.jdbc.OracleDriver
    javax.jdo.PersistenceManagerFactoryClass:
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory
    com.solarmetric.kodo.impl.jdbc.WarnOnPersistentTypeFailure: true
    com.solarmetric.kodo.impl.jdbc.SequenceFactoryClass:
    com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory
    com.solarmetric.kodo.impl.jdbc.FlatInheritanceMapping: true
    com.solarmetric.kodo.impl.jdbc.AutoReturnTimeout: 10
    #com.solarmetric.kodo.Logger:
    #stdout
    # (Kodo 2.4 license key)
    com.solarmetric.kodo.LicenseKey: xxxxxxxxxxxxxxxxxxxxxxx
    com.solarmetric.kodo.EnableQueryExtensions: false
    com.solarmetric.kodo.DefaultFetchThreshold: -1
    com.solarmetric.kodo.impl.jdbc.DictionaryProperties:NameTruncationVersion=1
    com.solarmetric.kodo.impl.jdbc.UseBatchedStatements=false
    com.solarmetric.kodo.impl.jdbc.StatementCacheMaxSize=1

    You should not be directly accessing fields of PersistenceCapable
    instances or should enhance as Persistence aware:
    e.g. jdoc kodo.KodoTest1.
    However, I strongly recommend against this. It is bad object oriented
    design to be exposing internal variables so (wrap at the least in a
    get method). And in JDO, can easily cause strange behavior if not
    handled correctly as you see in your test case.
    Btw, I would recommend against packaging in kodo as we may be moving
    towards simplifying our package structures into kodo prefixed packages.
    On Wed, 18 Jun 2003 20:11:45 +1000, Tom Davies wrote:
    Hi,
    I'm trying to produce a test case for a subtle problem, but can't get a
    simple one to work :-(
    I think I'm doing something wrong:
    Source:
    package kodo;
    import java.io.InputStream;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Properties;
    import javax.jdo.JDOHelper;
    import javax.jdo.PersistenceManager;
    import javax.jdo.PersistenceManagerFactory;
    import junit.framework.TestCase;
    public class KodoTest1 extends TestCase {
    * @param id
    public KodoTest1(String id)
    super(id);
    public void test1() throws Exception
    PersistenceManagerFactory pmf = getFactory(); PersistenceManager pm =
    pmf.getPersistenceManager(); pm.currentTransaction().begin();
    A a = new A();
    a._b = new ArrayList();
    pm.makePersistent(a);
    Object aId = JDOHelper.getObjectId(a); B b = new B();
    b._parent = a;
    a._b.add(b);
    pm.currentTransaction().commit(); // looks good after this -- _b is
    a ProxyLinkedList
    pm.close();
    pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    A aClone = (A) pm.getObjectById(aId, false); assertNotNull(aClone);
    Collection c = aClone._b;
    assertNotNull(c); // fails
    assertEquals(1,aClone._b.size());
    pm.currentTransaction().commit();
    private static PersistenceManagerFactory getFactory() throws Exception
    InputStream propStream =
    KodoTest1.class.getResourceAsStream("/kodo-local.properties");
    Properties props = new Properties();
    props.load(propStream);
    return JDOHelper.getPersistenceManagerFactory(props);
    package.jdo:
    <?xml version="1.0"?>
    <jdo>
    <package name="kodo">
    <class name="B"/>
    <class name="A">
    <field name="_b">
    <collection element-type="B"/>
    <extension vendor-name="kodo" key="inverse" value="_parent"/>
    </field>
    </class>
    </package>
    </jdo>
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Interesting test case

    Hi,
    I played a little on my test machine and get interesting results so if someone could explain me what happens here I would be grateful.
    It is obvious that some data corruption happened but still interesting situation.
    OS: Linux 32bit
    Oracle: 10.2.0.2.0
    TEST CASE:
    1. Created tablespace and one table in that tablespace:
    SQL> create tablespace test_tbs datafile '/oradata/tbs01.dbf' size 75M autoextend on next 10M maxsize 512M;
    Tablespace created.
    SQL> create table objtab tablespace test_tbs as select * from dba_objects where 1=2;
    Table created.
    2. Made two more copies of tbs01.dbf datafile:
    SQL> !cp tbs01.dbf tbs02.dbf
    SQL> !cp tbs01.dbf tbs03.dbf
    3. Insert some rows into table objtab:
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> /
    50417 rows created.
    SQL> /
    50417 rows created.
    SQL> commit;
    Commit complete.
    SQL> select count(*) from objtab;
    COUNT(*)
    151251
    4. Deleted tbs01.dbf:
    SQL> !rm tbs01.dbf
    5. Insert still works:
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> commit;
    Commit complete.
    6. Renamed tbs02.dbf to tbs01.dbf:
    SQL> !mv tbs02.dbf tbs01.dbf
    7. Inserted new rows:
    SQL> select count(*) from objtab;
    COUNT(*)
    302502
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> commit;
    Commit complete.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> commit;
    Commit complete.
    8. Check size of datafile:
    SQL> !du -hs tbs01.dbf
    *96M tbs01.dbf*
    SQL> select count(*) from objtab;
    COUNT(*)
    756255
    9. Deleted datafile tbs01.dbf and renamed tbs03.dbf to tbs01.dbf:
    SQL> !rm tbs01.dbf
    SQL> !mv tbs03.dbf tbs01.dbf
    10. Insert more rows and executed "alter system checkpoint":
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> insert into objtab select * from dba_objects;
    50417 rows created.
    SQL> commit;
    Commit complete.
    SQL> alter system checkpoint;
    System altered.
    SQL> select count(*) from objtab;
    COUNT(*)
    907506
    11. When I check the size of tbs01.dbf it is smaller then before despite of more rows I inserted. How come? Where are all this rows stored?
    SQL> !du -hs tbs01.dbf
    *86M tbs01.dbf*
    12. Now try to offline tablespace and then I get errors in alertlog:
    SQL> alter tablespace test_tbs offline normal;
    alter tablespace test_tbs offline normal
    ERROR at line 1:
    ORA-00603: ORACLE server session terminated by fatal error
    ALERT LOG
    Errors in file /oracle/admin/um/udump/um_ora_501.trc:
    ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-01122: database file 6 failed verification check
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-01208: data file is an old version - not accessing current version
    Fri May 29 09:01:31 2009
    ORA-600 signalled during: alter tablespace test_tbs offline normal...
    Fri May 29 09:01:31 2009
    Errors in file /oracle/admin/um/udump/um_ora_501.trc:
    ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-01122: database file 6 failed verification check
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-01208: data file is an old version - not accessing current version
    Fri May 29 09:01:37 2009
    Errors in file /oracle/admin/um/udump/um_ora_501.trc:
    ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-01122: database file 6 failed verification check
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-01208: data file is an old version - not accessing current version
    Fri May 29 09:01:43 2009
    Errors in file /oracle/admin/um/udump/um_ora_501.trc:
    ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-00600: internal error code, arguments: [krhpfh_03-1208], [fno =], [6], [fecpc =], [4], [fhcpc =], [3], []
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-01122: database file 6 failed verification check
    ORA-01110: data file 6: '/oradata/tbs01.dbf'
    ORA-01208: data file is an old version - not accessing current version
    13. One more check:
    SQL> select tablespace_name, status from dba_tablespaces;
    TABLESPACE_NAME STATUS
    SYSTEM ONLINE
    SYSAUX ONLINE
    USERS ONLINE
    UNDOTBS2 ONLINE
    TMP ONLINE
    TEST_TBS ONLINE
    7 rows selected.
    SQL> select count(*) from objtab;
    COUNT(*)
    907506
    14. Restart database:
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 1224736768 bytes
    Fixed Size 1267188 bytes
    Variable Size 1006635532 bytes
    Database Buffers 201326592 bytes
    Redo Buffers 15507456 bytes
    Database mounted.
    Database opened.
    15. Try to count(*) from table but it says that object no longer exists:
    SQL> select count(*) from objtab;
    select count(*) from objtab
    ERROR at line 1:
    ORA-08103: object no longer exists
    SQL> select tablespace_name, status from dba_tablespaces;
    TABLESPACE_NAME STATUS
    SYSTEM ONLINE
    SYSAUX ONLINE
    USERS ONLINE
    UNDOTBS2 ONLINE
    TMP ONLINE
    TEST_TBS ONLINE
    7 rows selected.
    16. If object does not exist, how come I get this results (probably leftovers in data dictionary):
    SQL> desc objtab;
    Name Null? Type
    OWNER VARCHAR2(30)
    OBJECT_NAME VARCHAR2(128)
    SUBOBJECT_NAME VARCHAR2(30)
    OBJECT_ID NUMBER
    DATA_OBJECT_ID NUMBER
    OBJECT_TYPE VARCHAR2(19)
    CREATED DATE
    LAST_DDL_TIME DATE
    TIMESTAMP VARCHAR2(19)
    STATUS VARCHAR2(7)
    TEMPORARY VARCHAR2(1)
    GENERATED VARCHAR2(1)
    SECONDARY VARCHAR2(1)
    SQL> create table objtab tablespace test_tbs as select * from dba_objects;
    create table objtab tablespace test_tbs as select * from dba_objects
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    17. To drop object (can't drop):
    SQL> drop table objtab;
    drop table objtab
    ERROR at line 1:
    ORA-08103: object no longer exists
    18. Clean up:
    SQL> drop tablespace test_tbs including contents and datafiles;
    Tablespace dropped.
    Best Regards,
    Marko

    Hi Uwe,
    as I said before my intention was to understand behavior of Oracle and Linux in scenario like this.
    I thought about what will happen if some Linux admin by mistake moves live datafile to another location and after 5-10 mins, when he realizes his mistake, he moves the datafile to old (original) location.
    Will Oracle notice some errors in alert log? (In my test case I didn't receive any message in alert log)
    How will I know (as a DBA) what was done with this datafile if Linux admin does not say anything to me?
    Is any damage made to datbase ? (Probably)
    etc...
    When I am on my test machine I like to do all kind of stuff and try anything that comes on my mind. It isn't important to me if this scenario has any connection to real world problems. I enjoy doing this so I like to spend some of my time on this test cases.
    Anyway thanks for your comment.
    Regards,
    Marko
    Edited by: msutic on May 29, 2009 1:03 PM

  • Creating junit test cases using the reflection API

    In order to use the reflection API to get information about a *.java file's class name and methods, I need to compile the *.java file first, and then get info through the *.class file. Am I right?
    Eclipse, the Java IDE, can create junit test cases for java files the user selects right after the *.java files have been created, and even before the *.java files have been compiled by the user. I guess Eclipse internally compiles the java files before creating JUnit test cases for them. Does anyone know about it? Thanks.

    Let me explain my problem in more details.
    Given any java source tree, my program is supposed to create junit test cases for each class using java reflection. My approach is to scan through the source tree to keep the list of classes available, then compile all the java files in the given source tree, then do Class.forName() to load them to get their methods... Obviously I don't know what classes I will have at compilation time. I create a temp_classes directory as the output directory for the given source tree java files, and I add temp_classes to my classpath when I strart up my own program. However, that won't work..
    D:\eclipse\workspace\cmpe271_hw4\classes>java -classpath ..\classes;..\temp_classes Test
    javac -classpath .\temp_classes; -d .\temp_classes @temp_classes\javalist.txt
    java.lang.ClassNotFoundException: Factory
    java.lang.ClassNotFoundException: InvalidDateFormatException
    java.lang.ClassNotFoundException: MyUtility
    java.lang.ClassNotFoundException: Storage

  • Test cases runs correctly on IDE but fails on the test runner

    Hi Guys,
    I have a test case here that works fine on my Mars IDE with RCPTT but fails when I run it via the Maven plugin on the same machine.
    The summary of the test case here is that it auto-generates some java files based on changes done to a DSL type language. You will see that there is a Generator project there that does this. Any changes to the type file will trigger the java file to be regenerated with whatever was defined in the Generator project. On the IDE it all works but when it's run via the test runner, it always fails for some reason.
    One interesting thing to note there is if that test case is run first, it does not fail. I initially suspected that the previous test case might have done something to the AUT workspace/environment but it's difficult to prove. The test case in question does have contexts to clear the workspace and to add projects as well as a context for setting the preferences. I did try removing all the contexts except for the workspace context that contains the project that it needs but the execution result is still the same. If I manually ran the same AUT (extracted somewhere else) with the generated test-runner aut workspace right after and made some changes to the type file, the java files are generated correctly.
    So the problem now is, we're not sure what the test runner is doing differently with the RCPTT IDE in this case. It would seem like the test runner is preventing the AUT from generating the files or there might be an error that prevents the generation from happening.
    I've attached the results folder from the test runner execution and the log file from the from the runner-workspace folder.
    cheers!
    Joseph

    Hi Folks,
    We've found out the cause of the problem and have found out that this is not entirely RCPTT related. Apologies for the disturbance. Marking this as a non-issue.
    cheers!
    Joseph

  • Setting bind variables for VO in JUnit test case

    Hi,
    I am using Jdeveloper 11.1.2.2
    I have a problem while writing the test case for VO in JUnit.
    For the Remove method in the Test case , I have passed variables into the VO by using a setWhereClause() .
    Like this :
            view.setWhereClause(null);
            String whereClause = "location_id = '" + newUpdatedLocationId  + "' AND organization_id = '" +newOrganizationId + "'" ;
            view.setWhereClause(whereClause);
            view.executeQuery();
            while (view.hasNext()) {
                view.next();
                view.removeCurrentRow();
            fixture1.getApplicationModule().getTransaction().commit();But it is showing a an error like the bind variables are not set.
    So how will I access Bind variables programmatically and set the values ?
    Thanks
    Nigel.

    setNamedWhereClauseParam() is used for setting bind variables

  • Problem in testing through sol manager

    Hi guys,
    We are facing a problem in assigning a test package to users.  We have done the following in solution manager
    1) Created Project
    2) Selected the business scenarios
    3) Generated the blueprint
    4) Done the configuration
    5)  Created the Test case i.e. with manual testing and second with test document
    We have created a test plan and created the test package also.  But when we try to assign the users to this test package system gives message that "No Values found".  Can anybody clarify the following
    1) How to assign the testers to test packages?
    2) Do we need to create a tester seperately ?  Do we need to define this somewhere in project management?
    3) How can we link the test cases to test package
    thanks in advance

    Hi Sai Vineeth,
    (1) To assign Testers to a Test Package, they must have valid Log On (User IDs) to SolMan
    (2) Such User IDs need not be assigned as Project Team members in Project Administration transaction - this assignment is helpful mainly for picking them up in 'Administration' tab of SOLAR01/02 and not much else - so, you can ignore this
    (3) Sometimes, if you select the Test Package - the one with an icon of grid-like Cube (by placing the cursor on that) and click on the Assign Tester icon, the system is not able to 'detect' that you are indeed on the Test Package level. It may give you a message "Select a Test Package". All you have to do is play with your mouse around and select it again. It will work !
    I cannot foresee any other reason.
    A quick checklist:
    (1) User IDs (representing each Tester) are in SolMan
    (2) Test Plan is in place
    (3) Test Packages are created within the Test Plan (Test Packages are basically sub-sets of a larger Test Plan)
    (4) You do place the cursor on the Test Package before clicking on the 'Assign Tester' icon
    Best regards,
    Srini
    Edited by: Srinivasan Radhakrishnan on May 15, 2008 9:45 AM; Formatting changes

  • Facing problem in testing of EBS

    I am facing problem in testing of EBS
    User has raised an issue that, they want to change the description of House bank account ID.I changed the account ID in the T>code FI12, but my problem that how can I show them the test cases it is required in my client process is that whenever we changed some thing we need to give test case for the same.
    While raising the issue they have mentioned that they getting the wring description in EBS
    I have tried in FEBA   but i dont how to test  and i dont even have existed bank statement in Development
    Thanks in Advance

    You can show the name change in the following transactions.
    1. FCHN
    2. FCHI
    3. FF67
    4. FF68
    As the data is not available for you you can proceed ahead as suggested above or ask the clients to copy the data from Prioduction or Quality environment to test system to show the test case.

Maybe you are looking for

  • How do I recover files from a Time Machine backup after a clean system reinstall?

    I had a really funky problem with my Japanese input that is too weird (and irrelevant at this point) to go into here. The gist is that I took my 13-inch, Mid-2012 MacBook Air to the Apple Store in Osaka, and one of their geniuses told me he couldn't

  • ERRORS ESS - NWDI Import to production - not updated in J2EE System Info?

    Hi all, We have a GoLive planned for ESS in five days and are encountering many troubles during deployment of the SAP_ESS component on our Production Environment. We have modified some components in ESS and have used NWDI CMS to transport them throug

  • I can't access facebook and twitter in my new macbook pro.

    I can't access twitter or facebook on my mac. I just recently bought my mac two weeks ago but since two days ago it hasn't been able to access twitter nor facebook.I already tried using safari, google chrome or firefox but none of them could access i

  • HP 110-3110NR won't boot up.

    Hi, I have an HP Mini Netbook Pavilion 110-3110NR which I bought it new around Nov 2010. I used it for about 6 months and then left it untouched until yesterday Nov 29, 2011. When I first turned it on it showed a message saying that it needed for me

  • Trouble getting Final Cut edited video to DVD

    So here's the background.. I had some old VHS videos that I wanted to edit and put on DVD for storage/easier viewing if the desire hit me. So it's been months and i'm still laboring over this stupid project finding the best work flow. After strugglin