Macro command to delete an test run or a test case from QC

I want to know the VB script command to delete an test run or a test case from QC. i can now able to access all the parameters of an test run, like status, execution data, etc. but stuck up while trying to delete it. please someone reply with the exact command

My J2SE version was wrongly set to 1.3 instead of 1.5.
Now it works.

Similar Messages

  • Run test case from command line

    Hi  All,
    Working environment : VS 2013 professional 
    Project type : Unit test project for (Windows 8.1 and Windows phone 8.1)
    I have a set of unit test cases and want to run it on command line.I tried MSTest.ext and vstest.console.exe for running test case but not succeed.  
    command :  MSTest.exe /testcontainer:path of project dll
    command :  vstest.console.exe path of project dll
    Type of Error
    Error : Unit test case for windows store and windows phone app can't be run outside appcontainer. 
    Error : No tests to execute
    command :  MSTest.exe /testcontainer:path of appx
    command :  vstest.console.exe path of appx
    Error : root certificate error 
    I just want to run windows 8.1 and windows phone 8.1 run test cases from command line.
    Thanks in advance.

    Hi vicky2468,
    Based on your issue, as far as I know that if we want to run unit test for windows store and windows phone app using mstest.exe or vstest.console.exe in command line, you will need to execute the .appx instead of the dll in command line.
    In addition, I tried to run the appx for unit test in command line,
    but I found that I also get the same issue as yours. I could not execute the appx for unit test in command line successfully.  But if we run it with VS IDE in Test
    Explorer windows, it seems that it works fine.
    So I suggest you can submit a feedback for this issue, to get the issue confirmed and diagnose by product team, would you please create connect report for it? You will get email notification for update.
    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx
    When you submit the connect, I suggest you can provide your project for product team so that product team will
    be better help you solve this issue.
    If you submit it, please share me the link here, I will help you vote it. I think we could get the latest information
    from the product team experts. Of course, if I get any latest useful information, I will update it here.
    Thanks for your understanding.
    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.

  • How can we upload test cases from excel to MTM 2013

    Hi,
    In my current project we are using Microsoft Test Manager 2013. We have prepared test cases in excel.
    How can we upload these test cases from excel to MTM 2013. I have tried with TestCaseMigratorPlus but it is giving some exceptions.
    Thanks,
    Naveen

    Hi Naveen,
    If you encountered any issues when using TestCaseMigratorPlus with MTM2013, please download this package uploaded at August 28 here:
    https://tcmimport.codeplex.com/SourceControl/list/patches which allows to use this tool with VS2013 and TFS 2013. Maybe it can resolve your issue.
    If you still can't use TestCaseMigrationPlus tool with MTM2013,as far as I know, currently there is no other tool for importing test cases from Excel to MTM2013. But we can highlight and copy
    all actions and expected results from Excel and then paste it to test case steps. For detailed steps, please see ‘Add action and validation test steps from Microsoft Excel or Word’ section in this document:
    Plan tests from Excel or Word
    Thanks,
    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.

  • How to Extract Test Cases from TFS 2013 to Excel

    How to extract test cases from 2013 Team Foundation Server to excel.
    Yuvaraj G

    Hi Yuvaraj,
    To export test cases in TFS 2013 to an Excel file, you can follow the steps as below:
    Create a query for the test cases that you want to export in Team Explorer
    Open an empty Excel file, click the tab of "Team"
    Click "New List" and then select the TFS server and the detailed team project
    In query list, select the query you created before, then click OK to export the test cases
    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.

  • How to copy test cases from one project to another?

    Currently we have several projects withing the oracle test manager suite with test cases in each of them. I need to be able to copy some of the test cases to other projects or atleast select them to run under a new project instead of retyping them everytime. Is there a way to do this? I see that I can copy within a project and paste but have not be able to find way to do it outside of a project. Maybe there is a way to export and then import? Any ideas would be helpful?
    Thanks

    Hi
    You can always export a test Summary table Report in XLS and import it in the new project, however that will not give you results or test steps but at least is a start.
    Also there is something called Data Links have a look at the help file you may be able to use that when creating test cases, you could create the test case in CSV first and then upload it to multiple projects using the data link.
    Hope this helps
    Alex

  • Can't delete Office Test Drive.  "Remove Office" doesn't see it.

    I've searched the web and these forums for a solution to my problem but came up empty, so I'm hoping someone can help.
    I'm trying to delete Office Test Drive from my brand-spankin' new (refurbished) mini, and I've followed the instructions that I found posted several times in Discussions threads, but the procedure isn't working. When I run "Remove Office" and it searches for installed Office products, it doesn't find anything, which means I can't select anything to delete!
    How can I completely get rid of it if the uninstaller doesn't work?
    Thanks.

    For others reading this thread.
    NeoOffice/J is a full featured office productivity suite including word processing, spreadsheet, presentation, vector drawing, database, and macro functionality. It can be used as a free alternative to Microsoft Office:Mac. You can exchange documents with Microsoft Office and OpenOffice.org users, even on other platforms!
    http://www.neooffice.org/
    iFelix

  • Is it possible to import the failure cases from another test plan in MTM ?

    Hi,
    Is it possible to import the failure cases from another test plan? For example, I have created a new test plan with ID 1002. Now I want to import the failure cases from test plan with ID 1001.  Is there anyway to do this?
    Thanks,
    Leslu

    Hi Leslu,
    As far as I know, there isn’t that feature in MTM, but we could achieve that by add test cases to the test suite.
    As we know, the test case is associated to the test suite, remove the test case from the test suite won’t delete the test case, it just remove the relationship.
    So, we could base on the test cases’ id to add the test cases to a test suite of another test plan.
    The condition is:
    Work Item Type In Group Test Case Category
    ID In id1,id2 (e.g. 1,2,)
    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.

  • Determining where a test case is being used

    I have a test case in TFS 2013.  I need to know what test plans/suites use this test case.  How can I determine that? I want to know if I can delete that test case but I can't figure out how to tell where it is used. If I add the test case to a
    test suite, then I can see in the TFS 2013 Update4 Browser UI the Associated test suites.  
    I want this capability without having to add the test case to a test suite.
    Give a test case, tell me all of the associated test suites so that I can remove unused test cases.
    Bruce

    Hi Bruce, 
    Thanks for your post.
    As far as I know there’s no such a link relationship displayed in test case work item to show test case belong to which test plan/test suite in current TFS version, You should open the Test Plan/Test Suite in team project Web Access or MTM, then view and
    check all test cases under it.
    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.

  • Where should i found the executed automation test cases result in TestResult folder?

    we are using VS2013, i have automated some coded ui test cases and executed from test explorer. once completed i am able to view the test result in the Test explorer window. But I am unable to view in the 'TestResult' folder under project location. (In The
    Test result folder created IN & Out sub folder )  I think it should be create .trx file under TestResult folder.  is there any configuration required.
    Please guide me.
    Thanks in Advance. 

    Hi Divakar,
    Thank you for posting in MSDN forum.
    As far as I know that when we automated coded ui test cases from VS IDE, it is default that there have no the .trx file be created in the TestResult folder. However, there have a replace workaround that we can automate coded ui test cases using MSTest.exe
    in command line. And then we can get the .trx file be created in the TestResult folder.
    So you can execute the /resultsfile command to get the .trx file using mstest.exe in command line.
    Reference:
    https://msdn.microsoft.com/en-us/library/ms182489.aspx?f=255&MSPPError=-2147217396
    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.

  • How can I execute the test case written excel sheet

    Hello
    I have written the test cases  in excel sheet. Please tell any one how to execute test case from labview.please send some sample vi

    I'm sorry, but you've provided zero information on what you have. All you've said is that you have an Excel "sheet" with test cases, and that it's written in VBA. What does that even mean? What's written in VBA? Are you trying to call the VBA code? Are you trying to rewrite the VBA code in LabVIEW? Unless you provide a better explanation of what you have and what you are trying to do, we can just keep playing a guessing game.

  • Error while running ADF-BC Test Suite from command line

    Hi,
    I have created a separate test project containing the Test Suite for the Model componenet of my ADF-BC  application.
    I need to run this test project separately from jmeter.
    The tests run fine from Jdev, But when I package the test project into a jar and try to run from command line, I get the following error:
    java.lang.NoClassDefFoundError: oracle/jbo/ApplicationModule
            at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<init>(ServiceAMFixture.java:36)
            at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<clinit>(ServiceAMFixture.java:15)
            at com.oracle.cs.cap.module.view.EntitlementReportDurationViewVO.EntitlementReportDurationViewVOTest.<init>(EntitlementReportDurationViewVOTest.java:11)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.junit.internal.runners.JUnit4ClassRunner.createTest(JUnit4ClassRunner.java:72)
            at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:79)
            at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
            at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
            at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
            at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
            at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
            at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
            at org.junit.runners.Suite.access$000(Suite.java:26)
            at org.junit.runners.Suite$1.run(Suite.java:93)
            at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
            at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
            at org.junit.runners.Suite.run(Suite.java:91)
            at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
            at org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:28)
            at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
            at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
            at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
            at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
            at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
    Caused by: java.lang.ClassNotFoundException: oracle.jbo.ApplicationModule
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 27 more
    The Test project jar is created as ADF Library JAR File with Model.jpr as the dependent project. This takes care of project class dependencies
    All the adf library dependencies are added to the manifest file of the Test Project jar referring to a location lib/ in the jar file directory.
    I tried creating the ApplicationModule using both Configuration class (Configuration.createRootApplicationModule) as well as using the JDBC Connection String but both fail when I run the test cases independently from jmeter.
    Anybody came across such an error? Please help.
    Thanks,
    Sapna

    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

  • Drill Down Macro command BEx Analyzer BI 7.0

    Hi All,
    I'm having the following poblem. I'm working as a testautomation specialist having automated a test using (amongst others) the BEx Analyzer (SAP BW 3.X).
    In short, when the results of a query are shown in an excel sheet, I automated the vertical drilldown of every row in that resultssheet. I used the BEx Analyzer macro command: Run("sapbex.xla!SAPBEXfireCommand", "HDEX", myCell).
    Since we are going to use the new version of the SAP Bex Analyzer (BI 7.0), I have to convert/migrate all my testautomation scripts. And I just can not succeed in making this vertical drill down work in SAP Bex Analyzer 7.0. The SAPBEXfireCommand is not supported in SAP Bex Analyzer 7.0. Does anyone has an idea what SapBexAnalyzer (Excel) macro I can use to drill down in  SAP Bex Analyzer 7.0? Any help really appreciated, I'm really struglling with this one and also no luck finding any solution on the internet so far.
    Thanks!

    i'd suggest u research some oss notes.
    Take a look at the following:
    1073426
    1045244
    1039191
    these may not be exact solutions, but will guide you to other notes as well...

  • Want to run multiple Test Cases by ant ?

    Hi all,
    I have a class called Book.java and two test cases called BookTest1.java and BookTest2.java . I want to test both this test cases by ant. I have to set this ant task unix cron job so, that this test is done automatically each day.
    I have wrote the build file with batchtest option but it is building the application suucessfully without checking the Test Cases individually.
    I am successfully the same task with JUnit Test suite.
    Thanks and Regards
    Taton Banerjee
    Book.java
    package src;
    public class Book {
        private String title;
        private double price;
        public Book(String title,double price) {
            this.title = title;
            this.price = price;
    public static void main(String args[])
         System.out.println("Inside Book class");
        public boolean equals(Object object) {
            if (object instanceof Book) {
                Book book = (Book) object;
                return getTitle().equals(book.getTitle())
                        && getPrice() == book.getPrice();
            return false;
        public double getPrice() {
            return price;
        public void setPrice(double price) {
            this.price = price;
        public String getTitle() {
            return title;
        public void setTitle(String title) {
            this.title = title;
    BookTest1.java
    package src;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    //import de.laliluna.tutorial.junitexample.Book;
    * @author http://www.laliluna.de
    public class BookTest1 extends TestCase {
        private Book book1;
        private Book book2;
        @SuppressWarnings("unused")
         private Book book3;
         * setUp() method that initializes common objects
        protected void setUp() throws Exception {
            super.setUp();
            book1 = new Book("ES", 12.99);
            book2 = new Book("The Gate", 11.99);
            book3 = new Book("ES", 12.99);
         * tearDown() method that cleanup the common objects
        protected void tearDown() throws Exception {
            super.tearDown();
            book1 = null;
            book2 = null;
            book3 = null;
         * Constructor for BookTest1.
         * @param name
        public BookTest1(String name) {
            super(name);
         * testEquals method to test the equals(..) method
         * of the class Book
        public void testEquals(){
            assertFalse(book2.equals(book1));
            assertTrue(book1.equals(book3));
        public static Test suite(){
            TestSuite suite = new TestSuite();
            suite.addTest(new BookTest1("testEquals"));
            return suite;
    BookTest2.java
    package src;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    //import de.laliluna.tutorial.junitexample.Book;
    public class BookTest2 extends TestCase {
        private Book book3;
        private Book book4;
        private Book book5;
         * setUp() method that initializes common objects
        protected void setUp() throws Exception {
            super.setUp();
            book3 = new Book("ES", 12.99);
            book4 = new Book("The Gate", 11.99);
            book5 = new Book("ES", 12.99);
         * tearDown() method that cleanup the common objects
        protected void tearDown() throws Exception {
            super.tearDown();
            book3 = null;
            book4 = null;
            book5 = null;
         * Constructor for BookTest.
         * @param name
        public BookTest2(String name) {
            super(name);
         * testEquals method to test the equals(..) method
         * of the class Book
        public void testEquals(){
            assertFalse(book4.equals(book3));
            assertTrue(book3.equals(book5));
        public static Test suite(){
            TestSuite suite = new TestSuite();
            suite.addTest(new BookTest2("testEquals"));
            return suite;
    Test Suite(Not neccessary when running with ant)
    package src;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    public class AllJUnitTests {
         /*public AllJUnitTests(String name)
         super(name);
         public static Test suite() {
              TestSuite suite = new TestSuite("Test for src");
              //$JUnit-BEGIN$
              suite.addTest(BookTest2.suite());
              suite.addTest(BookTest1.suite());
              //$JUnit-END$
              return suite;
         * Runs the test suite using the textual runner.
        public static void main(String[] args) {
            junit.textui.TestRunner.run(suite());
    build.xml
    <?xml version="1.0"?>
         <project default="deploy">
         <!-- set global properties for this build -->
              <property name="src" value="src" />
              <property name="build" value="build" />
              <property name="dist" value="dist" />
              <target name="JUNIT">
                   <!-- Create the time stamp -->
                   <tstamp/>
                   <!-- Create the build directory structure used by compile -->
                   <mkdir dir="${build}/src" />
              </target>
              <target name="compile" depends="JUNIT">
                   <mkdir dir="${dist}/lib" />
                   <!-- Compile the java code from ${src} into ${build} -->
                   <javac srcdir="${src}" destdir="${build}/src" >
                   <classpath>
                        <!--<pathelement location="dist/lib/HellowithAnt.jar" />-->
                        <pathelement path="E:/junit4.4/junit-4.4.jar" />
                        <!--<pathelement path="/lib/commons-net-1.4.1.jar" />
                        <pathelement path="/lib/jakarta-oro-2.0.8.jar" />-->
                   <!--<pathelement path="E:/apache-ant-1.7/lib" />-->
                   </classpath>
                   </javac>
                   <junit printsummary="yes" fork="yes"
                           errorProperty="batchtest.failed"
                           failureProperty="batchtest.failed"
                           haltonfailure="yes">
                           <formatter type="xml"/>
                           <classpath path=".">
                             <pathelement path="E:/junit4.4/junit-4.4.jar" />
                             <pathelement path="/build/src/BookTest1.class"/>
                             <pathelement path="/build/src/BookTest2.class"/>
                                <pathelement path="/build/src/AllJUnitTests.class"/>                                   
                             </classpath>     
                             <!--<test todir="${build}/src"/>-->
                             <batchtest todir="${build}/src">
                             <!--<fileset dir="${build}/src" includes="src.AllJUnitTests.class"/>-->
                             <fileset dir="${build}/src">     
                        <filename name ="src.BookTest1.class"/>
                             <filename name ="src.BookTest2.class"/>
                             <filename name ="src.AllJUnitTests.class"/>     
                             </fileset>     
                             </batchtest>
                        <!--<batchtest todir="build.src">
                             <fileset dir="build.src">
                             <filename name ="src.BookTest1.class"/>
                             <filename name ="src.BookTest2.class"/>
                             </fileset>     
                        </batchtest>-->
                             <!--<test todir="${build}/src" name="src.BookTest"/>-->
                        </junit>
                             <fail message="Tests failed!" if="batchtest.failed"/>                              
                            <junitreport todir="${build}/src">
                                <!--<batchtest todir="${build}/src">
                            <fileset dir="${build}/src">
                             <include name="*.xml"/>
                             </fileset>
                             </batchtest>-->
                        <report format="frames" todir="${build}/lib"/>
                             </junitreport>
                    </target>
                    <target name="dist" depends="compile">
                     <!-- Create the ${dist}/lib directory -->
                     <!-- Put everything in ${build} into the HelloTest.jar file -->
                     <jar jarfile="${dist}/lib/HellowithAnt.jar" basedir="${build}/src" >
                          <!--<fileset dir="${dist}/lib">
                                                   <filename name="BookTest1.class"/>
                                                   <filename name="BookTest2.class"/>
                                               <filename name="Book.class"/>
                                               <filename name="dist.lib.HelloTestwith.jar"/>
                          </fileset>-->
                          <manifest>
                           <attribute name="Main-Class" value="src.Book"/>
                           </manifest>
                          </jar>
                    </target>
                    <target name="runtests" depends="dist" >
                     <java jar="${dist}/lib/HellowithAnt.jar"
                          fork="yes" 
                          classpath=".;D:/Java/jdk1.5.0_01/bin;E:/apache-ant-1.7.0/lib/junit-4.4.jar;C:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt/dist/lib/HellowithAnt.jar;C:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt/src/AllJUnitTests;C:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt/src/BookTest1;C:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt/src/BookTest2">
                        <!--<fileset todir="${build}/src">
                             <filename name="src.BookTest1.class"/>
                             <filename name="src.BookTest2.class"/>
                             </fileset>-->
                        <arg value="src.AllJUnitTests"/>
                     </java>
                    </target>
                     <target name="deploy" depends="runtests">
                   </target>
               </project>/*---------------------------------------------------------------------------
    Command prompt output :
    c:/Documents and Settings/kaushikb/workspace/HelloTestwithAnt> ant
    Buildfile: build.xml
    JUNIT:
    compile:
    [javac] Compiling 4 source files to C:\Documents and Settings\kaushikb\wor
    pace\HelloTestwithAnt\build\src
    [junitreport] Processing C:\Documents and Settings\kaushikb\workspace\HelloTes
    ithAnt\build\src\TESTS-TestSuites.xml to C:\DOCUME~1\kaushikb\LOCALS~1\Temp\nu
    1759201173
    [junitreport] Loading stylesheet jar:file:/E:/apache-ant-1.7.0/lib/ant-junit.j
    !/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
    [junitreport] Transform time: 1153ms
    [junitreport] Deleting: C:\DOCUME~1\kaushikb\LOCALS~1\Temp\null1759201173
    dist:
    [jar] Building jar: C:\Documents and Settings\kaushikb\workspace\HelloTe
    withAnt\dist\lib\HellowithAnt.jar
    runtests:
    [java] Inside Book class
    deploy:
    BUILD SUCCESSFUL
    Total time: 5 seconds
    ---------------------------------------------------------------------------

    Haven't looked too carefully because you weren't very specific, but here's how I would do it:
    public class Book { }
    public class TestBook1 extends TestCase {}
    public class TestBook2 extends TestCase {} //don't define any suite() method
    public class TestBookSuite extends TestCase {
       public static Test suite() {
          TestSuite suite = new TestSuite();
          suite.add(TestBook1.class);
          suite.add(TestBook2.class);
          return suite;
    //================ant:===========
    <target name="runtests" depends="dist" >
       <java classpath="." classname="junit.textui.TestRunner">
         <arg value="path.to.TestBookSuite"/>
       </java>
    </target>Of course filling in classpath information and the like where it's appropriate for your situation.

  • Error in running juit test case for struts2 action class

    Hi,
    I am getting error when i am running my junit test case for struts2 action class. Here is the code.
    public class RoleMasterNewActionTest extends StrutsTestCase {
         public void setUp() throws Exception {
            super.setUp();
            ObjectFactory.setObjectFactory( new ObjectFactory() );
         public void testDoSomeThing()throws Exception {
              RoleMasterNewAction action = new RoleMasterNewAction();
              assertTrue(action.doSomeThing());
    }I am getting error at testDoSomeThing(). the error is
    2010-04-30 15:07:12,263 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-default.xml]
    2010-04-30 15:07:12,325 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-plugin.xml]
    2010-04-30 15:07:12,388 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts.xml]
    2010-04-30 15:07:12,388 WARN [org.apache.struts2.config.Settings] - Settings: Could not parse struts.locale setting, substituting default VM locale
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-Lookup
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-label
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-headings
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-messages
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-setup
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.common-errors
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-label
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-lookup
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-headings
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-jndinames
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-jndinames
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-labels
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-headings
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-alert
    2010-04-30 15:07:12,388 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.form
    2010-04-30 15:07:12,419 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory] - Initializing Struts-Spring integration...
    2010-04-30 15:07:12,419 FATAL [org.apache.struts2.spring.StrutsSpringObjectFactory] - ********** FATAL ERROR STARTING UP STRUTS-SPRING INTEGRATION **********
    Looks like the Spring listener was not configured for your web app!
    Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext.
    You might need to add the following to web.xml:
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>but already i have the listener configuration in my web.xml.
    Thanks in advance..

    I guess it wasn't reading the right web.xml file.
    You may prove it by deleting your web.xml file (don't forget to make a backup), and then run the test again to see whether the error is the same.

  • UI command to delete file.

    hi,
    i want to have a command for deleting a file .. it should be a button beside every resource which is being displayed in the KM folder (/documents/kumar).
    i have seen https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Knowledge%20Management%20and%20Collaboration%20Developers%20Guide.html >> COMMANDS and tried the URL redirect thing..
    i have created a UI COmmand in KM and included that in the DetailsGroup_test (which i included in my layoutset_test for a navigation iView) but i don't see it..
    code is as follows (same as given in the above link):
    public class MyUICommand extends AbstractCommand {
          * redirecting to a URL
         public MyUICommand() {
              super("myButtonTextKey", "myTooltipTextKey");
         public ICommand getNewInstance() {
              return this.initNewInstance(new MyUICommand());
         public IRenderingEvent execute(IScreenflowData arg0) throws WcmException {
              return null;
         public String[] getTargetParameters() throws WcmException {
              return new String[0];
         public void setTargetParameters(List list, IResourceContext context)
              throws WcmException {
         public boolean isExecutable() {
              return true;
         /*** Prevents an event being fired.* The execute method will not be called.*/
         public boolean raisesEvent() {
              return false;
         /*** Causes a redirect to the specified URL* in the specified target frame.*/
         public LinkAttributes getLinkAttributes() {
              return new LinkAttributes("http://www.sap.com", "_blank");
    i have also duplicated 'Commands for details menu' in Layoutset >>> MyGroup_new >> MyUICommand_alias
    plz help. points assured
    regards
    kumar.

    i tried to use the SDN example:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/implementing flexible ui one-step-screenflow.article
    and i am getting ClassCastException:
    [code] Please wait
    Your request is being processed
    System Error
    An exception occurred during the program execution. Below you will find technical information pertaining to this exception that you might want to forward to your system administrator.
    Exception Class: 
    Call Stack java.lang.ClassCastException
            at com.sapportals.wcm.control.generic.WcmErrorControl.readInputData(WcmErrorControl.java:553)
            at com.sapportals.wdf.stack.Control.triggerInput(Control.java:473)
            at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:173)
            at com.sapportals.wdf.WdfCompositeController.onWdfEvent(WdfCompositeController.java:539)
            at sun.reflect.GeneratedMethodAccessor563.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sapportals.htmlb.page.DynPage.doProcessCompositeEvent(DynPage.java:204)
            at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:142)
            at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)
            at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
            at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:73)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
            at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
            at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
            at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)[/code]        
    i added the lines-of-code which are in BOLD below
    [code]
    public IRenderingEvent execute(IResource res, Event event) throws WcmException {
              if (event instanceof ConfirmEvent) {
                   ConfirmEvent cce = (ConfirmEvent)event;
                   if (ConfirmEvent.CHOICE_YES.equals(cce.getChoice())) {
    <b>                    // do the action here ...
                        if(resource != null){
                               resource.delete();
                        } else {
                               return new RenderingEvent(
                               new CflStatusInfoEvent(StatusType.ERROR, "Resource null!"));
                        }</b>
                   return new InfoEvent(Status.OK, "Done !");
                   }     else if (ConfirmEvent.CHOICE_NO.equals(cce.getChoice())) {
                        return ConfirmComponent.onNo(event, res.getContext().getLocale());
                   } else if (ConfirmEvent.CHOICE_CANCEL.equals(cce.getChoice())) {
                        return ConfirmComponent.onCancel(event, res.getContext().getLocale());
              return new InfoEvent(Status.ABORT, "Aborted.");
    [/code]
    plz help..
    i am getting the menu in Details screen .. but, i should get the command in the KM folder beside every resource/file. .. how should i change it ..
    regards.

Maybe you are looking for

  • When I Conditional Supress the page footer. It occupy space in report

    I am designing Crystal report with multiple page footers.Initially I have suppressed all page footer. Each page footer is un suppressed against a specific Test Id (db Field). I have done this with formula for each page footer. The problem is when Pag

  • Web IC Sales Order ERP Integration (Workcentre IC_SLO_ERP)

    System: CRM 2007 s4 and ECC 6 I have integrated ERP Sales Order within my Web IC aplication.  I'm able to create ERP orders from within the CRM based Web IC using the work centre IC_SLO_ERP.  I can save the orders and the orders are saved to SAP ECC

  • Stock in transit visibility

    Hi all, I am working on the following gap for my client How to have stock in transit visibility when finished goods  are exported to another client site. Suggested solution is to do some custom for ATD receipts/issues for restricted/unrestricted and

  • How do I remove avg link scanner.....

    I have used the search engines, within the last two hours talked directly to customer support, and trying utilizing their faq pages. 1) They have not created a macintosh compatible removal program, if they did I cannot find it on their site. 2) Custo

  • Weird Finder Issue.

    Hi, I've been having problems with Finder, for some reason when it's in the "columns" view it always crashes when I click on a ".mpg" file. Any other files such as .avi or .mov work fine and finder doesn't crash. However, if I switch to "list" view a