Report to run CATT test case

Hi Experts,
I have a requirement where i need to create a report program to run the   CATT test case 'XYZ'.
CATT Test case 'XYZ' mass updates pricing for materials via VK11 for condition type PR00, sales area GB20/IC/01.
As the business should not have permanent authorization to run CATT they requires a report to execute test case 'XYZ' to be developed.
I have no idea how to run CATT test case through report program. Any pointers will be highly appreciated.
Thanks & Regards,
Swati

Hi Balu,
Thanks for your feedback. But i am still not clear.Could you please let me know the procedure in steps.
I also have FS in which functional mention to upload file data and run the test case for some condition type and sales area.
File have following fields:
Material, Rate, Pricing Unit, Valid on, Valid to
Regards,
Swati
Edited by: Swati Garg on Mar 7, 2011 6:32 PM

Similar Messages

  • Error encountered while running a test case using MTM

    Hello,
    Has anyone encountered this error while running a test case using MTM 2013? 
    When I click on OK, the message is again shown until that time wherein the popup error is no longer shown.
    When I try to continue to the next pages wherein a modal is being open and I need to enter some data on a text field, the IE would stop working and seems to crash.
    Thanks!

    Hi Kiyaruh,
    Base on the error message, the error is threw by internet explorer.
    Does it have the same issue when access that web site/page in IE directly or it just occurs when run tests through MTM?
    What’s the version of your browser? You may try it with other browser and check whether it has same issue.
    Regards
    Starain
    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.

  • CATT Test case for  ME41 tcode(Multiple items for inventory and service )

    Hello Gurus,
    Now we are having quotation legacy file for Tcode ME41 for inventory and service items. We are using tcode <b>SCAT</b>
    for CATT. Every thing going fine at recording in test case. i dont know where should i specify my legacy file path. I found there is one download option while before running test case. its not taking the file path.  is there any other file path for running test case?
    advice me.
    regards
    dinesh.a
    <b></b>

    Hi
    I think you should use an abap program and not LSMW, because the problem is you have to create a recording for trx ME41 in the LSMW and after you can't change the abap code created.
    In this way you could insert only a certain number of items by a project of LSMW, and it depends on your recording.
    So if you can't know how many item should be loaded, it's very hard to use LSMW.
    Max

  • 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.

  • Error while running a test case in Jcaps 6 JDBC project

    I encountered an error while running the testcase for a JDBC BC project in Jcaps 6.
    BPCOR-6135:A fault was not handled in the process scope; Fault Name is {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure; Fault Data is null. Sending errors for the pending requests in the process scope before terminating the process instance
    Caused by: I18N: BPCOR-3023: Selection Failure occurred in BPEL({http://enterprise.netbeans.org/bpel/DBSample/Db}Db
    Kindly suggest a solution

    It seems to be a very common error. Try checking your map assignments when the source (from) is empty (null). These mappings with null values may produce the error you are facing...
    Good luck!

  • Visual Studio 2013, CodedUI, running 2 solutions inside a 'container' solution, same test-case, different URL's.

    Hello!
    I'm running a number of test-cases, captured using CodedUI, on a number of URL's.
    An example, maybe to populate a field within a web-based database.
    Now, in order to run multiple test-cases created with differing solutions, one per URL 'target', I need to 'add' these individual solutions into another solution, to act as a 'container'.
    Not really a problem, even though it does make playlist manipulation more difficult than it needs to be (is it really necessary to have to build the solution everytime a new solution is 'added', rather than one build at the end!?).
    However, when it comes to running the tests, it seems as they are identical barring the URL, even though they have different titles, and it runs both, it seems to put them both under a single banner of 'CodedUITestMethod1'. Why?
    So, if I add a run a suite of say 10 tests, 5 tests of each going to two URL targets, it runs the ten tests, reports as having done 10 tests, but only shows 5 x 'CodedUITestMethod1'. 

    Hi,
    According to your description, I don’t understand clearly about your issue.
    >> I'm running a number of test-cases, captured using CodedUI, on a number of URL's.
    Do you have multiple test methods for each URL or just a data-driven test?
    >> I need to 'add' these individual solutions into another solution, to act as a 'container'.
    How do you ‘add’ these individual solutions? Add existing project?
    >> So, if I add a run a suite of say 10 tests, 5 tests of each going to two URL targets, it runs the ten tests, reports as having done 10 tests, but only shows 5 x 'CodedUITestMethod1'.
    How do you associate test methods to test cases? Where do you check reports?
    Regards
    Starain
    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.

  • Unit test cases run twice on TFS2012 build server

    Hi,
    I have enabled the build definition to run the test cases using Visual Studio Test Runner in TFS2012 build server. Once it runs I can see that each test case ran twice. Suppose if I have 5 test cases, 5 will be passed and same 5 will be failed. Why it ran
    for second time and failed? Please advice.
    Below is my activity log. If you notice at the end of the below log, same test cases ran twice. First all are passed and then failed.
    If Not DisableTests00:00:21
    Inputs
    Condition: True
    Run Tests00:00:21
    If Not TestSpecs Is Nothing00:00:21
    Inputs
    Condition: True
    For Each TestSpec in TestSpecs00:00:21
    Inputs
    Values: Run tests in test sources matching **\*test*.dll, Target platform: 'X86'
    Try Run Tests00:00:21
    Handle Test Run Exception00:00:00
    If testException is NOT TestFailureException00:00:00
    Inputs
    Condition: False
    Set TestStatus to Failed00:00:00
    Inputs
    LabelName:
    SourceGetVersion:
    KeepForever: False
    DropLocation:
    Status: None
    LogLocation:
    BuildNumber:
    Quality:
    TestStatus: Failed
    CompilationStatus: Unknown
    If spec.FailBuildOnFailure00:00:00
    Inputs
    Condition: False
    Get Requests Approved for Check In00:00:00
    Outputs
    Result: IQueuedBuild[] Array
    Mark Requests for Retry00:00:00
    Inputs
    Behavior: DoNotBatch
    Requests: IQueuedBuild[] Array
    Force: False
    If spec Is AgileTestPlatformSpec00:00:00
    Inputs
    Condition: True
    Run Visual Studio Test Runner for Test Sources00:00:00
    Assign spec to agileTestPlatformAssembly00:00:00
    Inputs
    Value: Run tests in test sources matching **\*test*.dll, Target platform: 'X86'
    Outputs
    To: Run tests in test sources matching **\*test*.dll, Target platform: 'X86'
    Find Visual Studio Test Platform Test Assemblies00:00:00
    Inputs
    MatchPattern: d:\Builds\8\Test\OfficeLink\src\**\*test*.dll
    Outputs
    Result: System.Linq.OrderedEnumerable`2[System.String,System.String]
    If Visual Studio Test Platform Test Assemblies Found00:00:00
    Inputs
    Condition: True
    If agileTestPlatformAssembly.HasRunSettingsFile00:00:00
    Inputs
    Condition: False
    Run Visual Studio Test Runner for Test Sources00:00:00
    Inputs
    ResultsDirectory:
    TreatTestAdapterErrorsAsWarnings: False
    UpdateFrequencyTimeout: 30
    RunSettings:
    Platform: Any CPU
    TestSources: System.Linq.OrderedEnumerable`2[System.String,System.String]
    KeepAlive: False
    UpdateFrequency: 5000
    TestCaseFilter:
    PublishResults: True
    RunName:
    Flavor: Debug
    ExecutionTimeout: 0
    ExecutionPlatform: X86
    DisableAutoFakes: False
    Passed TestMethod1
    Passed TestMethod1
    Passed RegisteredTypeShouldBeRegistered
    Passed RegisteredTypeLifeTimeManagerIsTryShouldBeRegistered
    Passed RegisteredTypeWhithoutNameShouldBeRegistered
    Passed RegisteredInstanseShouldBeRegistered
    Passed RegisteredInstanseWithoutNameShouldBeRegistered
    Passed RegisteredInstanseShouldBeResolved
    Passed AllRegisteredInstanseShouldBeAllResolved
    Failed RegisteredTypeShouldBeRegistered
    Failed RegisteredTypeLifeTimeManagerIsTryShouldBeRegistered
    Failed RegisteredTypeWhithoutNameShouldBeRegistered
    Failed RegisteredInstanseShouldBeRegistered
    Failed RegisteredInstanseWithoutNameShouldBeRegistered
    Failed RegisteredInstanseShouldBeResolved
    Failed AllRegisteredInstanseShouldBeAllResolved
    Test Run Completed. 16 tests executed.
    Test Run Failed.

    Hi DHegde,  
    Thanks for your post.
    You’re using TFS 2012 Update 4 and VS 2012 Update 2?
    Please manually build your project and run test project using VS 2012 on your client, then check the test case result in Test Result window, the test cases be executed as expect? 
    If everything works fine when manually run your test project using VS 2012, which build process template selected in your build definition? If it’s not TFS 2012 default build process template, please try use default build process template in your current
    build definition, then queue build definition and view test result in TFS Build log again.
    If you’re using default TFS 2012 build process template in your current build definition, but still received the same issue, how did you configure the test in your build definition, please share the detailed configure screenshot(s) here.
    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 make sure all my automatic test case run in one session?

    Hi guys,
        I'm doing some automatic test for our products.
         Now i'm hindered by an issue(maybe,due to my wrong configuration).
         I've wrote some test method in a Coded UI Test project,and these run perfect on local machine.And i build an environment includes Builder Controller,Builder Agent,TestController and Test Agent etc, and that the test cases have been written
    in MTM already. 
          After that,i built the project,deployed the project and run the Coded UI Test on Test Agent machine,and i found it seems that he test cases run on different sessions.I have no idea how to config or set up to make sure all my test cases
    run just in one session.
        Could anyone help me,please?

    Hi dean.chen,
    >>I found it seems that he test cases run on different sessions.I have no idea how to config or set up to make sure all my test cases run just in one session.
    According to your description, could you please tell me what the different sessions are when you run the test cases in MTM?
    Why did you want to run the test cases in one sessions?
    where did you see the test cases run on different sessions?
    Could you please tell me how many test agents machine you use to run these automatic test cases in MTM?
    As far as I know that if you just use one test agent machine to run these automatic test cases in MTM, these test cases will be run one by one on the one test agent machine.
    To help you solve this issue, please tell me more detail message about this issue.
    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.

  • 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.

  • Running test cases

    Each of my transformation needs to be tested for several types of variations in input data due to optional elements and data dependent conditional statements. Also, one of the schemas I am using is evolving as we make progress. When I make changes in xquery transformation I would like to have a script to run the test cases and make sure that output is as expected. I wondering if there is a way to script test cases for Xquery transformations?

    Karl, All,
    I dug around other websites and found a solution. The problem is caused by having [ ] characters in your project name. In my case, I was using Subclipse, which modifiies your project name as described below:
    To fix the issue, go to Window, Perferences, Team, SVN, Label Decorations. Change the value for the field "Project Format",
    From:
    {dirty_flag}{name} [{url_short}]
    To:
    {dirty_flag}{name} <{url_short}>
    Apparently, the JUnit plug-in parses the project name and looks for [ ] characters to determine if it should use a remote testing framework. Changing the project format to use different characters resolves this issue. I arbitrarily choose <> characters.
    For people not using Subclipse, it should be as easy as renaming your project.
    Eric.

  • TFS with VS2013 and MTM, for CodedUITest test-cases.

    Hello!
    I have a blocking issue: TF900558: This build process template cannot be run on a build server Default Controller - <servername>. Upgrade this build server to a newer version.
    What I am trying to do, is get some pre-'captured' CodedUItests done with VS2013, and use MTM as the 'front-end' in order to run test-cases and report, by associating some test-cases with these CodedUI elements.
    Now, I have the latest version of VS2013 installed on a virtual-machine, which contains my test-environment which tests webpages. TFS is a little older and cannot be upgraded right now, as the team are just too busy.
    It seems a potential work-around, is to change 'the template' so that it matches what is used by TFS.
    Anyone any idea how I should go about this, and if my theory is sound (if not ideal)?
    I could really use some step-by-step-guidance here, and have email rather than keep adding to this thread, until resolved.

    Hi MonsoonMally,
    Based on your description, you might use a build process template which is newer than the TFS build controller/agetnt. You can upgrade your TFS on your build machine or use the old build process template that match to build controller.
    To upgrade your build controller, you can refer to this blog for more information:http://blogs.blackmarble.co.uk/blogs/rfennell/post/2014/02/01/Upgraded-older-Build-and-Test-Controllers-to-TFS-2013.aspx
    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.

  • Report limits for individual tests

    Hi All
    I have a system under test which I interrogate (via RS232) for embedded hardware and firmware information. The reported response has to be added to the final test report along with all the other specified test cases.
    e.g.
    Operator:  xyz
    Date:  xyz
    UUT Type: xyz
    Serial Number: xyz
    PTS 2.1 Embedded H/W (Processor)  12345 version A  12345 version A
    PTS 2.1 Embedded H/W (Amplifier)    23456 version B  23456 version B
    PTS 2.1 Embedded H/W (Filter)         34567 version c  34567 version c
    PTS 2.1 Embedded H/W (Pre-Amp)   45678 version D  45678 version D
    PTS 2.2 12V OFF Current                  2.1mA  5  LT
    PTS 2.2 12V ON Current                   250mA  300  LT
    etc
    etc
    The only way I can think of to get the information into the main body of the report is to perform a 'String Value' test on it. However I then get the limits displayed in the report as well making the final report look messy. I do need all the limits in the report for the usual test cases e.g. voltages, currents etc so I cannot turn off limit reporting in the configuration  report options.
    Is there a way to turn OFF the limits reporting for individual test cases?
    Regards
    IanR

    What version of TestStand are you using?
    You could change the step to an 'Action' step and put the RS232 string in the report text for the step?  It depends on how your report options are setup in your environment.  Where I work, we do not put any Action steps in the report just Pass Fail results.  Hence you would have to change the Status Expression for your Action step to something other than "Done"....
    Otherwise in TestStand 4.0, you can click on the Property Browser view under the Properties Tab.  Right Click on the Limits container and select 'Advanced -> Edit Flags'
    Within that box there is an option 'Is Limit' checked, perhaps by unchecking this option it will not be put in the report.  Although I would NOT do this, because it is difficult for anyone taking over your code ( unless you document you changed this flag ) to see that it is unchecked.
    Thanks,
    Paul Holzrichter

  • How to run a test suite in JUnit?

    I am newbie to JUnit. I am running JUnit 4 in eclipse 3.2.1. I have created test cases in a package called "testsuite". Moreover, I have created a test suite in the same package to run these test cases.
    Sample code for a test case:
    package testsuite;
    import junit.framework.TestCase;
    import org.junit.Before;
    import org.junit.Test;
    import system.NodeItem;
    public class NodeItemTest extends TestCase {
        NodeItem aNode;
        @Before
        public void setUp() throws Exception {
            aNode = new NodeItem();
            aNode.setMinTempTherm(2);
        @Test
        public void testSetMinTempTherm() {
            assertEquals(2, aNode.getMinTempTherm());
    Sample code for the test suite I have created to run this case and another one:
    package testsuite;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    public class AllTests {
        public static Test suite() {
            TestSuite suite = new TestSuite("Test for testsuite");
            //$JUnit-BEGIN$
            suite.addTestSuite(CommunicationTest.class);
            suite.addTestSuite(NodeItemTest.class);
            //$JUnit-END$
            return suite;
    The problem is:
    When I run the test cases separetly, everything runs without any problems, but when I try to run the test suite I get the follwing ERROR:
    In the Failure Trace window I get *"java.lang.Exception: No runnable methods".*
    In the other winodw if I double click the error, a dialog pop up which says *"Method 'testsuite.AllTests' not found. Openning the test class"*.
    I have followed some tutorials to reach the point I am at now. Please help me proceed.
    Thanks in advance.

    I didn't know I don't have to extend. Here is how I modified the code after your advace and it worked. Any other good advaces?
    package testsuite;
    import static org.junit.Assert.assertEquals;
    //import junit.framework.TestCase;
    import org.junit.Before;
    import org.junit.Test;
    import system.NodeItem;
    public class NodeItemTest /*extends TestCase*/ {
         NodeItem aNode;
         @Before
         public void setUp() throws Exception {
              aNode = new NodeItem();
              aNode.setMinTempTherm(2);
         @Test
         public void testSetMinTempTherm() {
              assertEquals(3, aNode.getMinTempTherm());
    package testsuite;
    import org.junit.runner.RunWith;
    import org.junit.runners.Suite;
    //import junit.framework.Test;
    //import junit.framework.TestSuite;
    @RunWith(Suite.class)
    @Suite.SuiteClasses({
         CommunicationTest.class,
         NodeItemTest.class,
    //    TestClass3.class
    public class AllTests {
    //     public static Test suite() {
    //          TestSuite suite = new TestSuite("Test for testsuite");
    //          //$JUnit-BEGIN$
    //          suite.addTestSuite(CommunicationTest.class);
    //          suite.addTestSuite(NodeItemTest.class);
    //          //$JUnit-END$
    //          return suite;
    }Thanks again!

  • Sample Test Case templates for Reports

    Hi all,
    May I know , how the unit test cases would be for reports. Need Some Sample Templates ..Kindly Advice where Can I find..
    Edited by: 796797 on Mar 17, 2011 10:43 AM

    Here are some checklist
    Field Names
    Font Size acorss the report should be consistent
    columns should wrap up in a readable format
    decimal places for % fields.
    Decimal places for quantity fields.
    Reports should have grid lines, this will be helpful from a readability standpoint
    Right align the measures along with the associated headers
    The sub-total text
    No column headers should be underlined
    Backend filters at the top on the right
    Header/Footer
    Download to PDF and Excel and Print HTML
    "Check 1. Prompts sequence
    2. datatype of prompts - drop down or multiselect
    3. default values and
    4. report results returned after selecting any prompt"
    "Run the report with some filter values and see if filters are working.
    Access the Report and try to Modify the report request by selecting the modify link, include new fields and remove some default fields
    Save the report
    Validate the calculations on calculated fields.

Maybe you are looking for

  • Nothing happens when i try to open itunes 10.6.3.25

    Windows 7 - 32 bit. Absolutley nothing happens with iTunes - no error message, just nothing at all. The folder that contains the .exe file appears in Task manger as "running", but nothing happens. Have tried reinstalling etc.

  • Mobile device is broke

    i keep getting this message. error writing to file; c;program files/common files/apple/mobile device support/bin/distnoted.exe. verify that you have access to that directory? can anyone help me im on vista i had to uninstall itunes and stuff now i ca

  • I phone 4 has changed settings to require double clicking to open applications and cannot scroll the screen anymore.

    My I phone 4 was working okay for the 4 months I had it, then all of a sudden the settings changed. I now have to highlight an item and then double click on it for it to open. It's impossible to try typing anything. I cannot scroll the screen either,

  • Inconsistency in the log files

    Hi, I ran 2 requests today and the log file that comes up are from some other program run in May 2008. Any clues?

  • Grab is no longer in applications

    Today Grab disappeared from all user accounts. It is not in the applications>utility directory. In the user account that had Grab on the Dock, the Grab icon is still there but with a question mark over it. Any idea how to get that utility reloaded? I