Unit test: what are permissions?

When I try to create a repository I get:

Selected connection has no basic permissions.
You are now prompted for connection information grant permission


I do not have superuser privileges, and I will never get, because it is against company policy to give powerful subsidies for developers.

How can I use unit tests then? Is there a SQL file that I can give to my database administrator to face the DB?

Thank you
Laurent

Hi Laurent,.

Here are the minimum required for internal checks and use unit tests.

Once your DBA is doing this:

-RUN BOTH TO IMPLEMENT THE UT WITH MINIMUM PRIVILEGES REQUIRED ROLES:

- REMOVE the ROLE UT_REPO_USER.
- REMOVE the ROLE UT_REPO_ADMINISTRATOR.
- DROP USER MIN_PRIV_UT_REPO WITH WATERFALL;

CREATE the ROLE UT_REPO_USER;
GRANT SELECT ON DBA_TAB_PRIVS to UT_REPO_USER; -- 3.1
GRANT EXECUTE ON DBMS_LOCK to UT_REPO_USER; -- 3.1
CREATE the ROLE UT_REPO_ADMINISTRATOR;
GRANT UT_REPO_USER to UT_REPO_ADMINISTRATOR; --3.1

EDIT/RUN FOR EACH REPOSITORY OF TEST USER/UNIT DESIRED:
-Note: replace MIN_PRIV_UT_REPO, USERS, TEMP you like for your situation

CREATING USER MIN_PRIV_UT_REPO IDENTIFIED BY MIN_PRIV_UT_REPO
By DEFAULT the TABLESPACE USERS
TEMPORARY TABLESPACE TEMP;

GRANT RESOURCE OF MIN_PRIV_UT_REPO ;
GRANT CONNECT to MIN_PRIV_UT_REPO .
GRANT CREATE VIEW to MIN_PRIV_UT_REPO ;
GRANT SELECT ON DBA_ROLES to MIN_PRIV_UT_REPO ;
GRANT SELECT ON DBA_ROLE_PRIVS to MIN_PRIV_UT_REPO ;
GRANT UT_REPO_ADMINISTRATOR to MIN_PRIV_UT_REPO ;

Then in SQLDeveloper, select Tools-> Unit Test-> choose a current repository, create/select a connection for MIN_PRIV_UT_REPOand press 'Yes' when asked if you want to create a.

With the roles of the UT put in place 'empty' like that, the menu options for the management of a shared repository will be active and seems to work, but doesn't really matter

Brian Jeffries
SQL development team

Published by: bjeffrie on December 22, 2009 15:08

Published by: bjeffrie on December 22, 2009 16:01

Published by: bjeffrie on March 1, 2012 11:43 updated with the new privilege for 3.1 requirements

Tags: Database

Similar Questions

  • 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

  • Is there any unit test framework tools for DAQmx programmers who use C interface?

    I need to accuratly simulate DAQmx devices for the software in the development of unit tests. Are there tools available to make this easier?

    You have the integrated simulation of DAQ devices in MAX. The simulation is limited. It is explained in the NOR-DAQmx help (NI - DAQmx Key Concepts > NOR-DAQmx simulated devices).

  • 2.1 ai2: nobody knows what the time units are in unit tests?

    Hi all

    I ran a few tests in SQL Developer ai2 and I'm curious to know the units of time that I see in some contexts; If anyone can enlighten me, I would be very grateful...

    (1) I have my unit test set to 'collect Code coverage statistics.
    (2) when I run a test, the results tab shows the columns 'Status' and 'Time' - 'Period' means here? For example, my test '1 826' watch - is this milli-seconds of processing time? Any other clues?
    (3) I then look at the 'Test Runs Code Coverage' report and click on the appropriate entry in the upper part of the screen, which shows me the «Code coverage Details» view
    (4) I can make sense columns 'Line', 'Text' and 'Total_Occurrences', but what makes the value of the average of column "Total_Time" here? For example, for simple SUBSTR assignment operations, I see a "Total_Time" of "1201", is this microseconds, nano-seconds?

    Many thanks in advance,

    Chris Hughes

    Hi Chris -.

    (2) the term is in milliseconds (1/1000 second) (this is the time from the customer point of view for each operation)
    (4) Total_Time is in nanoseconds (1/1000000000 sec) (or at least what the documentation for plsql_profiler_data.total_time (where get us all this) ;)) said

    Brian Jeffries
    SQL development team

  • Unit test SQL dev 4.1.3.20 missing permissions - but that

    I asked my dba for necessary roles and permissions to perform unit tests,

    Roles and permissions for these are - according to the documentation:

    CREATE THE UT_REPO_USER ROLE.

    GRANT SELECT ON DBA_TAB_PRIVS TO UT_REPO_USER;

    GRANT EXECUTE ON DBMS_LOCK TO UT_REPO_USER;

    CREATE THE UT_REPO_ADMINISTRATOR ROLE.

    GRANT UT_REPO_USER TO UT_REPO_ADMINISTRATOR;

    I checked that these roles and permissions actually exists

    In addition to that my users have these permissions (among many others)

    GRANT TO PASSWORD RESOURCE;

    GRANT CONNECT TO PASSWORD.

    GRANT CREATE VIEW TO PASSWORD.

    SELECT GRANT WE DBA_ROLES TO MY_USER;

    GRANT SELECT ON DBA_ROLE_PRIVS TO MY_USER;

    GRANT UT_REPO_ADMINISTRATOR TO PASSWORD.

    When I try to create a repository I get this message

    unit1.jpg

    What Miss me?

    regards Karsten

    Discovered what was missing:

    ADMINISTRATOR should grant permissions directly to the user to unit test.

    Unit test does not accept the permissions granted to the public or by a role.

    I think it is a bug and I mention as such

    regards Karsten

  • What are 'File Permissions '?

    My beginner reading: http://macs.about.com/od/usingyourmac/qt/Fix-Spod-How-To-Fix-A-Spinning-Pinwheel --Death.htm says that file permissions are automatically repaired now with El Captain but that before that perhaps they should be "repaired" after updates or the spinning Rainbow wheel can appear.  I get the spinning wheel on entry just after put the password in and clicking on (but it's fast and not annoying) but worrying to see nonetheless.

    What are the file permissions?  Are they connected to the wheel that turns that I see at the time of the process, as it happens, or do I not to worry it is appearing briefly and then in endangered?

    Overwhelmed - please help with explanation so that I can learn more about my Mac.  Thank you for your time and your consideration.

    File permissions control which parts of the file system access is the best explanation I can find. They can cause a spinning beachball, but they are not the only thing that can cause that.

    Try to run this program in your usual account, then copy and paste the result in a response. The program was created by Etresoft, a regular contributor.  Use please copy and paste the screenshots can be difficult to read. On the screen with the Options, please open Options and tick the boxes in the bottom 2 before the race. Click on the button "Report share" in the toolbar, select "Copy to Clipboard" and then paste into a response. This will show what is running on your computer. No personal information is shown.

    Etrecheck - Information System

  • What are the units of the DAQmx meter?

    Hello

    I created this VI and several others like it, a few months ago, but I forgot some of what I have at the time.  I believe that this VI should measure period, using the counter on the chassis of the acquisition of data.  Can someone tell me the units of the measurement period?  I think it's seconds, but I am trying to find a way to understand this!  The period values are generated by the DAQmx READ function in the WHILE loop.  What units that work out in the table?  What are the units of the elements of the array, essentially?  See the attached VI.

    In addition, how do you know?  I opened the DETAILED HELP for the DAQmx Read (minimum 1 D NSamp DBL) shows the VI but, I can't find anything on the units of data coming out of the Terminal marked data with the orange wire, which is actually an array of periods, and we take the average of the most recent measures period 15 or more.

    I had a suggestion months ago for a line OR manual containing a description of the measures of buffering EdgeCounting, but when I went to find it, the link had been changed by NEITHER, so I find that manual, but I think the answer is probably there because I remember this manual is very helpful when I've done it before.

    Thanks for the tips.

    HI dav2010,

    When you create a virtual channel, you must specify the units of the task of counter uses.  There are several options that are listed in help here:

    http://zone.NI.com/reference/en-XX/help/370469AA-01/lvdaqmx/mxcreatechannel/#DAQmxCreateChannel%28CI...

    I'm not on a computer with LabVIEW now, but I think the default should be ticks, which is the number of ticks the time base of your device.  You can find this information in your hardware specifications.

    Kind regards

  • What are the permissions to the supervisors in the IPCC Express?

    What are the permissions supervisors have in IPCC Express? The client wants to know if we can set permissions for supervisors as a Multi level admin for the call manager.

    Hi Chuck,

    Adding a user as a supervisor by the IPCC allows them a login to the http:///appsupervisor page. As far as I know, you cannot restrict access more far. If you make reference to what the agents/csqs they may see, then you can divide them into teams and only associate the supervisor access to the specific group of officers/csqs. Moreover, I think that we work for the same company, do not hesitate to these question directly. Nice to see you here on the forums.

    -Chuck L.

  • 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

  • What are dsiplayed units of time in the timeline?

    It's maybe a stupid question, but I wanted both to an event that I recorded with my sony hd camera.  I imported the clip pe 9 and tried to judge time to watch frame-by-frame in the timeline.   the units appear like this 01:30; 25 but the last two digits go from 25 to 00.   that the devil which means?   are these frame units, the second, a novel timing invented by adobe system?    I realize a video camera is not an instrument of measurement of the time, so maybe I'm too ask a lot... but now I'm curious... What are these units displayed in the timeline panel, and why they jump in increments that they do?   the value of my sony camera?  or adobe?

    Thank you...

    David

    N ° is the General standard in Non-linear video editing. Adobe continues just to follow. Which means the timecode in your case is 01:00 seconds: 25 images. If she spends 25 to 0, it means that you have created a PAL project. For NTSC, it climbs from 30 to 0. This indicates not only the time, it also indicates the number of images. And it's really too granular you need to get into this big bad video world.

    You can use this to make your time. I'm guessing that you don't need a precision less than 0.04 seconds (25 images per second - an image in 0.04 seconds).

  • What are the disadvantages to download Windows 7 Home Premium from the U.S. instead of the United Kingdom?

    Activation

    My PC vendor failed to provide me with a product code, so I can't activate Windows. This forum told me I have to buy another copy of Windows 7 Home Premium 64-bit. The cost of the software during the purchase of the United States is much less expensive than when purchased in the United Kingdom. Is there any disadvantage when downloading the product of the United States?

    It will work very well in the United Kingdom, there are no geographical restrictions on activation outside the United States.

  • Unit Testing Unit Test Framework when the expected production is just a table of NaNs to report a fake PASS

    It is a cross-post of the Unit Testing Group:

    https://decibel.NI.com/content/message/121915#121915

    I remember having this problem with the old version of the unit testing framework, but alas, it is still present in the new version.

    To do this, I use LabVIEW 2015.

    A customer contacted ask me what to do, because the expected output was table of NaNs and the VI under test returns an array of numbers and yet, the test was passing!

    My suggestion to use as a solution was to create a defined trial user who would test for the table of NaNs. I was wondering if someone here had found this problem and if you have further suggestions other than user defined Test.

    Until someone suggests we turn to JKI VI tester for this project, I can tell you that we use UTF and tester of JKI VI not because the client is in a regulated industry.

    A video describing the problem and the workaround (via user defined Tests) is here: https://youtu.be/AoBe-Gw2Nzo

    Question: Is using a user defined Test is the best approach? We missing something in the way that the Unit Test is defined which translates the fake of the Test infrastructure Unit reports that the test successful?

    Thank you

    Fab

    Hey Fab,

    I was able to reproduce the problem on my machine and I have observed the same results. What I see in the video, it looks that you are setting the unit test. I think that this is a bug rather than your test configuration, so I presented a report on this issue will have to be reviewed by the R & D.

    Go ahead, I agree that a user defined Test is the best solution in this case. If it meets the needs of your clients, I recommend you take this option.

  • Error in Unit Test Framework: "the path of the VI test is not valid."

    I get this error on files lvtest for a few screws, it appears so when I click on the button "import values of VI.  The unit test framework correctly on some screws, but some work raise the error.  I tried to move and rename the files and of coarse checked the path of the file.  I'm open to suggestions, I'm starting to like what the Unit Test Framework is capable of, but this error becomes a problem for me.

    Thank you

    John

    Hi John,.

    It seems that I do not receive the same error as you.  In the Advanced tab of .lvtest files, that you selected as the Configuration setting?  If you left it as default value, can you check to see if the orders/lights are selected in the connector pane?

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

  • 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

Maybe you are looking for

  • Hello my iphone has an icon of the air and I can't get him off

    I have an icon of the air which is blockiing my phone and I can't use it

  • Data corruption FXP user variables

    Windows 7 Professional LabVIEW 2009 SP1, RT I have stumbled on this nasty problem yesterday and am looking for help (please). I used the scan engine and User Variables to send filtered data modules FPGA C Series in the OTR. When the fixed Point of Va

  • Xbox360 video on screen says invalid format

    My xbox360 was working fine, then there was an update and online, I installed and I played a little and then all of a sudden on my HD TV screen went black and a notice FORMAT INVALID tossed on the creen. How can I return my video? BTW I have sound

  • Other control problem faced in the tab with flashing property control...

    Ay one can help me? I send you a vi, in that I face a problem with the tab control. So I put a list on page1 tab control multi-column box and apply the flashing on her property that at run time the flashing can visible on all pages of the tab control

  • Controller Eco Mode = Mode Stamina?

    Hi guys! I have a question, at KitKat we controller in Eco Mode, but since the update of the lollipop, it is absent in the apps, but I noticed the app in Stamina mode? And can I restart Mode endurance through this application then?