<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font face="monospace">Hi Lera,</font></p>
    <p><font face="monospace">The problem is that '</font>clearCells.clearCells.test_clear_cells_all'
      doesn't exists in sc/qa/uitest/sort/sorting.py</p>
    <p><code>if you want to execute that test in
        sc/qa/uitest/calc_tests3/clearCells.py, you have to change the
        -file parameter in execute.sh.</code></p>
    <p><code>Cheers<br>
      </code></p>
    <p><code></code></p>
    <div class="moz-cite-prefix">On 20/5/22 8:59, Lera Goncharuk wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGA7uJT_ETDC_8germGxggx01tY8upmuHLwnkbd7=2RgDHOaQw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi!<br>
        <br>
        I made changes in uitest and now try to run it. But, I can not
        look for results running. <br>
        I try different ways, but the result is the same every time.<br>
        I test test_clear_cells_all in cleanCells module. [1]<br>
        <br>
        I use Kubuntu 20.04<br>
        Python 3.9<br>
        LibreOffice was cloned from git and build and stais on commit
        7d20dc2ca69711c61fb1593ad85ccdef282c978d.<br>
        <br>
        git clone <a href="https://gerrit.libreoffice.org/core"
          moz-do-not-send="true" class="moz-txt-link-freetext">https://gerrit.libreoffice.org/core</a>
        libreoffice<br>
        ./autogen.sh --enable-dbgutil --enable-debug --enable-symbols
        --with-help --with-symbol-config --with-lang="en"
        --with-locales="en ru "<br>
        make<br>
        <br>
        <br>
        Almost all tests run silently and give no information in the
        console.<br>
        I also can't find information in the logs in the
        workdir/PythonTest/ and workdir/UITest/ folders.<br>
         That is, there is information about the work of the tests, but
        not the Calc tests.<br>
        In workdir/PythonTest/sc_python/ I found done.log with:<br>
warn:i18nlangtag:15959:15959:i18nlangtag/source/isolang/mslangid.cxx:105:
        MsLangId::getConfiguredSystemLanguage() - not configured yet<br>
warn:i18nlangtag:15959:15959:i18nlangtag/source/isolang/mslangid.cxx:115:
        MsLangId::getConfiguredSystemUILanguage() - not configured yet<br>
        warn:vcl.layout:15959:15959:vcl/source/window/layout.cxx:288:
        nExtraSpace went negative, setting to zero for VclBox:<br>
        warn:vcl.layout:15959:15959:vcl/source/window/layout.cxx:288:
        nExtraSpace went negative, setting to zero for VclBox:<br>
        warn:svl.items:15959:15959:svl/source/items/itempool.cxx:441:
        old secondary pool: EditEngineItemPool of pool: XOutdevItemPool
        must be empty.<br>
.warn:vcl.schedule.deinit:15959:15959:vcl/source/app/scheduler.cxx:177:
        DeInit task: Timer a: 1 p: 1 graphic::Manager maSwapOutTimer
        10000ms (0x7fcddc173bc0)<br>
warn:vcl.schedule.deinit:15959:15959:vcl/source/app/scheduler.cxx:177:
        DeInit task: Timer a: 1 p: 1 sc ScModule IdleTimer 150ms
        (0x318d6b8) (ignored)<br>
warn:vcl.schedule.deinit:15959:15959:vcl/source/app/scheduler.cxx:197:
        DeInit active tasks: 2 (ignored: 1)<br>
        <br>
----------------------------------------------------------------------<br>
        Ran 1 test in 4.251s<br>
        <br>
        OK<br>
        creating a sheetdocument<br>
            disposing xSheetDoc<br>
        <br>
        <br>
        $ make UITest_sort<br>
        In console [UIT] sort, and I don't see any logs of Calc tests.<br>
        <br>
        <br>
        $make PythonTest_sc_python<br>
        In console [PYT] sc_python, and I don't see too.<br>
        <br>
        <br>
        I try to use a way described in wiki [2].<br>
        $ cat execute.sh  <br>
        export
        PYTHONPATH=/home/lera/project/libreoffice/instdir/program/<br>
        export
PYTHONPATH=$PYTHONPATH:/home/lera/project/libreoffice/unotest/source/python/<br>
        export
URE_BOOTSTRAP=<a class="moz-txt-link-freetext" href="file:///home/lera/project/libreoffice/instdir/program/fundamentalrc">file:///home/lera/project/libreoffice/instdir/program/fundamentalrc</a><br>
        export TestUserDir=<a class="moz-txt-link-freetext" href="file:///tmp">file:///tmp</a><br>
        export TDOC=/home/lera/project/libreoffice/sw/qa/uitest/data<br>
        export SAL_USE_VCLPLUGIN=gen<br>
        export LC_ALL=C<br>
        <br>
        rm -rf /tmp/libreoffice/7<br>
        <br>
        export SRCDIR="${SRCDIR:-$(pwd)}"<br>
        python3 "$SRCDIR"/uitest/test_main.py
        --soffice=path:"$SRCDIR"/instdir/program/soffice
        --userdir=<a class="moz-txt-link-freetext" href="file:///tmp/libreoffice/7">file:///tmp/libreoffice/7</a>
        --file="$SRCDIR"/sc/qa/uitest/sort/sorting.py<br>
        <div><br>
        </div>
        <div><br>
        </div>
        $
        UITEST_TEST_NAME="sorting.clearCells.clearCells.test_clear_cells_all"
        ../execute.sh<br>
----------------------------------------------------------------------<br>
        Ran 0 tests in 0.000s<br>
        OK<br>
        Tests run: 0<br>
        Tests failed: 0<br>
        Tests errors: 0<br>
        Tests skipped: 0<br>
        <br>
        <br>
        $ make UITest_sort
        UITEST_TEST_NAME="clearCells.clearCells.test_clear_cells_all"
        SAL_USE_VCLPLUGIN=gen<br>
        [UIT] sort<br>
        UITEST_TEST_NAME 'clearCells.clearCells.test_clear_cells_all'
        does not match any test<br>
        Error: a unit test failed:<br>
        To rerun just this failed test without all others, use:<br>
           make UITest_sort<br>
        Or to run just a specific test case method, use:<br>
           make UITest_sort
        UITEST_TEST_NAME="Module.ClassName.methodName"<br>
        where<br>
           Module - the name of the python file (without the .py
        extension)<br>
           Class - is the name in the "class Class" declaration<br>
        Or to do interactive debugging, run two shells with:<br>
           LANG=C SAL_USE_VCLPLUGIN=gen make debugrun<br>
           make gb_UITest_DEBUGRUN=T UITest_sort<br>
        The SAL_USE_VCLPLUGIN part is unnecessary if you are running on
        a kde desktop.<br>
        (The default gtk3 backend has issues with some uitests).<br>
        Failing that, put a<br>
           time.sleep(60)<br>
        in the beginning of the method in the .py file,<br>
        and attach gdb to the running soffice process.<br>
        make[1]: ***
        [/home/lera/project/libreoffice/solenv/gbuild/UITest.mk:60:
        /home/lera/project/libreoffice/workdir/UITest/sort/done] Ошибка
        1<br>
        make: *** [Makefile:169: UITest_sort] Ошибка 2<br>
        <div><br>
        </div>
        <div><br>
        </div>
        That talks no test clearCells.clearCells.test_clear_cells_all<br>
        But as I see the test exist [3] and tern on [4].<br>
        <br>
        uitest.uicheck runs only tests from uitests directory and
        doesn't contains tests for Calc. Its logs exist in
        workdir/UITest/<br>
        $ make uitest.uicheck<br>
        [BIN] top level modules: uitest<br>
        [LOC] top level modules: uitest<br>
        [ALL] top level modules: build-non-l10n-only build-l10n-only<br>
        [UIT] impress_demo<br>
        [UIT] demo_ui<br>
        [UIT] math_demo<br>
        [UIT] uitest<br>
        <br>
        My understanding of the work of the test code ends here, and I
        do not understand where to dig further.<br>
        <div>Why are the tests not running?</div>
        <div>If they run, then where should I look for the logs?</div>
        <div>If they don't run, how can I run them, and should I do it?</div>
        And if they don't start, then why do they exist? :)<br>
        <div><br>
        </div>
        <div><span class="gmail-VIiyi" lang="en"><span
              class="gmail-JLqJ4b gmail-ChMk0b"><span
                class="gmail-Q4iAWc">Tell me if I can provide more
                information.</span></span></span></div>
        Any ideas will help me move on, thanks.<br>
        <br>
        [1] <a
href="https://opengrok.libreoffice.org/xref/core/sc/qa/uitest/calc_tests3/clearCells.py?r=8b71bc7e#222"
          moz-do-not-send="true" class="moz-txt-link-freetext">https://opengrok.libreoffice.org/xref/core/sc/qa/uitest/calc_tests3/clearCells.py?r=8b71bc7e#222</a><br>
        <div>[2] <a
href="https://wiki.documentfoundation.org/Development/UITests#Running_the_test"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://wiki.documentfoundation.org/Development/UITests#Running_the_test</a></div>
        <div>[3] <a
href="https://opengrok.libreoffice.org/xref/core/sc/qa/uitest/calc_tests3/clearCells.py?r=8b71bc7e#222"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://opengrok.libreoffice.org/xref/core/sc/qa/uitest/calc_tests3/clearCells.py?r=8b71bc7e#222</a></div>
        <div>[4] <a
href="https://opengrok.libreoffice.org/xref/core/sc/UITest_calc_tests3.mk?r=66484d60"
            moz-do-not-send="true" class="moz-txt-link-freetext">https://opengrok.libreoffice.org/xref/core/sc/UITest_calc_tests3.mk?r=66484d60</a></div>
        <div><br>
        </div>
        <div>Best regards,</div>
        <div>Lera<br>
        </div>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Xisco Faulí
LibreOffice QA Team
IRC: x1sc0</pre>
  </body>
</html>