How to run a particular test from a set of CodedUI tests?

Hi,
I have designed custom framework from which we can decide which test case needs to be run or not. When I mark a test case as Yes (which means this testcase needs to be execute), how can i execute only those test case alone from Visual Studio?
Here, I have created the test scripts for all the above test cases in a single CodedUI test file and i need to execute the TC_0003 as i marked the Run as Yes only for TC_003 in the framework. Can you please help me to do the same?
Thanks  in Advance
Selvaraj C
Selvaraj

Hi Selvaraj,
>> I have designed custom framework from which we can decide which test case needs to be run or not. When I mark a test case as Yes (which means this testcase needs to be execute), how can i execute only those test case alone from Visual Studio?
Do you mean you want to execute the special test? As far as I know, Ruby provides a framework in its standard library for setting up, organizing, and running test called Test::Unit. Test::Unit provides the function that running single tests. The link below
shows the details:
# Ruby Programming/Unit testing
http://en.wikibooks.org/wiki/Ruby_Programming/Unit_testing
I am not sure what do you mean by “custom framework”, do you want to design custom framework? In my option, it seems to be much complex. The steps below might be useful to you:
1. Store the tests in a csv file, and query the test which need to execute from the csv file, for this, you could turn to the link:
https://social.msdn.microsoft.com/Forums/en-US/9664862a-4302-4754-a915-2beceff364d5/how-to-stop-sequential-execution-of-data-driven-method-in-coded-ui
2. Get the test name, and execute the test from the command-line. The link below shows the details about the command-line:
# MSTest.exe Command-Line Options
https://msdn.microsoft.com/en-us/library/ms182489(VS.100).aspx
3. Write a script to run the command-line
If I misunderstood you, please feel free to let me know.
Best Regards,
Edward
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.

Similar Messages

  • How to run a openssl command from a java program

    Hi All
    Please suggest on how to run a openssl command from a java program.
    I am using this
    Runtime runtime = Runtime.getRuntime();
    runtime.exec("openssl pkcs8 -inform der -nocrypt test.der result.pem");
    This is suppose to take test.der as input and create result.pem.
    There are no errors but the file result.pem isnt created.
    Thanks in Advance

    First off is that openssl command correct? Should it be this instead:
    openssl pkcs8 -inform der -nocrypt -in test.der -out result.pem
    Try out your openssl command within a command prompt so that you know that it works ok. I think the command line you specified waits on stdin (well it does for me).
    After that.....
    runtime.exec creates a Process object. If you do this:
    Process openssl = runtime.exec("....")
    then you can examine the return code from openssl to see the exit code - for instance if the input file does not exist then exit = 1. You can test for this with Java
    Alternatively you could get the stderr from the process and look inside it - if it is 0 length then all is good, if it has some text in there then it has likely failed. You could then throw an exception and include the stderr output in the exception messgae. You may need to experiment with this, runnig it first when openssl is happy then running it again when openssl is upset.
    M

  • How to run a Concurrent Program from the back end?

    Hi,
    How to run a Concurrent Program from the back end?
    Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
    If yes, then Please Give reply how to write the code
    Thanks in Advance,
    Bharathi.S

    This is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
    221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
    235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
    HTH
    Srini

  • HT5463 how i can block particular number from my contacts list

    how i can block particular number from my contacts list please guide me because even true caller software is also not supporting iphone

    As Ocean20 said, there is no official function that does this built in. What you could do however is to find an app that mute calls that come from "blocked" numbers.

  • How to run non-customised report from command prompt to gen trace file?

    Hi
    how to run non-customised report from command prompt to gen trace file?
    EBS R12 RUP6.
    RHEL5
    rgrds

    Hi,
    See (Note: 285497.1 - Rwrun.sh Does Not Generate Trace Output Using TRACEOPTS in Command Line) and/or (Note: 737445.1 - R12 Concurrent Requests Run Forever; rwrun Errors REP-50125) for the command you need to use.
    Thanks,
    Hussein

  • How to run the 9I report from the forms menue 9i

    how to run the 9I report from the forms menue 9i.
    Shehzad Latif

    Hi,
    1. create a Reports Object node in Forms. If you use teh same object node name then you can write generic code that works in all Forms
    2. Get the whitepaper about Forms/reports integrtion
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    Frank

  • How to remove a particular gadget from windows7 image

    sir how to remove a particular gadget from all other existing gadgets in windows 7sp1 image, can we do it by DISM?

    Hi,
    If the above method doesn't work, you can try pre-configuring sidebar gadgets using unattend.xml, which can be used to override Sidebar default settings.
    To disable Windows sidebar gadgets when windows load, you can configure this following in your unattend.xml.
    <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Sidebar" publicKeyToken="31bf3856ad364e35" language="neutral"
    versionScope="nonSxS" processorArchitecture="x86">
    <SidebarOnByDefault>false</SidebarOnByDefault>
    </component>
    </settings>
    </unattend>
    For detailed information, you can refer to
    http://blogs.msdn.com/b/sidebar/archive/2007/03/08/pre-configuration-of-sidebar-gadgets-using-unattend-xml.aspx
    Or try customize windows using sysprep tool
    http://www.sevenforums.com/tutorials/286053-system-preparation-tool-use-customize-windows.html
    Andy Altmann
    TechNet Community Support

  • Urgent: How to exclude a particular value from the selection in the infopac

    How to exclude a particular value from the selection in the infopackage.
    Ex: not load for cost center 10000
    Thank you,
    sam

    Hi Sam,
    You cannot do this directly as exclusion, but you can include all other values, even as ranges and thus exclude the particular value, else you can also try to do this by writing a routine.
    Hope this helps...

  • How to run unix shell script from java web applet

    hi all
    i have created one java applet. my apache web server is on unix server.
    i have created one shell script in same directory where my .class and .htm files reside...
    how to run this shell script from applet? it should search this .sh file on server and not on the client browser machine...
    thanks in advance

    I suppose you could make the shell script into a CGI, configure the server to execute CGIs, and then make the applet open the URL of that CGI.

  • How to run "WCF Workflow Service Application" (C# project) using "WCF Test Client" in VS 2013 ?

    I have created a WCF Workflow Service Application of C# project.
    How to run the project using WCF Test Client directly from VS 2013 by doing F5 ?
    Iam using VS 2013 (.NET 4.5.1). It throws an exception to compile c# expressions.
    Can we set any settings in web.config file ?
    Please provide the solution.

    Bhanu Prakash T,
    It surprises me that building a simple WCF Workflow Service Application project in VS 2013 is giving you this problem. That project template should result in a file with an extension of ".xamlx" being generated. With .Net 4.5 and C#, that XAMLX
    file will contain CSharp* activities for the expressions that you specified in the workflow definition. By default, those expressions will be compiled when you use "F5" to execute the workflow.
    Or are you self-hosting the WorkflowServiceHost and loading the XAMLX file yourself using ActivityXamlServices.Load and then creating and managing the WorkflowServiceHost object instance yourself? You must can do the compilation yourself by following these
    examples -
    https://connect.microsoft.com/VisualStudio/feedback/details/741537/cannot-self-host-a-workflow-service-using-c-expressions or http://wf.codeplex.com/discussions/444990.
    Jim

  • How to run a particular case continuously in event based state machine architecture.

    I am making a program using event based state machine architecture, it is running as expected whenever i am generating an event, case structure corresponding to that event executes.
    we are taking some measurements from oscilloscope e.g. i am having one boolean button for rise time whenever i am pressing that that button it displays the value of rise time, it displays only once( since i have generated an event on that boolean button so it executes only once and displays value for one time and then comeback to timeout state) but in our program what we want, we want it to update value continously once that button is pressed.
    Now for a time being i have placed while loop on the case corresponding to rise time but this is not the right approach.
    since i am using state machine architecture( event based ), i am not getting how to run particular case continuously ,or if there is any other better architecture that i can use to implement the same application.
    Attached below is the program.
    Attachments:
    OScilloscope .zip ‏108 KB

    Say, in the attached program, when the user selects Autoset, it inserts corresponding state (Autoset) and now if you want this state to run again and again, probbbly you can again insert Autoset state while executing Autoset state... ohhh its confusing... check the picture below (A picture is worth a thousand words):
    1. Based on user selection, insert Autoset state.
    2. Re-insert Autoset state again and again while executing Autoset state.
    3. Now to come out of this loop, based on appropriate event generation, insert any other state AT FRONT (equivalent to Enqueue Element At Opposite End).
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • URGENT: How to run a Java program from a different directory?

    Hi.
    How do I run a Java program from a directory that the file is not located in? So lets say im in c:\Java. But the file is in c:\Java\abc\efg\.
    What would be the command to run the Java file from c:\Java.
    I can't remember it and I need it asap.
    Cheers.

    If the class you are trying to run is MyApp.class, try
    c:\Java\>java -cp abc\efg MyAppThe actual classpath you specify will depend on whether or not MyApp.class is in a package (I've assumed it isn't) and whether or not any 3rd party jars are involbed (I've assumed not).
    Edited by: pbrockway2 on Apr 1, 2008 6:42 PM
    The command arguments read as "Run the MyApp class using as a classpath abc\efg relative to here (c:\Java)".

  • How to run an XML Report from Oracle Forms 10G

    Hello Friends,
    I am in need of showing a xml report output through a button press trigger in Oracle Forms10G.
    I have designed the report in XML Publisher and the report looks fine.I found few scripts useful in running the Oracle Report from Oracle forms10G like Run_Report_Object.But I am not aware of any script that could run a XML report and show the output directly from a Form.
    All I want is to run a XML report from an Oracle Form with a button press trigger and show the output in an html version.
    Can this be achieved?
    If so, Kindly advise as this is an immediate work.
    Regards,
    Badrul.

    Hi,
    If I am not wrong the XML publisher is same as BI publisher ...
    There is one document which explains how to integrate using web service
    You want to check this
    http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
    or you can also try web.show_document ..

  • I need to know how to get a particular photo from my iPhoto library that is backed up on Time Machine.

    I just backed up my whole computer on an external drive with Time Machine.  I wanted to clean off my old files from my computer, but I didn't want to erase them until I knew I could go back and get particular items from the back-up.  For example if I clean out my iPhoto libraries, how would I go get the libraries once they are on the external drive.
    I want to clean out my photos without having to put them all on CD's.  Can I use an external drive as my drive I save everything to not just for a system back-up.  Or is there a better way to store my photos rather than CD's so I can clean-up some memory space on my internal drive.

    ttown wrote:
    I just backed up my whole computer on an external drive with Time Machine.  I wanted to clean off my old files from my computer, but I didn't want to erase them until I knew I could go back and get particular items from the back-up.
    No, No, No, a thousand times, no!
    Pardon the dramatics, but don't do that.  Time Machine will, sooner or later, delete the backup copies of anything that's no longer on your Mac. 
    Plus, of course, if you delete the originals, you no longer really have backups (backup = an extra copy in case something happens to the original). 
    Your best bet might be to get a larger internal HD for your Mac.  Second best would be to get another external HD, format it for a Mac, and move some stuff (perhaps your entire iPhoto library) to it, and let Time Machine back up both your internal HD and the new external.

  • How to delete a particular data from 3 arrays

    hello,
    i have a program that works like this.....
    import java.io.*;
    public class NewMain {
    BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
    String [] Type= new String[10000];
    int [] Num= new int[10000];
    float [] Price= new float[10000];///////
    and i am reading some of the data into these arrays
    so if i want to delete a particular data from the arrays how do i do that
    and if i want to delete pants from that file and enter the text again how do i do that.? any idea?....
    e.g if the file contains
    shirt
    32
    56.5
    pants
    56
    45.9

    Ashish.Uppin wrote:
    hello,
    i have a program that works like this.....
    import java.io.*;
    public class NewMain {
    BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
    String [] Type= new String[10000];
    int [] Num= new int[10000];
    float [] Price= new float[10000];///////
    and i am reading some of the data into these arrays
    so if i want to delete a particular data from the arrays how do i do that
    and if i want to delete pants from that file and enter the text again how do i do that.? any idea?....
    e.g if the file contains
    shirt
    32
    56.5
    pants
    56
    45.9
    Buddy, it seems to me that you are describing data that belongs together -- a class. You are probably better off with one arraylist of objects of this class, each object having a String type variable, an int num variable, and a float price variable, make that a double price variable.
    For examples of arraylists in action, please see the Sun java tutorials.

Maybe you are looking for