Unit test cases using sqldeveloper2.1.1

hi,
currently i am using sqldeveloper1.5.1. Using this version i am not able to write unit test cases.
i need to write unit test cases which is possible using sqldeveloper2.1.1.
can i connect my oracle database using sqldeveloper2.1.1. oracle version information as follows
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi.
please suggest which sqldeveloper zip file is suitable for this.

whatever unit testcases we can write for a procedure using sqldeveloper2.1.1.
can it be executed in sqlplus environment.
or it needs sqldevelopertool only to execute these testcases.

Similar Messages

  • Error encountered while running a test case using MTM

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

    Hi Kiyaruh,
    Base on the error message, the error is threw by internet explorer.
    Does it have the same issue when access that web site/page in IE directly or it just occurs when run tests through MTM?
    What’s the version of your browser? You may try it with other browser and check whether it has same issue.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unit test cases run twice on TFS2012 build server

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

    Hi DHegde,  
    Thanks for your post.
    You’re using TFS 2012 Update 4 and VS 2012 Update 2?
    Please manually build your project and run test project using VS 2012 on your client, then check the test case result in Test Result window, the test cases be executed as expect? 
    If everything works fine when manually run your test project using VS 2012, which build process template selected in your build definition? If it’s not TFS 2012 default build process template, please try use default build process template in your current
    build definition, then queue build definition and view test result in TFS Build log again.
    If you’re using default TFS 2012 build process template in your current build definition, but still received the same issue, how did you configure the test in your build definition, please share the detailed configure screenshot(s) here.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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 - problems using £ sign

    Sorry if this has come up before...
    We're using the SQL Developer unit testing functionality in what we thought was a fairly straightforward manner.
    We use a startup to set up some data, run a procedure with specific values for the inputs, compare the outputs with expected values, and then use a teardown to remove the data.
    All works well except for one output field. For reasons I won't bother to go into, it's a varchar2 field that returns an amount, in the format £9.99 - i.e. with a UK pound (£) sign at the start of the string.
    Whenever I try and input an expected value including the pound sign, the whole value gets converted to null - so, £9.50 gets saved as an expected value of null, which then, of course, causes the test to fail (unless we set it to ignore the value which somewhat defeats the point of testing !)
    Playing around a little, it seems that characters such as $ and # are ok, but any string that uses £ anywhere within it (e.g. 876f£ffe) gets saved as null.
    Has anyone else encountered this or have a workaround/fix ?
    (SQL Developer version 3.2.20.09, running on Windows XP 32-bit)

    Have you tried opening a new browser window as the new user? That is:
    1. Hold Shift and right click IE shortcut
    2. Select Run as different user
    3. Enter the new user's credentials
    4. Browse to the SharePoint site
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Accessing Resource file in a bundle from unit test case

    Hello All,
    Here is my problem . I have a plugin app that is loaded in of the host application. I have a resource plist file in the plugin. I access the resource using the api [[[NSBundle mainBundle[ bundleWithIdentifier:@"MyPluginIdentifier"] pathForResource@"Resource_Name" ofType:@"Resource_Type"]. This I get path of the resource file perfectily, but it fails when I do unit testing. I am using SenTest framework kit for unit testing. When I access the resource by using above api, I get null value. Since the running executable will be otest which is located at /Developer/Tools folder, So how to access my resource file in unit test. Should I need to hard code for the Path? Any inputs are highly appreciated.
    Thanks,
    Naveen

    So there is some important stuff realized by the UIKit UIApplicationMain function that has to be reproduced in the setup of the test.

  • Creating junit test cases using the reflection API

    In order to use the reflection API to get information about a *.java file's class name and methods, I need to compile the *.java file first, and then get info through the *.class file. Am I right?
    Eclipse, the Java IDE, can create junit test cases for java files the user selects right after the *.java files have been created, and even before the *.java files have been compiled by the user. I guess Eclipse internally compiles the java files before creating JUnit test cases for them. Does anyone know about it? Thanks.

    Let me explain my problem in more details.
    Given any java source tree, my program is supposed to create junit test cases for each class using java reflection. My approach is to scan through the source tree to keep the list of classes available, then compile all the java files in the given source tree, then do Class.forName() to load them to get their methods... Obviously I don't know what classes I will have at compilation time. I create a temp_classes directory as the output directory for the given source tree java files, and I add temp_classes to my classpath when I strart up my own program. However, that won't work..
    D:\eclipse\workspace\cmpe271_hw4\classes>java -classpath ..\classes;..\temp_classes Test
    javac -classpath .\temp_classes; -d .\temp_classes @temp_classes\javalist.txt
    java.lang.ClassNotFoundException: Factory
    java.lang.ClassNotFoundException: InvalidDateFormatException
    java.lang.ClassNotFoundException: MyUtility
    java.lang.ClassNotFoundException: Storage

  • Can you please provide an example of test case using "Standard Data Output Cascade Mode"?

    Hi,
    I have tried creating a test to check  the "Standard Data Output Cascade Mode". In Vivado 15.1, Ultrascale,  it is working when I have data_width=1. However, if I modify the data_width to greater than 1, then I am not seeing the proper value for .CASCADE_ORDER_B.  Is this expected?
    The RTL is top.v. The addr_width=16, data_width=4. The synthesized vm netlist, test_syn.vm. It contains  8 BRAMS but the .CASCADE_ORDER_B parameter setting in the vm netlist is:
    .CASCADE_ORDER_B("FIRST"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("MIDDLE"),
    .CASCADE_ORDER_B("LAST"),

    Hi 
    The parameter "CASCADE_ORDER_B" specifies the order of the cascaded block RAMs from the bottom to the top of the chain
    for port B.
    So the attribute value FIRST represents the bottom BRAM with respect to cascading. You can cross these attributes by opening synthesized design and observing the property of each BRAM.
    Thanks,
    Vinay

  • Running a JUnit test case using Ant in Eclipse

    If I have a "JUnit", how can I run it using "Ant" in Eclipse?
    Thanks.

    Right-click on the ant build script and select "Run as ant build". But why bother? Eclipse has its own JUnit runners

  • Using Mockito for writing ATG test case

    Hi,
    Does anyone have idea about writing unit test case for ATG using Mockito? I came across following discussions while goggling -
    https://forums.oracle.com/thread/2531576
    http://stackoverflow.com/questions/9373782/using-powermock-to-obtain-the-atg-nucleus-in-testing-results-in-npe
    But need a help in setting up Nucleus and other dependencies (DAS, DPS, DSS etc.) and a sample test class for a droplet using Mockito.
    Thanks.

    Forget it. Found ExternalizableHelper.toBinary and fromBinary.

  • Error in juit test case for struts2 action class using StrutsSpringTestCase

    Hi
    I am getting some error when i am running my Struts2 Action class junit test case using StrutsSpringTestCase class (which is in struts2 junit plugin 2.1.8 version)
    Here is the code....
    package ipl.admin.action.test;
    import java.sql.Timestamp;
    import java.util.Date;
    import org.apache.struts2.StrutsSpringTestCase;
    import ipl.admin.action.RoleMasterNewAction;
    import ipl.admin.beans.RoleMasterNewBeanRemote;
    import com.opensymphony.xwork2.ObjectFactory;
    public class RoleMasterNewActionTest extends StrutsSpringTestCase {
         //XmlBeanFactory bf = new XmlBeanFactory(new ClassPathResource("applicationContext.xml", getClass()));
         RoleMasterNewAction action = new RoleMasterNewAction();
         RoleMasterNewBeanRemote roleMasterBeanNewRemote;
         public RoleMasterNewBeanRemote getRoleMasterBeanNewRemote() {
              return roleMasterBeanNewRemote;
         public void setRoleMasterBeanNewRemote(
                   RoleMasterNewBeanRemote roleMasterBeanNewRemote) {
              this.roleMasterBeanNewRemote = roleMasterBeanNewRemote;
         public void setUp() throws Exception {
              super.setUp();
              ObjectFactory.setObjectFactory(new ObjectFactory());
         public void testDoSomeThing() throws Exception {
              //System.out.println(bf.getBean("loginIntercepter"));
              assertTrue(action.doSomeThing());
    }I am getting error for this code. Below is the error details.
    2010-05-03 17:28:14,671 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-default.xml]
    2010-05-03 17:28:14,859 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts-plugin.xml]
    2010-05-03 17:28:14,999 INFO [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] - Parsing configuration file [struts.xml]
    2010-05-03 17:28:15,015 WARN [org.apache.struts2.config.Settings] - Settings: Could not parse struts.locale setting, substituting default VM locale
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-Lookup
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-label
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-headings
    2010-05-03 17:28:15,015 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-messages
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.comman-setup
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.common-errors
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-label
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-lookup
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-headings
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-jndinames
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-jndinames
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-labels
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.birthCertificate.resources.birth-headings
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.admin.resources.admin-alert
    2010-05-03 17:28:15,046 INFO [org.apache.struts2.config.BeanSelectionProvider] - Loading global messages from ipl.comm.resources.form
    2010-05-03 17:28:15,140 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory] - Initializing Struts-Spring integration...
    2010-05-03 17:28:15,171 FATAL [org.apache.struts2.spring.StrutsSpringObjectFactory] - ********** FATAL ERROR STARTING UP STRUTS-SPRING INTEGRATION **********
    Looks like the Spring listener was not configured for your web app!
    Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext.
    You might need to add the following to web.xml:
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener> But already i have the listener configurations in my web.xml .
    Thanks in advance...

    I guess it wasn't reading the right web.xml file.
    You may prove it by deleting your web.xml file (don't forget to make a backup), and then run the test again to see whether the error is the same.

  • Create Unit Test Vectors From The Unit Test Configuration Window

    I have recently been using more test vectors in the unit test framework.
    The principle works well but if you are in a unit test and decide you need a test vector you must:
    Close the unit test configuration
    Create a test vector
    Set up your vector (entering values and data types, which is much easier if you could see the actual unit test case)
    Close the vector configuration window
    Open the unit test configuration
    Assign the new vector file to the unit test
    Now you can assign vectors to test inputs
    This seems convoluted and forces unnecessary context switchs.
    I propose that at a minimum, you should be able to create a new vector file and launch it's configuration without leaving the unit test configuration window. I suspect that the whole process could be streamlined even further though.
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

    Oops supposed to be ideas exchange, sorry!
    James Mc
    ========
    CLA and cRIO Fanatic
    wiresmithtech.com/blog

  • Run test case from command line

    Hi  All,
    Working environment : VS 2013 professional 
    Project type : Unit test project for (Windows 8.1 and Windows phone 8.1)
    I have a set of unit test cases and want to run it on command line.I tried MSTest.ext and vstest.console.exe for running test case but not succeed.  
    command :  MSTest.exe /testcontainer:path of project dll
    command :  vstest.console.exe path of project dll
    Type of Error
    Error : Unit test case for windows store and windows phone app can't be run outside appcontainer. 
    Error : No tests to execute
    command :  MSTest.exe /testcontainer:path of appx
    command :  vstest.console.exe path of appx
    Error : root certificate error 
    I just want to run windows 8.1 and windows phone 8.1 run test cases from command line.
    Thanks in advance.

    Hi vicky2468,
    Based on your issue, as far as I know that if we want to run unit test for windows store and windows phone app using mstest.exe or vstest.console.exe in command line, you will need to execute the .appx instead of the dll in command line.
    In addition, I tried to run the appx for unit test in command line,
    but I found that I also get the same issue as yours. I could not execute the appx for unit test in command line successfully.  But if we run it with VS IDE in Test
    Explorer windows, it seems that it works fine.
    So I suggest you can submit a feedback for this issue, to get the issue confirmed and diagnose by product team, would you please create connect report for it? You will get email notification for update.
    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx
    When you submit the connect, I suggest you can provide your project for product team so that product team will
    be better help you solve this issue.
    If you submit it, please share me the link here, I will help you vote it. I think we could get the latest information
    from the product team experts. Of course, if I get any latest useful information, I will update it here.
    Thanks for your understanding.
    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 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.

  • SQL Server Unit Tests

    Hi SQL Server Experts,
    About SQL Server Unit Tests (vide
    http://msdn.microsoft.com/en-us/library/jj851203(v=vs.103).aspx), please help with inputs on pros and cons of SQL Server Unit Tests. Any ideal recommendation?
    Thanks

    Blog on the topic: "Database unit testing is used for feature testing of your individual modules (stored procedures, triggers or user defined functions) that is to say your module performs as expected.  Apart from that, it is also used to ensure that
    subsequent changes to the module does not break any functionality.
    At first glace, it looks like this would add overhead to create vs. doing adhoc testing, but Visual Studio lets you automatically generate T-SQL code stubs to test the database object which you can customize as per your need.
    Visual Studio provides Database Unit Test Designer which you can write/define T-SQL scripts (also insert SQL assertion in this code) that calls your module and then evaluates the execution result against the different test conditions which indicates your
    modules execution success or failure."
    LINK:
    SQL Server Unit Testing with Visual Studio 2010
    >Please pardon my ignorance as I am coming back to SQL Server after a brief gap.
    You may have to brush up with T-SQL prior to using a sophisticated tool like this:
    http://www.sqlusa.com/bestpractices/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Maybe you are looking for