Deleting unit test run instances

I've been running BPEL/SCA unit tests in WebLogic SOA Suite 11g. However I can't see any way to delete the instances. It's taken quiet a few tries to get my test to pass, and I'd like to clear out the old junk. Do I need to undeploy the SOA application, or is there an easier way to delete the unit test runs?

JDeveloper version 11.1.1.2.0
WebLogic version is 10.3.2.0
I'm not quite sure how these correspond to R1 or PS1.
Also, I can't easily get access to the raw database connection to run pl/sql procedures. Our DBAs like to guard those sorts of things. ;-) I'm more looking for something in the Enterprise Manager where I can delete test run instances, similarly to how I can delete process instances. (you know... check a check box and then click a "delete" button kind of thing).
-Nathan

Similar Messages

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

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

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

  • Unit test runs perfectly fine with NUnit but fails when run from TestExplorer

    Hello all,
    I have a TestProject, Harmony.Tests. In there, I have a method AddApplicationEvent()
    which calls another method Send(InvokeRequestMessage requestMessage) which calls a webservice (OperationHandlerBrokerWebService). 
    The code snippet looks like this. This is not the complete code but a part where we are calling the web service. It fails on the underlined Italic line of code.
    OperationHandlerBrokerWebService brokerService = new OperationHandlerBrokerWebService();
    brokerService.UseDefaultCredentials = true;
    brokerService.Url = address;
    brokerService.Timeout = timeoutInMilliseconds;
    byte[] serializedResponseMessage = brokerService.InvokeOperationHandler(serializedRequestMessage);
    The same test works and passed fine when I ran it with NUnit, but failed with following exception when I tried to run it from TestExplorer. 
    Test Name: AddApplicationEvent
    Test FullName: N4S.Harmony.Tests.CaseManagement.HarmonyFacadeTests.AddApplicationEvent
    Test Source: d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\CaseManagement\HarmonyFacadeTests.cs : line 665
    Test Outcome: Failed
    Test Duration: 0:00:00.296
    Result Message:
    SetUp : Message returned System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid token for impersonation - it cannot be duplicated.
    at System.Security.Principal.WindowsIdentity.CreateFromToken(IntPtr userToken)
    at System.Security.Principal.WindowsIdentity..ctor(SerializationInfo info)
    at System.Security.Principal.WindowsIdentity..ctor(SerializationInfo info, StreamingContext context)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
    at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
    at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
    at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
    at System.Runtime.Serialization.ObjectManager.DoFixups()
    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
    at N4S.Forms.OperationHandlerBroker.AMessage.DeserializeMessage(Byte[] serializedMessage)
    at N4S.Forms.OperationHandlerBroker.WebServiceServer.BrokerService.InvokeOperationHandler(Byte[] serializedInvokeRequestMessage)
    --- End of inner exception stack trace ---
    expected: <0>
    but was: <1>
    Result StackTrace:
    at N4S.Harmony.Tests.TestHelper.InvokeOperation(OperationHandler handler, OperationHandlerInput input, Boolean expectedToWork) in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 136
    at N4S.Harmony.Tests.TestHelper.LoginAsUser(String username, String password) in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 394
    at N4S.Harmony.Tests.TestHelper.Login(TestUserName requestedUser) in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 377
    at N4S.Harmony.Tests.TestHelper.LoginAsAdvisor() in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 230
    at N4S.Harmony.Tests.CaseManagement.HarmonyFacadeTests.Login() in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\CaseManagement\HarmonyFacadeTests.cs:line 76
    at N4S.Harmony.Tests.CaseManagement.HarmonyFacadeTests.SetupTest() in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\CaseManagement\HarmonyFacadeTests.cs:line 67
    I am not sure what causing the issue. I checked the Credentials, Windows Identity during both the test run and there is no difference. Please advise !!
    Thanks,
    Deepak

    Hi Tina,
    Thanks for your reply. 
    I do have NUnit adapter installed. I even noticed that the test runs fine with NUnit GUI and also if I run it through Resharper Test Explorer window. 
    As you can see in the image above the same test is passed when I ran it from Resharper Unit Test Explorer window but fails when I ran it from Test Explorer window. I also captured the information on fiddler. 
    There was a significant difference in the Header Content length. Also under the User-Agent property the protocol versions are different. 
    Not sure why VSTest ExecutionEngine is picking a different version.
    The UnitTest in question is calling a webservice method which in turn calls a method from another referenced project. 
    Web Service class
    using System;
    using System.Web.Services;
    using N4S.Forms.OperationHandlerBroker.Server;
    using NLog;
    namespace N4S.Forms.OperationHandlerBroker.WebServiceServer
    /// <summary>
    /// The operaton-handler broker service.
    /// </summary>
    [WebService(Description = "The N4S Forms Operation-Handler Broker Web-Service.", Name = "OperationHandlerBrokerWebService",
    Namespace = "N4S.Forms.OperationHandlerBroker.WebServiceServer")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class BrokerService : WebService
    { /// <summary>
    /// Calls <see cref="HandleRequest"/>. Updates performance-counters.
    /// </summary>
    /// <param name="serializedInvokeRequestMessage">the binary-serialized <see cref="InvokeRequestMessage"/></param>
    /// <returns>the binary-serialized response message</returns>
    [WebMethod(BufferResponse = true, CacheDuration = 0, Description = "Invokes the requested operation-handler and returns a binary-serialized response-message.", EnableSession = false)]
    public byte[] InvokeOperationHandler(byte[] serializedInvokeRequestMessage)
    logger.Trace(Strings.TraceMethodEntered);
    PerformanceMonitor.RecordRequestStarted();
    InvokeRequestMessage requestMessage = (InvokeRequestMessage) AMessage.DeserializeMessage(serializedInvokeRequestMessage);
    InvokeResponseMessage responseMessage;
    try
    responseMessage = HandleRequest(requestMessage);
    PerformanceMonitor.RecordSuccessfulRequest();
    catch (Exception)
    PerformanceMonitor.RecordFailedRequest();
    throw;
    finally
    PerformanceMonitor.RecordRequestEnded();
    logger.Trace(Strings.TraceMethodExiting);
    return AMessage.SerializeMessage(responseMessage);
    UnitTest snippet
    OperationHandlerBrokerWebService brokerService = new OperationHandlerBrokerWebService();
    brokerService.UseDefaultCredentials = true;
    byte[] serializedResponseMessage = brokerService.InvokeOperationHandler(serializedRequestMessage);
    Please advise.
    Thanks,
    Deepak

  • Cost Element Deletion Job test run getting run time error

    How can I make test run of cost element deletion job in background?

    Hi Riyas,
    Deleting Cost Elements in the Background
    If you want to delete many cost elements, the checks for dependent data take some time. You should therefore carry out the deletion in the background at times of minimal system usage.
    To do so, choose Background processing.
    Choose Execute and answer the confirmation prompt with Yes.
    ( T Code: KA04 - Individual cost element deletion )
    ( KA24 - Collective Deletion)
    Enter a job name in the dialog box.
    Enter a date and time for the planned start or select Immediate start.
    You can also define from which date and from which time no more starts should occur.
    Choose Confirm to leave the dialog box. In the next dialog box, choose Save.
    The R/3 System deletes the cost elements at the date specified.
    To check the current status of the job, choose System
    Status of Background Job T Code: SM37 and Execute.
    Regards,
    Pavan Kumar Arvapally

  • SSDT: Creation of localDB instances from project file - Sql Server Unit testing purposes

    I have a SqlServer Database Project in my solution (VS2013 Professional) which has a corresponding test project with some stored procedure unit tests. Currently I am using a LocalDB and as far as I understand a local database instance is created in C:\Users\[User]\AppData\Local\Microsoft\Microsoft
    SQL Server Local DB\Instances\Projects and the specific .mdf file referenced in the SQL Server Object Explorer is in C:\Users\[User]\AppData\Local\Microsoft\VisualStudio\SSDT\[ProjectName]. The unit tests run fine on my local machine which I have developed
    the project on.
    My issue is we have a box which is configured to check out the project file from our version control, build the project using ms build commands and then run the unit tests using VSTest.Console. Usually with C# Test projects we reference the test project
    dll and the unit tests run fine. I have referenced the dll for the test project with the stored procedure unit tests in. 
    With the Stored Procedure unit tests however we get this exception: 
    Initialization method [project].[spTest].TestInitialize threw exception. System.Data.SqlClient.SqlException: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. The specified LocalDB instance does not exist.
    After some digging I have realised that the localdb instance seems to be created when the project itself is created in VS not when it is built. Specifically when the localdb is first used and if you look into the appData folder of the test machine there
    is no corresponding mdf file for the project.  
    The question is is there a way to set up a localDB instance on the new machine if all you have the project file? The only purpose of the project on the test machine is to run the unit tests, no other development purposes. VS2013 Professional is installed
    on the test machine but a solution only using config file changes or MSBuild/VSTest commands would be preferable.
    I realise you could change the connection string to an actual test database and run the unit tests of that but we quite like the localdb approach for the testing. I also realise that you could potentially transfer the mdf file (haven't tested this solution)
    as well, though I would prefer if there is a solution to my initial question. 
    http://technet.microsoft.com/en-us/library/hh234692.aspx
    http://msdn.microsoft.com/en-us/library/hh309441(v=vs.110).aspx
    I have been reading up on LocalDB and I assume a automatic LocalDB is created when you create a sql server database project (ie on localdb first use). I have tried adding the database creation to the test project config file but do not really know where
    to go from there. The second link does not really specify when the named localdb will be created if you add the config items and I am not even sure if that is an actual solution.  Here's my test project config file for reference
    <configSections>
    <section name="system.data.localdb" type="System.Data.LocalDBConfigurationSection,System.Data,Version=4.0.0.0,Culture=neutral,PublicKeyToken=[PublicKeyToken]"/>
    <section name="SqlUnitTesting_VS2013" type="Microsoft.Data.Tools.Schema.Sql.UnitTesting.Configuration.SqlUnitTestingSection, Microsoft.Data.Tools.Schema.Sql.UnitTesting, Version=12.0.0.0, Culture=neutral, PublicKeyToken=[PublicKeyToken]" />
    </configSections>
    <system.data.localdb>
    <localdbinstances>
    <add name="SimpleUnitTestingDB" version="11.0" />
    </localdbinstances>
    </system.data.localdb>
    <SqlUnitTesting_VS2013>
    <DatabaseDeployment DatabaseProjectFileName="..\..\..\SimpleUnitTestDB\SimpleUnitTestDB.sqlproj"
    Configuration="Release" />
    <DataGeneration ClearDatabase="true" />
    <ExecutionContext Provider="System.Data.SqlClient" ConnectionString="Data Source=(localdb)\Projects;Initial Catalog=SimpleUnitTestDB;Integrated Security=True;Pooling=False;Connect Timeout=30"
    CommandTimeout="30" />
    <PrivilegedContext Provider="System.Data.SqlClient" ConnectionString="Data Source=(localdb)\Projects;Initial Catalog=SimpleUnitTestDB;Integrated Security=True;Pooling=False;Connect Timeout=30"
    CommandTimeout="30" />
    </SqlUnitTesting_VS2013>
    Thanks in advance for any response. Sorry if there is any misunderstanding, while I have been using VS to develop from the start, this is the first time I have used a Sql Server Database Project. 
    Regards,
    Christopher. 

    Yes, you can create a LocalDB instance manually. You use the SqlLocalDb utility, see here:
    http://technet.microsoft.com/en-us/library/hh212961.aspx
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Unit Tester: Manually Deleting Old Unit Test Results

    Oracle, as you know, there isn't currently a way to delete the results of previous unit test runs.
    Well, those previous test runs are giving us a very annoying slow response times in the Unit Tester GUI with some of our tests, because of the amount of time the interface is taking to load the results of previous tests.
    For example, one of our unit tests in particular took the interface 1 minute, 12 seconds to simply "bring up", even though we weren't on the Results tab. As time goes on (as a unit test has been run more and more), the interface goes slower and slower with that unit, because of the increasing number of unit test results.
    I know you're working on a long-term solution, but to assist us with working with these kind of tests now, can Oracle please provide us with the SQL statements necessary to delete all of a given unit test's test results from the unit tester repository, please? It would make my programmers so much less annoyed with working with these particular unit tests and the Unit Tester, in general.
    I'm guessing that if I go spelunking through the Unit Tester's repository tables, I could probably figure it out, but I'm looking for the "Oracle-sanctioned" way, I guess.
    Thanks.

    Hi,
    here are the necessary commands to delete your tables:
    Make a backup of your tables(!)
    create table t_ut_test_impl_results as select * from ut_test_impl_results ;
    create table t_ut_test_impl_val_results as select * from ut_test_impl_val_results ;
    create table t_ut_test_results as select * from ut_test_results ;
    create table t_ut_suite_results as select * from ut_suite_results ;
    create table t_ut_suite_test_results as select * from ut_suite_test_results ;
    -- delete data from tests
    delete from ut_test_impl_val_results ;
    delete from ut_test_impl_results ;
    delete from ut_test_results ;
    -- delete suite results
    delete from ut_suite_test_results ;
    delete from ut_suite_results ;
    This scripts are not Oracle sanctioned.
    Use them on your on risk
    HTH
    Oliver

  • Unit Test exports between different SQL Developer versions

    Hi,
    I am having problems with trying to export and import unit test suites between SQL Developer versions. I can't find any documentation in this area. We have a number of unit test suites exported as XML files from version 2.1.1.64, and below are combinations of things I have tried:
    - I have tried to import a unit test suite into version 3.0.0.4 that was exported from version 2.1.1.64 and get the error "Import failed. unexpected null value". I expect that this is probably an unsupported action due to repository changes between the two versions - should I be able to do this?
    - I have upgraded the repository with unit tests in it. The unit tests run perfectly well in the upgraded repository. However, if I try to export any suites or individual tests, I get an error "Export failed.". A XML file is created but with what looks like only the header part of it.
    - I have created a new unit test suite in version 3.0.0.4 and this exports successfully.
    - I have gone into each test of a suite in the upgraded repository and made a change so that I can perform a commit. When I do an export, this does then work successfully.
    Therefore it appears that something is not carried out by default when the repository is upgraded, but this fixes itself if the test is amended and committed in the upgraded repository. Although this may be a workaround, we have 100's of tests and is not something I really want to do. Has anyone else experienced this and got any recommendations for this?
    Thanks, Pierre.

    Hi,
    I am having problems with trying to export and import unit test suites between SQL Developer versions. I can't find any documentation in this area. We have a number of unit test suites exported as XML files from version 2.1.1.64, and below are combinations of things I have tried:
    - I have tried to import a unit test suite into version 3.0.0.4 that was exported from version 2.1.1.64 and get the error "Import failed. unexpected null value". I expect that this is probably an unsupported action due to repository changes between the two versions - should I be able to do this?
    - I have upgraded the repository with unit tests in it. The unit tests run perfectly well in the upgraded repository. However, if I try to export any suites or individual tests, I get an error "Export failed.". A XML file is created but with what looks like only the header part of it.
    - I have created a new unit test suite in version 3.0.0.4 and this exports successfully.
    - I have gone into each test of a suite in the upgraded repository and made a change so that I can perform a commit. When I do an export, this does then work successfully.
    Therefore it appears that something is not carried out by default when the repository is upgraded, but this fixes itself if the test is amended and committed in the upgraded repository. Although this may be a workaround, we have 100's of tests and is not something I really want to do. Has anyone else experienced this and got any recommendations for this?
    Thanks, Pierre.

  • 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

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

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

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

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

  • 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?!

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

  • Unit test: Want to run test case after async test function?

    Hi,
    On flash builder i decide to do unit test for my .as class. I did few unit test. Working fine. But now i want to write unit test for the following case:
    I wrote a [Test(async)]  function to find the loading class working fine or not.Its working fine.
    On load complete i am able to read the data and store the data on the test class variables.
    I want to run all other [Test] case function after completion of the xml load function.How to do that?
    Thanks,
    Siva

    Hi,
    On flash builder i decide to do unit test for my .as class. I did few unit test. Working fine. But now i want to write unit test for the following case:
    I wrote a [Test(async)]  function to find the loading class working fine or not.Its working fine.
    On load complete i am able to read the data and store the data on the test class variables.
    I want to run all other [Test] case function after completion of the xml load function.How to do that?
    Thanks,
    Siva

Maybe you are looking for

  • Cache issue in OBIEE 11.1.1.6.0 dashboards

    Hi, last week I disabled cache in EM and restarted BI Services but OBIEE keep hitting presentation server cache (BI server cache is purged manually). I restarted BI services couple of times but dashboards keep hitting presentation server cache. I edi

  • Problems with application builder

    Hi, I have a little problem to distribute my application. When you install the program, a direct link to the program appears in Start Button, but not the link with the "uninstall" program. To uninstall the program is neccesary to go to Start->Setting

  • How to redirect to portal iview from a stand alone webdynpro application

    Hello, I need to able to navigate from a standalone webdynpro application, for which I do not want to create Portal iview, to a Portal iview with some data. Please let me know how can I pass the string value and how to navigate. Thanks, Vinit

  • Word Wrap Around?

    Okay. I'm editing my MA thesis and my chair wants me to use "word wrap around" and "left justify." I have never heard of either of these. He works in word and does not know anything about Pages as he has never used it. I can say the same thing about

  • Error in Step 4.5 of the create page

    Hi all, In running the CREATE PAGE applications... At Step 4.5 On debugging at this step the Search page opens but on clickin on the Create Employee details it returns an error page as follows..... Can any one pleae help me out in solving this issue?