unit test: purge previous run

Hello
How can I remove the previous test runs? I tried tools-> repository purge but it deleted the unit tests as well, not only the results of tests :(

Thanks for your help,
Laurent

Hi Laurent,.

I'm afraid that this behavior is not supported in 2.1. It is however planned for a future release.

Kind regards
Philip.

Tags: Database

Similar Questions

  • Unit testing: why white spaces are added to the PL/SQL lines on each edition?

    Dear team of SQL Developer,

    Are you aware of this very annoying problem of the unit test is running: a space is added to each line of PL/SQL code with each unit test that is run?

    The length of each line of code continues to grow with each race...

    I wonder why is it and you have an existing reference to bug for this... Please let me know...

    Thank you

    Val

    Thank you, Gary!

    The bug was just connected:

    BUG 20061594 - UNIT TESTS: the UNWANTED SPACE CHARACTERS ADDED to THE SQL CODE

    I've updated the SR that white spaces are added after each change, and that it can be easily mistaken for each run (we open the editor for see/check, or simply to do an update before a new race), but the bug has already been created with a description of the problem of evil:

    "...

    Description of the problem

    ===================

    Spaces are added after each line of SQL in the Unit Test after each race. »

    Sorry about that... I hope that the bug will be updated with correct description before you guys accept it as a bug:

    "...

    Description of the problem

    ===================

    Spaces are added after each line of SQL in the Unit Test after each change. »

    Thanks again,

    Val

  • Run unit tests different projects

    Hello

    I would like to start automatically tests in several projects.

    Here's the scenario: given A, B, C,... independently developed projects and say the developer has introduced an amendment that affects the B and C and maybe other projects too. now, I would like to re - run all unit tests in A, B, C,... to see if the change results in errors in B, C, or any other project.

    I thought to create a master project containing all the tests of A, B, C,... in auto-complete files but: 1) auto-complete files must be added manually and I would have a general solution; (2) auto fill records appear to be buggy or at least that they do is refresh as expected; in any case, 1) already is a show-stopper.

    LabVIEW can be script? Other solutions?

    Thank you

    Peter

    Peter,

    P@Anand referred to in the screw of the API of the UTF... You can use them to load unit tests and run independently of the project.

    Norbert

  • Unit test: is there a way to make the dynamic query of the value of running after the boot process?

    I wonder why the dynamic value query is executed before the boot process? Logically, it makes sense to run after them.

    For example, I test a stored procedure that is supposed to delete a record, and I'd like to create this test report should be deleted as part of the startup process before execution of the stored procedure call to delete this test record. Apparently the dynamic query of value not returns not the test report in as long as the query parameter to call the stored procedure under test, which makes me think that is executed before the startup process of design...

    Please advise...

    Thank you

    Val

    As this thread does no traction/attention of the team of SQL Developer for a while, I had to submit a request for formal improvement on metalink:

    RE: 19834977 - IN THE UNIT TEST REQUEST TO ALLOW TO CHANGE THE ORDER OF EXECUTION OF THE START OF THE PROCESS

    Thank you

    Val

  • Control of canoe of unit tests in LabVIEW on ActiveX

    Hello

    I want to run the unit tests of canoe in LabVIEW using ActiveX.

    EnvVars and sysVars in canoe handling was not a big deal, and there are plenty of examples here.

    But the unit tests of handling is quite difficult. Canoe help file shows this way in the object hierarchy:

    I solved the problem with the help of vector Support. They sent me the following c# example:

                MApp CANoe.Application = new CANoe.Application ();
    CANoe.Configuration mConf = (CANoe.Configuration) mApp.Configuration;
    CANoe.TestSetup mTestSetup = (CANoe.TestSetup) mConf.TestSetup; Test settings window
    CANoe.TestEnvironments mTestEnvs = (CANoe.TestEnvironments) mTestSetup.TestEnvironments;
    CANoe.TestEnvironment mTestEnv = (CANoe.TestEnvironment) mTestEnvs [1]; Test environment (file *.tse)
    Console.WriteLine ("Name" + mTestEnv.Name);

    CANoe.TestSetupFolders mTestSetupFolders = (CANoe.TestSetupFolders) mTestEnv.Folders;
    CANoe.TSTestModule mTSTestmodule = (CANoe.TSTestModule) mTestEnv.TestModules [1];
    Console.WriteLine ("Name" + mTSTestmodule.Name);

    CANoe.TestSequence mTestSequence = (CANoe.TestSequence) mTSTestmodule.Sequence;
    Console.WriteLine ("Count TestSequence" + mTestSequence.Count);
    CANoe.TestCase mTestCase = (CANoe.TestCase) mTestSequence [1];
    Console.WriteLine ("Name of Testcase" + mTestCase.Name);
    mTestCase.Enabled = false; disable the unit test - XML and structured NET only module.

    CANoe.TestReport mTestReport = (CANoe.TestReport) mTSTestmodule.Report; Access to the report

    CANoe.Measurement mMeasurement = (CANoe.Measurement) mApp.Measurement;
    If (! mMeasurement.Running)
    mMeasurement.Start ();

    mTSTestmodule.Start ();

    I realized that you can cast the ActiveX object references to another class of the child in the following way:

    It was the right solution and I want to share with you.

  • Unit test Framework UTF Message error "Application Terminal invalid entry."

    Hello world

    I have a rather strange behavior with the UTF:

    I created a lvlib containing a few screws to be implemented by a student. To easily check if all requests are met, I created some Unit Tests.

    On my computer, everything works fine. On his computer, the following error message appears:

    Both computers are running on 2013SP1f2. Although mine has more power

    Known problems with the UTF on older PCs? Or specifically requested: where this error is from?

    See you soon

    Oli


  • Distribution of the source - unit test dependency problem

    Hello

    I developed and API and I want to make the distribution of the sources, however my faulty build (error message is below) due to the error of reclassification of the Unit Test framework that I use to test my code. All Unit Tests are in the same folder, called "UnitTests", which is a part of a class. If I delete the UnitTests from the class folder, source distribution is created as expected. I try to put the folder always excluded UnitTests, but it does not help.

    I use LV 2012.

    Any ideas what I am doing wrong?

    Thank you

    Andrej

    Error message:

    LabVIEW does not find a file that is a dependency of a startup, exported or always included VI.

    File not found: the file "C:\Program Files (x 86) \National 2012\vi.lib\utf\dialogs\utf_defocus_trees.vi" must have the qualified name of "NI_UnitTestFramework.lvlib:utf_defocus_trees.vi", but it has the qualified name of "utf_defocus_trees.vi".

    The missing file can be referenced by one of the libraries included in the compilation or the file - CircularBuffer.lvlib. To resolve this problem:

    -Open all the startups, exported or always included live, recompile them (CTRL-SHIFT click the Run arrow) and keep them to update their dependencies.
    -Open libraries included in the building and check the existence and the location of the referenced files. Also, try building with the option of additional exclusion, 'Delete unused library of the project members', verified.

    Is attached to a fixed version of utf_defocus_trees.vi.  Place it in your \LabVIEW 2012\vi.lib\utf\dialogs directory .

    In addition, you might want to load/save utf_test_properties_sub.vi to get rid of the dirty dot.  This VI is located in the: \LabVIEW 2012\resource\framework\providers\utf.

  • How calculated the code coverage in unit test infrastructure

    I'm looking for documentation on how the unit test framework calculates code coverage.

    I just recently installed the unit test framework and I had mixed results with the code coverage feature.  I manually calculated all the branch points in my vi, but the framework calculates more that I can think of, which gives a value of code coverage less than stellar (51%).  Is there documentation for how it is calculated?  I'm either missing something fundamental, or there is a bug with the framework.

    My vi consists of a loop (with shift registers) uninitialized which runs once.  On the inside of the loop is a business T/F structure that leads to a listed case structure possible two cases (one of which is the default value)... pretty basic.  Inside one of the structures is a loop and the other is cross.  For some reason, the unit test framework calculates 7 "flags chart run.  I use the method of "external" test harness to call all my test cases for the vi under test, b/c frankly it was easier to use than the UI provided.  I don't know if this is the cause, b/c I saw the other oddities when using it, which I'll save for another thread of discussion.

    Code coverage is calculated by dividing the number of diagrams, code that was executed by the number of diagrams in your VI altogether. Each VI has at least 1 schema (schema-block real). Loops have a single diagram each, case structures and sequences have a single diagram by image and so forth (=> from your description, your VI has at least 7 diagrams). You can double-click the patterns that were not executed in the Unit Test Framework results dialog box to be displayed.

    This approach does not reflect the amount or complexity of the code that contains each diagram. We looked at various ways of counting nodes, terminals, controls, son and other, that would give you a number that reflects your code with more precision. Unfortunately, neither of these approaches gives values that can easily be understood without some knowledge about the inner workings of LabVIEW. We chose to go with a solution that is completely transparent to end users.

    Thank you

    Herbert

  • unit test framework

    Is it possible to group together the Unit Test framework in an EXE?  I would like to pass a path of the project file and path of the report file to an exe file that will reside on a dedicated test server and run tests or user-defined Unit Tests that are included in the project file.

    I want to use this EXE to run automated tests that can be triggered by a CI server like cruise control.

    Is there a limitation with a Toolbox or UTF specifically, which prevents the package in an EXE?

    You cannot run as a stand-alone executable Unit Test infrastructure. He uses a lot of functionality which is part of the LabVIEW development system, but not the LabVIEW runtime engine (for example in order to process the block diagrams, project files).

    What you can do in order to solve your use case is to install LabVIEW on your test machine and run a VI that runs your tests. There are several ways of commissioning and control of LabVIEW, including a command line interface that allows you to pass in a name of VI to run more parameters for the VI. A more accurate way to control LabVIEW would be through ActiveX, which is possible for example in a VB Script or JavaScript that are executed by the Windows Scripting Host.

    This piece of VBScript for example takes 2 inputs command line, start of LabVIEW, charge a VI, passes the values to the VI and run the VI. He will wait for LabVIEW is finished (as an option). You can also choose to keep LabVIEW run all the time, or to have the script open and close as needed.

    Dim oLV
    Set oLV = CreateObject("LabVIEW.Application")
    
    sCurPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".")
    
    Dim oVI
    Set oVI = oLV.GetVIReference(sCurPath&"\LVDiff.llb\Diff_VI.vi")
    
    oVI.SetControlValue "Input 1", WScript.Arguments(0)
    oVI.SetControlValue "Input 2", WScript.Arguments(1)
    
    On Error Resume Next
    oVI.Run(0)
    If Err.Number>0 Then
        oVI.Abort
        MsgBox "Error"
    End If
    

    Hope that helps,

    Herbert

  • Unit test failing in DAC

    Hi all

    Can help me please the slot issue I am facing DAC.

    I followed the below 2 items to run the full & incremental loading implementation in the DAC and Informatica.

    https://obibb.WordPress.com/2014/03/10/Oracle-BIA-making-the-full-incremental-load-work/

    https://bistop.WordPress.com/2013/03/22/getting-started-with-DAC-11g/

    I am getting the error when I click on the button of unit test in DAC below:

    FAULT INFO: Error executing: INFORMATICA TASK: DAC mapping: EMP:1: (Source: COMPLETE target: FULL)

    Message:

    Fatal error

    Application to start the workflow: 'EMP with the instance name EMP' terminated with error code 4

    Error message: user error. You spent pmcmd wrong settings.

    Opportunity to order: pmcmd startworkflow sv - integration Domain_SivaKoneru-PC - u Administrator Pei * f DAC Mapping d - paramfile C:\DAC11g\dac\Informatica\parameters\DAC Mapping.EMP.HR.txt EMP

    Workflow message:

    Thanks adavance

    Siva Koneru

    Not sure but maybe the problem is that your map name contains a space in there? I would try to rename "Mapping of DAC" in "DAC_Mapping".

  • sql question 4.1.1.19.59 of unit test developer

    Hello

    4.1.1.19 version build HAND - 19.59 I had a problem to run the unit tests with exception as expected result. No matter if I say "ANY" or specify an error number. All the tests fail. Must be a bug.

    Oracle SQL Developer  API_OBJEKTARTEN.GetXMLViewName.png

    Kind regards.

    SQL Developer restarting solves the problem.

  • How can you unit test documents created with LiveCycle Designer?

    Hello

    The preparation of the documents that contain forms dynamic (programmed in Javascript), which is a good way to test?

    Do you perform manual or automatic testing? If the latter, what technique do you use?

    Thank you!

    Hello

    I wrote a script Jasmine to run unit tests, there is an example of it here XDP form, Adobe LiveCycle Designer by BR001 Cookbooks: using the test framework Jasmine in a form in LiveCycle Designer Adobe

    Adobe labs has the Adobe PDF Test Toolkit but I have no experience with it, memory, software depended on it was quite expensive, Adobe PDF Test Toolkit - Adobe Labs

    Concerning

    Bruce

  • Unit test: calculation of the length of the different columns in recordsets provided and received led to false a test failure

    Dear team of SQL Developer,

    It seems that the calculation of the length of the column in the expected and received recordsets behaves differently in some cases (when stored proc variables are used in the generation of the REF CURSOR, despite the explicit definition of the type of record): the length of the header and the length of the value in the set of records received are truncated to arbitrary length based on the returned value which leads to a false failure of a unit test. I.e. registries are the same in both sets of records, but the test run fails to the comparison of the recordsets because of different length. Please see the screenshot below:

    Expected_and_Received_RecordSets.jpg

    Here's the test case if you need to reproduce the problem/bug in your environment:

    1. use the default schema of HR of the Oracle examples package that comes with an 11 g database.

    2. change the HR. Table EMPLOYEES with the addition of a new column VARCHAR2 (4000) LONG_LAST_NAME:

    ALTER TABLE HR. EMPLOYEES

    ADD (LONG_LAST_NAME VARCHAR2 (4000));

    Update hr.employees set long_last_name = last_name;

    commit;

    3. create a PKG_TEST2 package with the source code below in the HR schema:

    ----------------------------------------------------------------------------------------------------------------------

    create or replace PACKAGE PKG_TEST2 AS

    TYPE EmployeeInfoRec IS RECORD

    (

    long_last_name employees.long_last_name%TYPE,

    first name employees.first_name%TYPE,

    E-mail employees.email%TYPE

    );

    TYPE EmployeeInfoRecCur IS REF CURSOR RETURN EmployeeInfoRec;

    FUNCTION getEmployeeInfo (p_Emp_Id employees.employee_id%TYPE)

    RETURN EmployeeInfoRecCur;

    END PKG_TEST2;

    ----------------------------------------------------------------------------------------------------------------------

    CREATE OR REPLACE PACKAGE BODY PKG_TEST2 AS

    FUNCTION getEmployeeInfo (p_Emp_Id employees.employee_id%TYPE)

    RETURN EmployeeInfoRecCur AS

    v_EmployeeInfoRecCur EmployeeInfoRecCur;

    v_LongLastName varchar2 (4000);

    BEGIN

    Select long_last_name from v_LongLastName

    employees

    where employee_id = p_Emp_Id;

    --

    OPEN FOR V_EmployeeInfoRecCur

    V_LongLastName SELECT long_last_name,

    first name,

    E-mail

    This_is_very_long_table_alias employees

    WHERE employee_id = p_Emp_Id

    order by 1 CSA;

    --

    RETURN v_EmployeeInfoRecCur;

    EXCEPTION

    WHILE OTHERS THEN

    LIFT;

    END getEmployeeInfo;

    END PKG_TEST2;


    ----------------------------------------------------------------------------------------------------------------------

    4. create a unit test for the PKG_TEST2.getEmployeeInfo stored procedure: (click the command create Test, select the stored procedure, click Ok for the pop-up message, click Next, click Finish).

    5. update the default value of dynamic query of value with the one below and save/post changes.

    Select the cursor)

    SELECT long_last_name,

    first name,

    E-mail

    Employees

    WHERE employee_id = idqry.employee_id

    order of the 1 CAD

    ) RETURNS $,.

    idqry.employee_id as P_EMP_ID

    from (select employee_id

    employees

    where rownum < = 5) idqry

    6. run the unit test newly created in the debug mode to display the shot.

    Thus, the record type 'EmployeeInfoRec' in the package clearly defines the LONG_LAST_NAME as VARCHAR2 (4000) through reference for the data type of column in the referenced table.

    But for some reason, the SQL Developer does not calculate correctly its length in the recordset "Receipts" If a variable is used (could be one as variable simple varchar2 in this reproducible test or complex variable of type of the object).

    Any ideas on that? Looks like another bug...

    Thank you

    Val

    The bug has been reproduced by the SRB and documented within the system of Support of Oracle SQL Developer team to pick it up:

    Bug 19943948 - TEST UNIT RETURNS EXPECTED ERROR: [LONG_LAST_NAME

    Hope the bug name can later be changed to something more descriptive, but it is not really... my only concern is the speed at which the known bugs would be fixed...

    Thank you

    Val

  • Problem with Unit Test

    What I am doing wrong?

    I created a small example of how to test the functionality of substitution of variables within the unit test framework.

    Documentation: SQL Developer: unit tests

    create or replace procedure SimpleTestProcedure (param1 in varchar2) as

    Start

    null;

    end SimpleTestProcedure;

    /

    Test configuration with the following configuration:

    Input value: Test

    Process: Boolean function

    declare

    Param varchar2 (4 char);

    Start

    param: =: param1;

    If "{param1}"! = param then

    Returns false;

    end if;

    end;

    UnitTestScreenshot.png

    Is found in the following message is displayed after the test run:

    UnitTestMessageScreenshot.png

    I use SQL Developer Version 4.0.3.16.

    Any help would be appreciated!

    Kind regards.

    Hi Flofe,

    It looks like the Boolean function as a validation of process takes no parameters that a function pl/sql 'generic' put... it's probably called "function" only because it returns a value, as does any function. But you can use substitutions of setting the parameters for the stored procedure that you are testing, which you are already doing.

    So, try to change your code to:

    declare

    Param varchar2 (8);

    Start

    param: = "{param1}";

    If "{param1}"! = param then

    Returns false;

    on the other

    Returns true;

    end if;

    end;

    And it should work for try you the little test...

    I hope this helps...

    Val

  • Is there a real BENEFIT in SQL * Developer Automated Unit Testing?

    I'm trying to understand the unit test in SQL * Developer. Asked me to evaluate it as a method of test automation on an integration solution that we develop.

    (1) my 'A' schema has this table:

    SQL > DESC EMP

    Name                                      Null?    Type

    ----------------------------------------- -------- --------------------

    EMPID NOT NULL NUMBER

    EMPNAME VARCHAR2 (30)

    SALARY NUMBER (7.2)

    COMM_PCT NUMBER (2.2)

    Table (2). has these values:

    SQL > SELECT * from emps;

    EMPID EMPNAME SALARY COMM_PCT

    ---------- ---------- ---------- ----------

    1 ROHAN 10000.05

    2 JOHN 20000

    3 PETER.06

    4 SMITH

    (3.) I create this procedure in drive A:

    create or replace

    PROCEDURE award_bonus (NUMBER, sales_amt NUMBER p_empid)

    AS

    REAL Commission;

    comm_missing EXCEPTION;

    BEGIN

    SELECT comm_pct IN the commission OF EMP

    WHERE empid = p_empid;

    IF the commission IS NULL THEN

    RAISE comm_missing;

    ON THE OTHER

    PGE UPDATED

    SET salary = salary + sales_amt * commission

    WHERE empid = p_empid;

    END IF;

    END award_bonus;

    (4) now, I want to create a unit test in SQL Developer to test this procedure.

    (5) I created a user "unit_test_repos" according to the instructions in the tutorial.

    (6) ' SELECT OPERATION': I specifies the procedure of award_bonus.

    (7) ' SPECIFY the name of test': give a name and select "create with a single model.

    (8.) 'SPECIFY the STARTUP': Add a ' copy Table or the line "the startup process.

    -I give "EMP" as the source table.

    -And then I get this for the 'generated query.

    SELECT ROWID AS SRC$ ROWID, s.* FROM EMP s

    -Target table has "TMP$ AWARD_BONUS.

    (Q1) WHAT IS THE PURPOSE OF CREATING ANOTHER TABLE?

    (Q2) WHEN THE TEST IS DONE, ARE ROWS OF PGE copied into this table?

    (Q3) Why is this? Why can't the test simply read 'EMP '?

    (9) "PARAMETERS SPECIFY": I give "Input".

    -1 for P_EMPID

    -10000 for SALES_AMT

    -In "Expected result", I say "success."

    (Q4) So I should know in my mind the results of the proc, foregoing given entries?

    (10) ' SPECIFY VALIDATION': I add validation "poll rows of queries.

    -I paste the following query: SELECT count (*) FROM EMP WHERE empid = 1 AND salary = 10500

    -that is, I know that for an amount of 10000 sales, employee 1 will get a Commission of 10000*.05 = 500. For example, 10000 (its sal) + 500 = 10500.

    (Q5) The thought that the above is correct?

    (11) "TEARDOOWN SPECIFY": give nothing.

    (12) my unit test is created.

    (13.) I run now by clicking on the button of the beetle, to the left of the green arrow. Unit test is run.

    (14) now in my table a.emps, 1 salary has increased to 10 500, and the diag test case, I get the "execution results: SUCCEED.

    (15) now, I run the unit test again.

    (16.) salary 'EMP' table emp 1 is passed to 11000 (which is correct) and the so-called execution results "SUCCESS".

    (Q6)  My question is: the query I gave for validation, SELECT count (*) FROM EMP WHERE empid = 1 AND = 10500 salary, now gives 0. so, this means that no row is returned for this condition and so the test must FAIL. But how is SQL * Developer said that the test was SUCCESSFUL. How does this system of validation?

    (17.) I went through the tutorial, but I do not understand these concepts >

    (Q7) What is the purpose of disassembly? I undersand the option 'drop table' "disassembly", where you drop the temporary table, but I do not understand the others, 'Table or line restore' and 'code pl/sql user '?

    (Q8) WHAT IS the advantage of making the test like this? Can I use an Excel spreadsheet and make dozens of unit tests faster than this method?  It is easy to understand too. This method is complicated.

    Your answers and your advice would be greatly appreciated.

    The temporary table to hold the original values for EMP. After the test runs, you must configure the disassembly to reset the return values of the temporary for the next time table that the test works again, he has values of expected start.

Maybe you are looking for

  • CD1 Satellite A200 poster 10-FC06-0002 error recovery

    Sorry for my English. I use my recovery CD1 and after 10 minutes an error error 10-fc06-0002 of writing. I want to just restore like new with Vista. What should do?I have the Satellite A200-AH8Thank you

  • Vista - Windows Live Update problem

    I have a problem installing the components of Windows Live Essentials.  I managed to install by email.  Now, I try to add a few other components.  I get a window saying: "We must take care of some things first" - "install Windows Platform Update.  I

  • update of microsoft search enhancement pack for xp

    Download and install the update for the improvement of research microsoft pack always fails

  • update failure keeps it close itself

    I turn on automatic updates, but it keeps itself shut down and it does not install updates

  • T60 boot problem

    Since 3 years ago, I have Lenovo T60. Now, every time I start up the laptop, a message will apear: v1.2.50 Inittializing Intel Boot Agent GE PXE - E05: the LAN adapter's configuration is corupted or has not been initialized. Boot Agent cannot continu