Uniface User Forum

 View Only
  • 1.  Custom testing from IDF/IDE

    Posted 12-08-2020 18:48

    Hi Unifacers,

    I would like to build a dedicated testing environment out of test from development environment.
    First thing first, I need to pass current component being modified to my separate uniface application.

    How to do that?

    I've understood component name under modification is maintained from IDF into $p_formname$ local variable of component UUETXN65, the one starting test mode.
    I've tried to start my uniface application using %%$p_formname$%%% as parameter but I am finding that exact string "%%$p_formname$%%%" into my separate Uniface application, without any substitution.

    Any idea?

    Gianni




  • 2.  RE: Custom testing from IDF/IDE
    Best Answer

    Posted 12-09-2020 19:40

    Hi

    In version 9, current component is in $$UP_0 (UUETXN65 updates $p_formname$ from it, probably).

    In version 10, it seems easier by defining an editorMenuCallback. The option is going to appear at Actions menu and as first parameter you will receive the object url (cpt:CURRENT_COMPONENT).

    Hope this helps



  • 3.  RE: Custom testing from IDF/IDE

    Posted 12-10-2020 07:15

    Hi Luis,

    THANKS! That's what I was looking for... 🙂

    Gianni



  • 4.  RE: Custom testing from IDF/IDE

    ROCKETEER
    Posted 12-10-2020 16:39

    Hi,

    There are also a test logicals available in the IDE which might help you

    ; IDE Test Logicals: Customize the command used to test form, report, and service components. 
    ; The default command uses the current IDE configuration.
    TEST_COMMAND_CPT = %ExeFile /adm=%AdmDir /dir=%WorkDir /asn=%AsnFile /ini=%IniFile /tst %CptName

    Kind regards,

    Mike



  • 5.  RE: Custom testing from IDF/IDE

    Posted 12-09-2020 19:49

    Hi Gianni,


    I don't understand the exact Problem.

    What is your requirement?

    Do you need to transfer compiled resources to your test environment?

    Do you want to run IDE.exe or UNIFACE.exe?

    What about IDE Menu Plug-Ins and "spawn" the application?


    Regards

    Norbert