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.

Tags: NI Software

Similar Questions

  • Distribution of the source with dll error

    I am trying to build a distribution source, using LabVIEW 8.6.1.  The code calls a dll and why the dll is listed as dependencies.  When I Isaiah to compile a source distribution I get this error:

    Has anyone seen this before, and if yes, what is the workaround?  Thank you very much for the help.

    Good morning jmcbee,

    As says the first 'reason', an input parameter can be invalid.  Although "the Distribution Source provider creates a copy of the project (including dependencies) for easy distribution files to another machine," your .dll is one path other than that of the project and this is the error that is returned, its path can be the invalid entry to blame. (KB: what is the feature of specification of Application Builder Build?)

    Try to place a copy of this DLL in the same folder as your project and reconfigure your project and call library function nodes to get the .dll file in the new location instead of the original location.

    Another thing you can try is to remove all spaces in the name of the specification to build and ensure that no spaces at the end of the name.  Then rebuild the source distribution.

    The following links can provide some basic information:

    What is the feature of Application Builder Build specification?

    http://digital.NI.com/public.nsf/allkb/41561F98D96235FC8625708F00552ADF?OpenDocument

    Error 1 or 6 is produced during the e/s of file - input parameter is incorrect

    http://digital.NI.com/public.nsf/allkb/BB06ABD0261A9F2B86256F190049A620?OpenDocument

    Why my executable does not work when you use the constant path of the current VI?

    http://digital.NI.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363?OpenDocument

  • Unit test in sql developer 4.1 fails but passes in 4.0

    I can't tell if it's a question of Java or Sql * developer issue.

    SQL * Developer Version: 64-bit 4.1.0.17.29

    Versions of Java: Tried jdk 8: 1.8.0_5, 1.8.0_20 and 1.8.0_31 - all 64 bits

    That is the message in the response of unit test:

    CPS_TOOLS.PREP_FOR_DELIMITED_FIELD failed: Missing defines
    oracle.jdbc.driver.Accessor.isNull(Accessor.java:744)
    oracle.jdbc.driver.CharCommonAccessor.getString(CharCommonAccessor.java:350)
    oracle.jdbc.driver.OracleCallableStatement.getString(OracleCallableStatement.java:661)
    oracle.jdbc.driver.OracleCallableStatementWrapper.getString(OracleCallableStatementWrapper.java:860)
    oracle.jdbc.proxy.oracle$1dbtools$1raptor$1proxy$1driver$1oracle$1RaptorProxyOJDBCStatement$2oracle$1jdbc$1internal$1OracleCallableStatement$$$Proxy.getString(Unknown Source)
    oracle.dbtools.raptor.datatypes.strategies.callablestatement.CallableBindingVARCHAR.customOutputByPosition(CallableBindingVARCHAR.java:51)
    oracle.dbtools.raptor.datatypes.strategies.callablestatement.CallableBindingDatumAtName.customOutput(CallableBindingDatumAtName.java:123)
    oracle.dbtools.raptor.datatypes.impl.CallableBindingImpl.getOutput(CallableBindingImpl.java:74)
    oracle.dbtools.unit_test.testObjects.UtTestImplArgs.getOutput(UtTestImplArgs.java:320)
    oracle.dbtools.unit_test.runner.Runner.executeRunn ...
    
    
    

    Now, the same unit test works with the following text:

    SQL * Developer Version: 64-bit 4.0.2.15

    The Versions of Java: 64 bit jdk 7 - 1.7.0_55

    I tried to follow here debug information collection:

    http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-Debug-Info-for-Oracle-SQL-Developer/

    However, there is no report in the command window after a ctrl-pause/break. At the same time, however, it is not like sql * developer hangs here.

    Thoughts?

    EA 4.1 includes a new feature to save all JDBC calls (view > Log, and then note the statements tab in the logs pane), so it could be the difference in the behavior of Test Unit between 4.0 and 4.1.

    You use the JDBC default 12.1 driver, or you have overridden by specifying a particular Oracle client?  In other words, in

    Tools > Preferences > Database > advanced > use Oracle client > configure...


    I read that somewhere there may be problems when you use the clients pre - 12 c with earlier versions of JDBC. driver

  • Unit Testing C++ plug-ins

    Hello

    This can be an incredibly stupid question, because I'm not terribly famous (I used JUnit test before and that's all).

    I wrote a plug-in for Acrobat X Pro in C++ using Visual Studio 2010 and would like to know if it is possible to use to exercise my unit tests code.

    I think it should be a non-standard method of doing a suite of tests from the plugin must operate within acrobat (as opposed to being autonomous) in order to work or have data, functions, parameters, return values, no sense at all.

    I think that this could be done by exposing my profile in OLE automation or whatever that would allow an external program control my plug-in.

    Any ideas?

    Thank you.

    You could certainly integrate with all of the different unit tests

    frames BUT you must write the code that 'start' as

    well within your plugin and provide the user API to do.

  • Developer SQL 3 EA1: Unit Test

    Hello

    I just started to use the work unit test framework in SQL Developer 3 EA 1 and I need assistance, definition of a test case involving parent - child tables that are handled using an API from plsql. The API for the child table requires a registration key in the parent table. The parent record and its key is created by a process of starting test case. The key is retrieved using a query of dynamic value in the implementation of the test. It seems that the dynamic value query is executed before the start of the test case process have been executed. Is this expected behavior? My expectation is that the boot process are executed before the dynamic values query.

    Also, is it possible to use values resulting from processes of startup as the case other than type parameter values by using a dynamic query in value?

    Summary test scenario:

    2 boot process: the first deletes all the data tables parent and the child. The second inserts in a record in the parent table.

    No disassembly process.

    Test implementation: application of dynamic value that selects the key of the parent table and defines literals for the remaining parameters of test cases.

    1 process validation: check if a record has been inserted into the table of childe with expected values.

    Thank you

    Alistair

    Hi Alistair.

    We execute the dynamic query to control how many times the test (start, test cases, validation, demolish) cycle runs.

    To get the behavior you want, put the test in a test suite and test suite start do the initialization of the table for you.

    Brian Jeffries
    SQL development team

  • problem of visarc in the source distribution

    I am trying to build a distribution from source to a project in LabVIEW 8.6.1.  I need to build the source distribution so that I can password protect all VI in the project (about 1200).  When I try to compile the source distribution I get the following error message.

    As you can see the source file does not exist because the path: C:\Documents and Settings\Program NIUninstaller Instruments... does not exist.  So, I created this path and place the visarc file where LabVIEW thinks it should be.  When I Isaiah to compile the source with the wrong path distribution I get the following error message:

    Once more the following path does not exist: Program Files: \Nationa lnstruments\LabVIEW 8.6...

    I don't know how to create this way false because he seems to treat the program as its own hard drive files.

    The next thing I did was reinstall DAQmx 8.9 as the name of the file is visarc, I don't know that it is connected to DAQmx but the visarc makes me think it might be.  DAQmx reinstalling does not fix this error.

    I should also add that I was able to build a very good three weeks ago source distribution.  During the last three weeks the code was treated by myself and two other developers.  I had seen problems with other developers link dll from their office of vi in the library, and when I pulled it back on my machine, I have been unable to build a source distribution, because their DLLs have been at a different path.  I solved this problem of rebind each Subvi to the dll in the correct path.  Could be a similar problem where one of the other developers visarc stored in C:\Documents and Settins\Program files... and I just need to recreate a link to the visarc file?  I don't think so because I don't think "recreate a link to the visarc file" is since then.  I'm open to any feedback.

    Thank you!

    Here is a solution provided by an EA:

    Hi Jon,

    The following information should help you to resolve the error you see

    LabVIEW VIs point to the rc files that are not in the vi.lib.  This means if you move the VI on disk (upward in a folder, in a folder, another drive), then the path that he stored in the rc (relative path) is no longer correct.  The application builder will recognize that the rc file will have two different routes (the one which is correct and which is not).
    Once two different paths are recognized source distributions will not be built successfully.  To correct this problem, follow these steps:
    1. If you have any previous version of LabVIEW installed temporarily
    Rename the folders of their resources.  Directories of resources can be in the labview\resource directory.
    2. Add massCompAll = True in the file LabVIEW.ini version of LabVIEW
    used.  The file is located in labview\LabVIEW.ini.  LabVIEW must be closed when you change the LabVIEW.ini file.
    3. launch LabVIEW, mass compile the project, and then try the build.
    4. exit LabVIEW and difficulty of any renamed resource records again to their
    original name.
    5. remove the massCompAll = True token in the LabVIEW.ini file once the
    compilation of mass is over.
    Note: Rename files from older versions of LabVIEW resources is critical because the token defined otherwise has a chance to cause the vi.lib of the different versions of LabVIEW to be reticulated

    Meghan
    Technical sales engineer
    National Instruments

  • Purchase a new sealed copy of the upgrade of Windows Vista Edition diskette Home Premium. I found one on which the label says "for distribution in the United States / Canada only. Will this work without problems on a PC in the United Kingdom

    "U.S. / Canada Distribution only" disk for use in the United Kingdom?

    I want to buy a new copy sealed the Windows Vista Edition upgrade disk Home Premium. I found one on which the label says "for distribution in the United States / Canada only. Will this work without problems on a PC in the United Kingdom please? Thank you.

    Hello

    Yes, it will work. However I recommend to buy the disk to upgrade of the United Kingdom.

    The Windows Vista DVD upgrade that you get in the United Kingdom is different from what they get in the United States.

    Please follow the link menitoned.
    Choice of installation for consumer versions of Windows Vista (32-bit only)
    http://support.Microsoft.com/kb/932616
     
    I hope this helps.
  • 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

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

  • 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

  • PL/SQL, used in application of the APEX of unit tests

    question by my client:

    I develop an Oracle Application Express application and work on unit tests for stored procedures in PL/SQL and the packages that are stored in the underlying database and used by the application of the APEX. These unit tests must run in the context of SQL Developer Unit Test.
    The problem is that the PL/SQL code stored in the database using functions such as NV('APPLICATION_ITEM') to access items in the application of the apex. They do return all values when I try to execute the PL/SQL within the unit test framework, that is to say in the backend. While it is good that the NV is not error, NULL haven't really work well in my scenario either (for example when the result of this function is inserted into a column NOT NULL in a table). I can think of a few workarounds, such as the creation of my own function NV within the schema to test return values desirable, but nothing seems a really satisfactory solution. I wonder if there is no recommendation to Oracle for this scenario - how can I run code that uses the APEX via backend-specific features. I found nothing in the documentation of the APEX for this but I would like to know if there is a recommendation how to better deal with this case.

    I use SQL Developer version 4.0.0.13.80

    Hello

    Indeed, you must set your PL/SQL function calls. This would be the cleanest solution.

    There is an alternative. Please see the following article on the creation of an APEX in PL/SQL session: Martin Giffy D'Souza on Oracle APEX: how to create a Session of the APEX in PL/SQL

    This approach allows to set the values of APEX application item before you run your unit tests. I don't know if it's possible in SQL Developer Unit Test, but it might get you further down the road.

    Good luck

    Nick

  • OutOfMemoryError: Limit superior GC exceeded when loading directly the source using IKM sql for sql. Growing ODI_MAX_HEAP do not solve the problem.

    OutOfMemoryError: GC overhead limit at execution a loading interface directly sql for sql with no work table.

    I get the error message: error: exception OutOfMemoryError: higher GC limit exceeded when executing an interface making a direct using IKM SQL for SQL command load Append, source a 150millions lines table.

    I have increased the ODI_MAX_HEAP and the interface run longer and failed. I'm already at: ODI_MAX_HEAP = 12560 m I tested with ODI_MAX_HEAP = 52560 m and still error.

    I am following up to the memory of the server and I still have available memory...

    Apart from the problem of memory I know that this type of load should be possible because the step of data load on LKM SQL to Oracle is able to load the work table $ CAN. Ideally, I want to emulate this behavior by using SQL for SQL IKM.

    1 - What is the right path to follow here? (change the parameters of memory or modify the IKM?)


    2 - ideas on how to solve the OutOfMemoryError: GC overhead limit exceeded error? (GC means Garbage Collector)

    Execution of the IKM interface in the Simulator generates this code:

    Load (Source) command:

    Select

    source - tbl.col1 COL1,

    source - tbl.col2 COL2,

    source-tbl. "' COL3 ' COL3

    of public.source - tbl AS source-tbl

    where

    (1 = 1)

    Default command (Destination):

    insert into the source-tbl

    (

    col1,

    col2,

    COL3

    )

    values

    (

    : COL1,.

    : COL2.

    : COL3

    )

    My experience is very limited with ODI so I don't know about changing the code to the KMs

    Thanks in advance.

    Find a work around the error of generals limit exceeded GC:

    -in my case I was running without the IDE so that changes made to the odiparams.sh were not useful.

    -This means that I need to change the JVM settings to:

    $ODI_HOME/oracledi/client/odi/bin/odi.conf

    AddVMOption - XX: MaxPermSize = NNNNM

    $$ODI_HOME/oracledi/client/ide/bin/ide.conf

    AddVMOption - XmxNNNNM

    AddVMOption - XmsNNNNM

    Where NNNN is a higher value.

  • Failed to create the unit test repository, tools &gt; Unit Test &gt; salt current rep

    Hello

    I am trying to create a unit test in sql developer 2.1 in my local machine.

    According to the user's guide to running a Unit Test of your PL/SQL Oracle SQL Developer 2.1 mentions

    Select Tools > Unit Test > reference, and then select Select current deposit.
    It should prompt for connection of repository.

    In my sql developer, it does not prompt on repository selection current (it does no action).

    It has no parameters of preference or what could be the problem?


    Help, please.

    FYI: RC1 includes this fix and was published earlier today on OTN.

  • Nightly Ubuntu connects not with Ubuntu 11.10 3.0.0 - 17-generic, but firefox 11.0 kernel is still working in the same kernel version (the source of the problem since 3.0.0 - 16A gave no problem)

    Every night of Ubuntu does not connect (crashes and doesn't stop not withouyt one kill pkill or root) with Ubuntu 11.10 and the recent 3.0.0 - 17-generic kernel

    11.0 Firefox still works in the same kernel version and I use it now. The source of the problem is perhaps the core Ubuntu since 3.0.0 - 16 core gave no problem

    Hello

    Please also check if this happens in a new profile. If the new profile is correct, you can later copy the necessary personal data of the old profile. Firefox stores your personal data and settings in a different location (folder profile) separated from its files/folder. A new profile would default Firefox settings (Tools (Alt + T) > Options, and topic: config ) and usually also would be vacuum of Extensions and themes (appearance) in tools > Add-ons) and their parameters. In addition, a new profile would have no previous website stored data/settings etc, (Tools > clear recent history).

    Profiles Howto

    Files & profile folder

    Subject: config entries

    You may also be able to find useful info here.

Maybe you are looking for

  • Windows 7 is just starting in safe mode

    Hello Since yesterday, can I start only my operating system (windows 7) in safe mode. I tried to restore the startupfiles with the recovery dvd of windows, but I get the message that there is nothing wrong with the startupfiles. Then I took a glance

  • Pavilion 14-V015TX: my HP Pavilion 14-VO15TX sleeves to the top when power off or sleep mode

    First of all, I upgraded from Windows 8.1 for Windows 10 months ago. This problem came up to the top, it will not wake up when I put it on the mode 'sleep'. I read a post here about it and followed the instructions of update of "Intel(r) HD Graphics

  • After the upgrade to el capitan, cannot print Canon mp970

    Upgrade to El capitan in snow leopard, and now I can't print from my Canon mp970. I went to the site Web of Canon for a printer driver is compatible with the new operating system - found nothing. Found some threads on Apple support community and foun

  • IOException, while opening a Fileconnection

    Hi all I'm trying to show all of the pictures in my camera in my application. What I did is: (1) FileConnection created (2) explore the desired directory, now I found the name of all the images in this directory. (3) recover the Bitmaps 1 by 1 image

  • Automation of metadata in the planning management

    HelloIs it possible to automate the loading of metadata management in Hyperion planning? I am currently loading metadata using the files of ADS, but I was wondering what is the best way to automate this in the future for a customer? These files can b