Is it possible to run test suite B based on test Suite A?

There are 2 test suites:
A & B
I want to run the test suite B only when test suite A is successful.
Please give me some hints how to achieve this.

There isn't any official way to do this at this time. Pre-release we supported this but tools like FlashBuilder and some other interface points needed to know, before the testing began, how many tests they were expecting and that sort of derailed us.
However, if you want to know how to do this in a quick and dirty sort of way, and you don't mind doing a little work, here is an approach you can refine.
First, create yourself a static class or a singleton which implements IRunListener. Objects of this type can receive updates as tests run, fail, etc. So in your object you could keep track of any failure conditions which were important decision points. Call the addListener() method of the FlexUnitCore and pass your object in.
var core:FlexUnitCore = new FlexUnitCore()
core.addListener( mySpecialSingletonListener.getInstance() );
This will register your object to receive the updates I mention above. Next step, create a new runner which extends Suite. So, for example PotentiallyIgnoreMeRunner extends Suite.
Inside of here you are going to add a new function which I have provided here called ignoreRecursively:
protected function ignoreRecursively( notifier:IRunNotifier, description:IDescription ):void {
  if ( description.isTest ) {
    notifier.fireTestIgnored( description );
  } else {
    var children:Array = description.children;
    for ( var i:int=0; i<children.length; i++ ) {
      ignoreRecursively( notifier, children[ i ] );
Basically, it will cause each test in this suite to be marked as ignored in the output and will not execute it.
Then you will need to override the protected runChild() method to do something like this:
override protected function runChild( child:*, notifier:IRunNotifier, childRunnerToken:AsyncTestToken ):void {
  var mySpecialSingleton:MySpecialSingleton = MySpecialSingleton.getInstance();
  //Here you will need to call some function that accepts the current testClass and decides if it should be run or ignored
  if ( mySpecialSingleton.shouldIRunThisSuite( testClass ) ) {
    super.runChild( child, notifier, childRunnerToken );
  } else {
    var description:IDescription = describeChild( child );
    ignoreRecursively( notifier, description );
    childRunnerToken.sendResult();
Almost done, decorate your suite classes to use your new runner instead of ours:
[Suite]
[RunWith("some.package.PotentiallyIgnoreMeRunner")]
public class SuiteB {
Finally, make sure you include a reference to the PotentiallyIgnoreMeRunner somewhere in your application. Metadata is just a string to FlashBuilder and it will not automatically know to include the PotentiallyIgnoreMeRunner in the final swf file.
I just did a quick prototype and it will successfully ignore all tests based on the result of another.
Mike

Similar Messages

  • I have a PPC based software ... Is it possible to run it in intel based?? I have a iMAC OS X Snow Leopard 10.6.8.  Thanks

    I have a PPC based software ... Is it possible to run it in intel based?? I have a iMAC OS X Snow Leopard 10.6.8.  Thanks

    Their answer was this ...
    The version for GNX4 MACOSX is only for PPC based Mac. There is no Intel version as the product was discontinued before Intel based MAC came out.
    I guess I should give up, hehehe...
    Thanks

  • MTM Test Suite creation based on test suite in the same tree

    Hello all,
    I'm using MTM to manage validaion
    I have Root test suite and several sub-test suite for different revisions
    Hierarchy is following:
    ReleaseTestSuite
    Version 1
    Version 2
    Version N
    After first validation cycle (Version 1) I have several passed\failed\active test cases and I would like to add in Version 2 test cycle ONLY failed and active test cases from Version 1
    Is it possible using MTM? Or it needs external tool?
    Thanks,
    Victoria

    Hi Victoria,
    Thank you for posting in MSDN forum.
    As far as I know that when we add test case from a test suite to another test suite, we can add test cases through query, we can use query to base on workitem's properties to retrieve workitems, however, the status of passed\failed\active is
    the test point's status, which is not the workitem. So we could not base on that status to query workitems.
    I suggest that you could add test cases base on test cases' IDs, we could add many test cases with this way. 
    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.

  • Is it possible to run/create a report based on two databases

    Hi,
    We are in the process of upgrading the system. Half of the data are currently in one database and others are in different. Is there any way I can make changes to my current reports two get data from both of the datasources.
    (Both database has simillar data structure).
    We are using oracle9i database and reports9i.
    Thanks,
    Dean.

    Hi Dean,
    You can use a database link to query from the multiple databases. I do it all of the time.
    Martin

  • IF I RUN A EDITING WITH PREMIERE ELEMENTS TEST VERSION, WILL BE POSSIBLE TO SAVE THE WORK WITHOUT THE MARK  AFTER THAT I BUY THE LICENCE? THANKS

    IF I RUN A EDITING WITH PREMIERE ELEMENTS TEST VERSION, WILL BE POSSIBLE TO SAVE THE WORK WITHOUT THE MARK  AFTER THAT I BUY THE LICENCE? THANKS

    NUNU
    Media cache files are not involved in the removal of the Adobe watermark from the project.prel file from a tryout.
    Just a re-enforcement mention...you cannot remove the Adobe watermark from a tryout "saved" exported product; whereas, you can from a saved/closed project file (project.prel).
    By exported product, I mean a burn to disc in the tryout or the Timeline of the tryout exported to a file saved to the computer hard drive.
    In the case of removing the Adobe watermark from the tryout project.prel, classically you delete the rendered files (Timeline Menu/Delete Rendered Files) in the purchased program. In no way is media cache involved in this. Some of us have found that there was an automatic removal of the Adobe watermark resulting from just opening the tryout project.prel file in the purchased program.
    Please review and consider.
    Thank you.
    ATR

  • Possible to run soa suite without admin server?

    Hi,
    I'm wondering if it is possible to run the SOA components on a managed server without the admin server running. I intended to shutdown the admin server in production but when I do that I get errors in my (managed) soa server. I believe this was possible previously. Why does it need the admin server?
    version is 10.3.3

    Hi,
    do you mean in weblogic domain without running admin server you were able to run managed(soa) servers???
    Without admin server how Managed servers gets start?
    Though there is a concept in weblogic server called MSI mode,in that case managed servers can be running withut admin server, but very first time you have to start Admin server followed by Managed servers.
    Thanks,
    Deba

  • Is it possible to run this Oracle based application ???

    Hello All,
    I have Oracle Forms/reports 9.0.4.1.0 installed on my windows XP.
    I am running Oracle based application from this box.
    here is the url for it:
    http://localhost:8889/forms90/90servlet
    Is it possible to run this Oracle based application on different PC on network through above URL?
    If yes, how to configure or set up this.
    Regards,
    DN

    From port number I assume you're using Developer suite. Remember that standalone OC4J is provided by Oracle for testing purposes only. You shouldn't use that in Production environment, where you should install Application Server, eventually the standalone Forms and Reports services (without infrastructure).

  • Is it possible for a mac to run across a Windows based server such as in a school, and still be able to access all networked folders? I have been told that macs can only read down a certain number of folders

    Is it possible to run a mac on a windows based server? We have a server based on Windows 7 in our school, and our techies are reluctant to let me buy a mac as they say macs can only read a number of folders deep, which would preclude me from accessing shared folders on our servers. Is this true, and is there a way round this? I would eventually like to get a suite of macs, but because all our resources are on the server, I have to be able to access them.
    Thanks for any help,
    Mike

    I have found that both Linux and Mac (unix) are capable of reading "deep" folders while win 32 will have issues, your it people are clearly wrong.  I run a network with both win/mac. And as long as the win servers/pc's that have shares are set to allow apple file sharing in their folder properties.   And the macs are set to allow smb there should absolutely no trouble with you accessing anything across the platforms, heck, from a Mac to a win pc on some occasions you don't even need to include a "domain" name to log on to, and you can create aliases and make your own shortcuts etc... So you don't have to manually connect each time you boot up etc... But that's all personal preferences I suppose.
    All I can tell you is that, I do it on a daily basis managing a small business. So your answer is yes you can.

  • Is it possible to run Posture using ISE 1.2 without NAC Agent provisioning?

    Is it possible to run Posture using ISE 1.2 without NAC Agent provisioning?
    -My customer does not want to push NAC Agent installation on BYOD type of computers (non-managed by the company computers).
    -The requirement is to check for posture only company owned wired, wireless, and VPN connected Windows computers. The rest of the endpoints should be considered as posture incompliant, and limited access to the network should be allowed.
    -No certificates are used.
    -I’ve configured the required posture check, and it all works fine if a PC has NAC Agent manually installed (without ISE Client Provisioning). However, when I use a PC without NAC Agent, it is redirected to Client Provisioning Portal and is stuck there as Client Provisioning is deliberately not configured in ISE.
    -If I remove Posture Remediation Authorization Profile that does URL redirect, the posture does not work.
    -For now I'm testing it on wired endpoints.
    Is there a way to configure ISE to fulfill the listed above requirements?
    Any ideas would be appreciated.
    Thanks,
    Val Rodionov

    Everyone who finds reads this article,
    I'm answering my own quesiton "Is it possible to run Posture using ISE 1.2 without NAC Agent provisioning?"
    The answer is Yes.
    After doing research and configuration testing I came up with a solution, and it works fine for wired and VPN connections. I expect it to work on wireless endpoints as well.
    ISE configuration:
    Posture General Settings - Default Posture Status = NonCompliant
    Client Provisioning Policy - no rules defined
    Posture Policy - configured per requirements
    Client Provisioning (under Administration > Settings) - Enable Provisioning = Enable (it was disabled in my first test)
    Authorization Policies configured as regular posture policies
    The result:
    After successful dot1x authentication posture redirect happens. If the PC does not have NAC Agent preinstalled, the browser is redirected to Client Provisioning Portal and a default ISE message is displayed (ISE is not able to apply and access policy... wait one minute and try to connect again...). At the same time, the endpoint is assigned NonCompliant posture status and proper authorization policy is applied. This is what I wanted to achieve.
    If NAC Agent was preinstalled on the PC, after successful dot1x authentication the NAC Agent pops up and performs posture check. If posture is successful, posture compliant authorization policy is applied. If posture check fails, NonCompliant posture status is assigned and posture non-compliant authorization policy is applied. Which is the expected and needed result.
    The only part that is not perfect it the message displayed to the end-user when posture is about to fail. I did not find a place to change the text of that message. I might need to open TAC case, so this file can be manually found and edited from CLI (root access).
    Best,
    Val Rodionov

  • Is it possible to run a java application within a web browser?

    Hello everyone here! I have a question about running a java application within a web browser and I would appreciate it very much if anyone here can give me some answers.
    I have a standalone java application written with AWT. Basically this free application lets users to select spectral lines from a big file based on some criteria and plot those selected lines. Yes, it is a very simple application. Now I want to run this application within a web browser so that users don't need to download the application from the ftp site and thus don't need to install in their machine. Is it possible to run this application within browser? If yes, can we get the same plotting function as we run the application separately and where should I start out?
    Thanks in advance!
    kuilian

    Please see the signed applet discussion group for details of how to avoid the applet security restrictions. You can sign the applet, or use the policy file containing {AllPermission} for testing purposes (though not suitable for widespread deployment).
    Regards
    Matthew

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

  • [svn] 4637: Update config testsuite on blazeds/ trunk to run mxunit tests for a configuration if there are any mxunit tests found in the configuration test directory .

    Revision: 4637
    Author: [email protected]
    Date: 2009-01-23 04:40:16 -0800 (Fri, 23 Jan 2009)
    Log Message:
    Update config testsuite on blazeds/trunk to run mxunit tests for a configuration if there are any mxunit tests found in the configuration test directory. Change some things around in the mxunit build.xml to make this possible, mainly allow things like test directory, reports directory etc. to be passed in as ant properties.
    Add browserServer.jar to the qa-regress-sdk.zip file used for regression runs.
    Update blazeds/trunk to use the latest qa-frameworks.zip.
    Checkintests: passed
    Modified Paths:
    blazeds/trunk/qa/apps/qa-regress/build.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/config/build.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/build.xml
    blazeds/trunk/qa/resources/frameworks/qa-frameworks.zip

    Just checked but could only find this thread Unable to run ADFBC JUNIT Test Classes with JDEV11G 11.1.1.6
    As it's also dealing with junit and 11.1.1.6.0 you might want to read it.
    Timo

  • Is it possible to run a Labview executable on a Windows 8 Phone?

    If I create an executable from Labview,will it be possible to run it on a Windows 8 phone?
    Solved!
    Go to Solution.

    No, as Mike already said.
    The reason being that a LabVIEW executable contains binary code that is compiled for the x86 CPU architecture and accesses the Win32 API. Windows Phone typically runs on ARM or RISC CPUs and did only provide a very limited Win32 subset in the past. With the new Windows RT technology it actually moved even further away from Win32 compatibility as it's entire architecture is based on the .Net technology.
    So even if you happen to get an Intel Atom based Windows Phone device which would be x86 compatible it couldn't work, since a LabVIEW executable is a Win32 portable executable format not a .Net bytecode image.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Is it possible to run a JAR?

    My high school Computer Science teacher thinks it might be possible to run a JAR file in windows and have it run the java program (command promt type) in windows. I do not believe this is possible but he wanted me to check and see.
    Also is there any other way to run a java program in the form of class files without going through the DOS prompt or a compiler? Duke dollars if you know a way.

    when you install the JRE it should associate jar files
    with the JVM, hence double-clicking on them will run
    them. but....well... strictly they become associated with javaw
    to make a jar an executalbe jar it needs a
    'main-class' attribute in the manifest. That is make
    a directory that goes in to the jar called META-INF
    and in there a file called manifest.mf (just a plain
    text file).thought i had already mentioned that!
    test from the command line with
    java -jar myjarfile
    or
    javaw -jar myjarfiledouble-click issues an identical command - if it doesn't work one way then it won't work the other
    the difference between the java and javaw is that the
    javaw will not open a DOS window. true!

  • Is it possible to run Add-On application seperately from Windows?

    Hi,
    Is anyone know if it is possible to run the Add-On from Windows with SAP B1 client ? For some reasons, i can't install the Add-On my server now during my development, but i need my QA tester to test these existing finished Add-Ons. Can I just pass all compiled binary files to my tester and let him run the Add-On from his PC and test it in his SAP B1 client? I tried, but it always gives me application crash error. But the add-on runs very well after installed in the the SAP B1 or under visual studio developping mode.
    Thanks,
    Lan

    Hello
    Yes it is possible. You can run the addon the same parameters as you run in the development environment. You can use the same connectionstring used during development.
    1. Copy you addon into a folder
    2. Create a bacth file (start.bat) with notepad, and enter there your addon name and the connectionstring
    3. Run the batch file.
    It will start and connect to sap b1.
    I am also using this method to test the addons .
    Regards
    J

Maybe you are looking for