Using FB 4.7 Premium cannot run unit tests

I have a licensed version of 4.7 Premium but cannot run unit tests. The message I get says "This feature requires a Flash Builder Premium License".
I have uninstalled Fb 4.7 and then downloaded and reinstalled. Still the same issue.
I have verified I am running FB 4.7 Premium with this code snippet.
if (Class(this.systemManager.getDefinitionByName("licence.LicenseHandler ")))
     Alert.show("This SWF was compiled WITHOUT a Flash Builder Pro license")
else
     Alert.show("This SWF was compiled WITH a Flash Builder Pro license")

Hello, anybody still answering posts here or is everybody just working on MAX?!

Similar Messages

  • Error when running unit tests

    Hi,
    I'm getting the error 'Marker id <num> not found' about 9 times out of 10 when I try to run unit tests in Flash Builder 4.5 Premium. This is happening on a new (2 weeks old) spark + mx project, with the unit test classes created in Flash Builder using the built-in tools. Using Run As or Debug does not seem to make a difference to whether the error occurs or not. I have to just keep retrying until it runs correctly.
    I am using the AS Code Coverage plugin and the FlexUnit 4.1.
    Please help as this is driving me mad!
    Thanks,
    Adam

    Here you go.  Looks like it shrunk down the libraries image though.

  • Cannot run Register Test on communications task through Hardware Diagnostics Tool

    Cannot run Register Test on communications task through Hardware Diagnostics Tool. Please help. Thanks.

    Hi,
    Insert the created CD into your optical drive and power off your PC. Power on the PC and boot up the CD containing the standalone diagnostics.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • Running Unit Test from test manager that run bat file from command line

    Hi ,
    I am trying to run Jsystem (java framewotk) from command line using runScenario.bat thru unit test that i associated to test in test manager.
    the idea is that when i ran the automated test  from MTM - it will run the the unit test that will run the appropriate test case in java.
    i wrote the code like this : 
    using System;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    namespace UnitTestProject3
    [TestClass]
    public class UnitTest1
    [TestMethod]
    public void TestMethod1()
    try
    String command = "c:\\JSYSTEM\\runner\\runScenario.bat
    c:\\Users\\ryeshua\\Source\\Workspaces\\Auto1\\my-tests-project\\target\\classes scenarios\\feature1 RoeySetup.xml ";
    System.Diagnostics.ProcessStartInfo procStartInfo =
    new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command);
    procStartInfo.RedirectStandardOutput = true;
    procStartInfo.UseShellExecute = false;
    //procStartInfo.CreateNoWindow = true;
    System.Diagnostics.Process proc = new System.Diagnostics.Process();
    proc.StartInfo = procStartInfo;
    proc.Start();
    string result = proc.StandardOutput.ReadToEnd();
    Console.WriteLine(result);
    catch (Exception objException)
    // Log the exception
    and when i ran it from visual studio it worked perfect. and update  the Jsystem logs of the junit test in the jsystem/runner/log folder.
    but when i added it to associated test and ran it from MTM - it pass but it does not update  the logs in jsystem folder.
    the problem that i dont know what is not working. i cant see the output of it when i ran from mtm but can see when i ran from VS.
    i am using VS 2013 Pro with MTM 2013.
    please advice
    Roey

    Hi Roey,
    Thank you for posting in MSDN forum.
    Based on your issue, could you please tell me how you generate the log file under the jsystem folder?
    Generally, I know that when we run unit test from VS IDE, the file will be saved into the local machine. But when we run unit test from MTM, the unit test method will be run on the test agent machine, so the file will be saved into the test agent machine.
    Therefore, I suggest you could check if you did not see the updated logs file in jsystem folder on the test agent machine.
    In addition, I suggest you could try to copy this unit test project on this test agent machine and then run the unit test method using mstest.exe in command line and then check if you can update the logs file.
    https://msdn.microsoft.com/en-us/library/ms182489.aspx?f=255&MSPPError=-2147217396
    If you have any updated message about this issue, please tell me.
    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.

  • [svn:osmf:] 10655: Removing the hack we came up with for using the MAST plugin in the Flex unit tests .

    Revision: 10655
    Author:   [email protected]
    Date:     2009-09-28 13:52:01 -0700 (Mon, 28 Sep 2009)
    Log Message:
    Removing the hack we came up with for using the MAST plugin in the Flex unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/.actionScriptProperties
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/MediaFrameworkTests.as
    Removed Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/mast/
        osmf/trunk/plugins/MASTLib/

    Hi OMAW8,
    It would be better if you could share us the detailed error message in English.
    Do you mean that you could run your test in your build agent machine? If so, I doubt that it would be related to the TFS build. I mean that maybe it is not the test issue.
    Please share the detailed error in English, and then post this issue to the TFS-build forum would be better for this issue since it works well in build agent machine.
    Form link:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=tfsbuild
    Reference:
    https://msdn.microsoft.com/en-us/library/hh691189.aspx
    Best Regards,
    Jack
    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.

  • Running unit tests on inline hardware custom device

    How to do unit tests for Inline Hardware Custom Devices?
    I get this error after creating a unit test.
    Possible reason(s):
    Cannot connect to the target. Please ensure that the VI Server setting is enabled and deployed to the target. Also, make sure that the port number is correct and that this machine is allowed to connect through VI Server.

    wegunterjrASI, 
    I have a few follow up questions for you to gain a better understanding of your application: 
    1). What are you using to do the unit test (NI’s unit test framework or VI tester from JKI)?
    2). What are you conducting the unit test on (RT Driver or something on the host machine)? 
    3). Are the unit test VIs under the target in the LabVIEW project? 
    4). Are you able to run a simple unit test? 
    Screenshots are always appreciated. 
    Regards, 
     

  • Run unit test in comand line

    Hello everybody,
    I try to run existing unit test in comand line:
    ututil -run -test -name ROW_COUNT -repo unit_test_repos -db finch
    where
    ROW_COUNT - simple unit test
    unit_test_repos - unit test repository, which i create using tutorial (http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/sqldev/r30/sqldev_unit_test/sqldev_unit_test_otn.htm)
    finch - owner of procedure, which i try to test
    after execution this command i receive this message:
    C:\sqldeveloper\sqldeveloper\bin>ututil -run -test -name ROW_COUNT -repo unit_test_repos -db finch
    SEVERE Error: No Repository was found on the selected connection, you need to create a repository. - oracle.dbtools.unit_test.UtRepositoryManager.openConnectionWithChecks(UtRepositoryManager.java:214)
    Unable to open repositoryafter that i try to execute command with another parametres (instead of finch i use sys-user), but receive equal result.
    what`s wrong?
    in Help document i find next:
    The following example runs a unit test named AWARD_BONUS in a Windows environment where SQL Developer is installed under Program Files. (Note that test and suite names are case sensitive for the command-line interface.) This example uses the repository connection for user unit_test_repos and runs the test as user fred.
    cd c:\Program Files\sqldeveloper\sqldeveloper\bin
    ututil -run -test -name AWARD_BONUS -repo unit_test_repos -db fred"
    fred is connection which exist in oracle sql developer interface? what kind of privilegies should fred has?
    In oracle sql deevloper exist several connection to another servers. i`t can be reason of error?
    I trying in oracle sql developer interface select finch as manager of unit tests (tools - unit_test - manage_users to the next i select in dropdown list "finch" and granted needed privilegies for him) , but result was`t changed.
    thanks.

    It looks like you need to spark up SQL Developer, create a repository connection and assign that in the Unit Test Menu. It will walk you through creating the repository and then you can refer to that from the command line.

  • SQLDEV 2.1.0.63 gives ORA-904 on UT_TEST_RESULTS when running unit test

    Hi, I am trying to create and run my first unit test using sqldeveloper 2.1.0.63 but it fails with followkng error:
    ----- Error Stack Dump -----
    ORA-00904: "TEST_USER_NAME": invalid identifier
    ----- Current SQL Statement for this session (sql_id=b9c4zd8fqmykv) -----
    select utr_id, name, status, message, run_date,coverage,test_user_name from ut_test_results where ut_id = :ID order by run_date desc
    table ut_test_results indeed does not have this column test_user_name:
    SYS@madlnlcs11/map SQL> DESC UT_SP5.UT_TEST_RESULTS
    Name Null? Type
    UTR_ID NOT NULL VARCHAR2(40)
    UT_ID NOT NULL VARCHAR2(40)
    NAME NOT NULL VARCHAR2(120)
    STATUS NOT NULL VARCHAR2(20)
    MESSAGE VARCHAR2(2000)
    COVERAGE NOT NULL NUMBER(1)
    RUN_DATE NOT NULL TIMESTAMP(6)
    CREATED_ON NOT NULL TIMESTAMP(6)
    CREATED_BY NOT NULL VARCHAR2(120)
    UPDATED_ON NOT NULL TIMESTAMP(6)
    UPDATED_BY NOT NULL VARCHAR2(120)
    how come there's this mismatch? The Unitest repository was created by the same sqldeveloper !
    regards,
    Andre

    This seems to be coming from the repository being marked as Shared repository. Appearantly sqldeveloper is issueing a different query, referencing TEST_USER_NAME, in that case. After I did a DESELECT AS SHARED REPOSITORY and drop/recreate of the repository the error ORA-904 no longer occurs.

  • Trouble Running Unit Tests on Device

    I am having trouble running multiple unit test on my device. I am using JMUnit as part of NetBeans IDE 5.5.1. I can get the tests running in the emulator but when I try them on the phone they don't work. Under my project's properties->Application Descriptor->MIDlets->MIDlets in the Suite, the 'jmunit.framework.cldc11.TestSuite' comes up in red with the error 'Some MIDlet classes are invalid'. I am using CDLC 1.1 and MIDP 2.0. Any ideas?

    wegunterjrASI, 
    I have a few follow up questions for you to gain a better understanding of your application: 
    1). What are you using to do the unit test (NI’s unit test framework or VI tester from JKI)?
    2). What are you conducting the unit test on (RT Driver or something on the host machine)? 
    3). Are the unit test VIs under the target in the LabVIEW project? 
    4). Are you able to run a simple unit test? 
    Screenshots are always appreciated. 
    Regards, 
     

  • Visual Studio locks when bringing up "Run Unit Test" vs2013

    2013 Visual studio 2013.
    I had been running a few simple unit tests on a large project.   Then 2013 stopped responding and said  -- please contact Microsoft.
    most time the test explore never comes up.  I tried the test with a tiny project .  still same issue
    this is my tiny project
     Using System.Configuration;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    namespace UnitTestProject1
        [TestClass]
        public class UnitTest1
            [TestMethod]
            public void TestMethod1()
                Assert.AreEqual(1,1);
            [TestMethod]
            public void TestMethod2()
                Assert.AreEqual(2, 1);
    Howard Davis

    Hi Howard Davis,
    Could you tell us the real VS2013 version you were using? We have to make sure that it supports the unit test project.
    >>most time the test explore never comes up.  I tried the test with a tiny project .  still same issue
    We could open the test explorer window under Test menu->Windows.
    Before you run your test, please clean and rebuild your test project, and make sure no any warning or error, and then run it from the test explorer window, check the result.
    In addition, you would check your task manager, and make sure that it is free before you run your tests. I mean that we have to make sure that it is not the performance issue.
    But if a simple Assert method still doesn't work in your side, I doubt that it is your VS IDE issue.
    Run your VS as the admin, check the result.
    If possible, please repair your VS, please also install the VS2013 update 4, and then create a new test project, check the result.
    Best Regards,
    Jack
    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.

  • Got an eror while running unit tests on jsf.

    Hi
    i checked the latest verison from cvs and also downloaded the latest build of glassfish for linux.
    While trying to run the unt tests, i got the followig error when i ran "test.appserver" under jsf-ri.
    i made sure that the server was runing at the time when i ran the test and have the correct versions of cactus,junit and html-unit.But the test resulted in the folowing error:
    run.cactus.test.appserver:
    deploy:
    [copy] Copying 1 file to /home/kc161609/glassfish/domains/domain1/autodeploy
    run.cactus.test:
    [junit] Running com.sun.faces.application.TestActionListenerImpl
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 9.755 sec
    [junit] Testsuite: com.sun.faces.application.TestActionListenerImpl
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 9.755 sec
    [junit] Testcase: testProcessAction took 5.845 sec
    [junit] Caused an ERROR
    [junit] (java.lang.reflect.ReflectPermission suppressAccessChecks)
    [junit] at com.sun.faces.cactus.TestingUtil.invokePrivateMethod(TestingUtil.java:48)
    [junit] at com.sun.faces.cactus.StoreServletContext.setServletContext(StoreServletContext.java:58)
    [junit] at com.sun.faces.cactus.FacesTestCaseService.setUp(FacesTestCaseService.java:147)
    [junit] at com.sun.faces.cactus.ServletFacesTestCase.setUp(ServletFacesTestCase.java:160)
    [junit] at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
    [junit] at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
    [junit] at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
    [junit] at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
    [junit] at org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
    [junit] at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
    [junit] at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
    [junit] at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
    [junit] at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
    [junit] at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
    [junit] at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
    [junit] at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
    [junit] at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [junit] at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:256)
    [junit] at java.security.AccessController.doPrivileged(Native Method)
    [junit] at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    [junit] at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:289)
    [junit] at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:172)
    [junit] at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:384)
    [junit] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:273)
    [junit] at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:560)
    [junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:530)
    [junit] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:234)
    [junit] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    [junit] at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:560)
    [junit] at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
    [junit] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    [junit] at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:560)
    [junit] at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:118)
    [junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    [junit] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:131)
    [junit] at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:560)
    [junit] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:530)
    [junit] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    [junit] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:214)
    [junit] at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:569)
    [junit] at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:350)
    [junit] at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:243)
    [junit] at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:248)
    [junit] at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:73)
    [junit] Caused by: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
    [junit] at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    [junit] at java.security.AccessController.checkPermission(AccessController.java:427)
    [junit] at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    [junit] at java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107)
    [junit] at com.sun.faces.cactus.TestingUtil.invokePrivateMethod(TestingUtil.java:45)
    [junit] ... 48 more
    BUILD FAILED
    /home/kc161609/javaserverfaces-sources/jsf-ri/build.xml:820: The following error occurred while executing this line:
    /home/kc161609/javaserverfaces-sources/jsf-ri/build-tests.xml:452: The following error occurred while executing this line:
    /home/kc161609/javaserverfaces-sources/jsf-ri/build-tests.xml:338: Test com.sun.faces.application.TestActionListenerImpl failed
    Total time: 2 minutes 27 seconds
    There is some "access denied exception"
    (java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
    [junit] java.lang.RuntimeException: java.security.AccessControlException: access denied")
    I think there is no problem with the build or the machine .I'm not sure what that problem is well,so please help me out with this error.
    Thanks
    Srinivas

    Hi,
    You got these errors because runInstaller can not start the GUI. There are 2 solutions, you can choose one:
    1. logout Gnome/Kde, login as oracle user, and run runInstaller again.
    2.open a new root terminal,
    a) run "xhost +" as root.
    b) run "su - oracle" switch to oracle
    c) run "export DISPLAY=:0.0"
    d) then run "./runInstaller" again.
    cheers.
    Ice

  • Unit Test code using wrong persistence unit

    In the midst of learning Maven, I created a simple application in which I am using JPA (Java Persistence 1.0.2) with EclipseLink implementation (2.0.2).
    Note: This is an Application Managed environment. So I manually control EntityManager's life cycle.
    The persistence.xml file used by the main source code is different from the one that unit test code uses. Main code uses an Oracle DB and the test code uses an in-memory Derby.
    Running unit tests was updating the Oracle DB (!) and I eventually managed to fix that by using two different persistence-units in the XML files.
    However, I don't understand why that fixed the problem. I manually create and shut down the entity managers and they are not running concurrently. I'm pretty sure Maven (or the way I set it up) doesn't mess up the resources (XML files). In fact by looking at Maven's debug output I can see it's using the right XML file for unit tests.
    Could someone enlighten me, please?

    Do you have both persistence.xml files on your classpath? If so, and they contain the same name for their respective persistence units, you should be getting a warning or error since they must have unique names. There is no way to tell which one you want to access otherwise.
    Best Regards,
    Chris

  • Unit testing PL/SQL used in APEX application

    question from my customer :
    I am developing an application in Oracle Application Express and am working on unit tests for the PL/SQL stored procedures and packages that are stored in the underlying database and that are used by the APEX application. These unit tests should run within the SQL Developer Unit Test framework.
    The problem is that some of the PL/SQL code stored in the database uses functions like NV('APPLICATION_ITEM') to access items in the apex application. These do not return any values when I try to execute the PL/SQL within the unit test framework, ie through the backend. While it is good that the NV function does not error, NULL do not really work well in my scenario either (for example when the result of this functions is inserted into a NOT NULL column of a table). I can think of a few workarounds, such as creating my own NV function inside the test schema to return desirable values, but nothing seems a really satisfactory solution. I just wonder if there is any best practice recommendation from Oracle for this scenario - how can I run code that uses APEX-specific functions through the back end. I could not find anything in the APEX documentation for this but I'd be interesting to know if there is any recommendation how to best deal with this case.
    I am using SQL Developer version 4.0.0.13.80

    User[[:digit:]*
    Your PL/SQL Package APIs are poorly designed.
    You need to take Tom Kyte's quote to heart:
    "Application come and application go, but data remains forever"
    In short, you need to separate your database processing code (the stuff you need to unit test) from front-end/middle tier code.
    (repetitiveness is for effect.. not rudeness.)
    As such, The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in APEX.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in .NET.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in JSP.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in Jive.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in Ruby.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in Perl::CGI.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in P9.
    The PL/SQL code that you need to 'UNIT TEST' must work without needing to run in <place latest and greatest thing here>.
    Again, I don't mean to sound rude.  I'm just trying to reinforce the idea that you need to separate database code from middle-tier/front-end stuff.
    Basically, you will need to separate all of your packages into multiple parts.
    a _CORE package (that will be unit tested) that does all the hard work
    an _APEX package for APEX infrastructure (this works with NV()/V(), etc.)
    a _NET package for .NET infrastructure when you need it
    a _JSP package for the JSP infrastructure when you need it
    a _JIVE package for the JIVE infrastructure when you need it
    a _<place latest and greatest thing here> for the <place latest and greatest thing here> when you need it.
    MK

  • Using SQLCMD variables in SQL Server Unit Test Project

    Is it possible to use SQLCMD variables in my SQL Server Unit Test Project? In my test initialize script I'd like to set a database name variable, something like this:
    :SETVAR MyDatabase "mydatabase"
    SELECT * FROM [$(MyDatabase)].[mytable]
    but I get syntax errors when I run the test. Any suggestions how I can get this to work.
    Result Message: Initialization method
    myTest.TestInitialize threw exception. System.Data.SqlClient.SqlException: System.Data.SqlClient.SqlException:
    Incorrect syntax near ':'..

    Hi Kevin,
    What is the error?
    This should work only thing i could see is no scheme specified.
    SQL Server uses dbo as default schema.
    In your case:
    :SETVAR MyDatabase "mydatabase"
    SELECT * FROM [$(MyDatabase)].dbo.[mytable]
    Also check your instance collation if its Case sensitive then specify database and table name as exact case.
    Example:
    :SETVAR MyDatabase "[mydatabase]"
    :setvar schemavar "[dbo]"
    :setvar tablevar "[mytable]"
    SELECT * FROM $(MyDatabase).$(schemavar).$(tablevar)

  • Does new type of unit testing in Flash Builder4 support ANT task ?

    Hi,
    I am using the new way of creating unit tests following this page http://help.adobe.com/en_US/flashbuilder/using/WS27ECA937-059A-4308-A2E2-F3A3AAB64337.html #WSF04FE993-D0BA-4a2b-BDF1-8B8ABF22E448, which is really easier and more efficient than old ways.
    But I then found that the old ANT task "flexunit" for running unit test not working any more.  So if I want to get the results of unit testing from a CI server, how could I do now?
    Thanks a lot
    Michael

    @Michael Lin89 - You can find information on using FlexUnit4 via Ant @ http://docs.flexunit.org/index.php?title=Ant_Task.  There has been a lot of information collected on the wiki as well related to the CI process.  You can see that info @ http://docs.flexunit.org/index.php?title=Continuous_Integration_Support.  There are also an assortment of community projects built to work with FlexUnit which you can check out on the community page @ http://docs.flexunit.org/index.php?title=Community_Projects. There is also a sample project for working with CI, Ant, Maven, and a few other technologies @ http://docs.flexunit.org/index.php?title=CI_Sample_Project_Information.
    Hope this helps to fill in the gaps as to what support we offer in terms of Ant and CI.
    -Brian

Maybe you are looking for

  • Wireless router and beige G3 question (OS 8.6 or 9?)

    I've purchased a Netgear 54 mbps wireless router to network my Macs. For now, the G4 tower and the 266 beige G3 are going to be connected through two of the hardwired ports until I can get an Airport card for the G4. The G4 is running Panther 10.3.9

  • Connecting iPod to another computer

    When I connect my iPod to a different computer, it gives the message that it will erase the iPod unless I click cancel. When I do that, the iPod does not show up in iTunes. I want to be able to play my music on that computer, so i've tried using shif

  • Error after deploying in oracle 9ias

    Hi, I built a Struts app with Jdeveloper (win 2000) and deploy it (using a ear file) first on Oracle 9ias (win 2000) and on oracle 9ias (LINUX). When I submit my first form, I've got this error under oracle 9ias(LINUX): [INFO] PropertyMessageResource

  • VssNullProver stopped after installing Update Rollup 3 for System Center Data Protection Manager 2012 R2

    I recently installed Update Rollup 3 for System Center Data Protection Manager 2012 R2. As part of the update I updated all DPM Agents, including the ones on our Hyper-V Servers (which are part of a cluster). I also rebooted every DPM Protected Serve

  • Up to 20mb

    So I go to the website and run a test and it says up to 20mb is available on my line I typed my number in. Phone bt and ask when I will get this they tell my I can not have it yet as my account is on an old system even though the checker when I typed