<div dir="auto"><div>Hi Xisco, </div><div dir="auto"><br></div><div dir="auto">Thank you a lot for the explanation! </div><div dir="auto">Now I got it.  I will try.<br></div><div dir="auto"><br></div><div dir="auto">Best regards, </div><div dir="auto">Lera</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">пт, 20 мая 2022 г., 11:41 Xisco Fauli <<a href="mailto:xiscofauli@libreoffice.org">xiscofauli@libreoffice.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div>
    <p><font face="monospace">Hi Lera,</font></p>
    <p><font face="monospace">No, '</font>make PythonTest_sc_python'
      executes the tests in sc/qa/python as you can see in
      sc/PythonTest_sc_python.mk</p>
    <p>In order to run all the uitests in sc, use 'make sc.uicheck'</p>
    <p>You can see the logs in workdir/UITest/<br>
    </p>
    <div>On 20/5/22 10:28, Lera Goncharuk wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="auto">
        <div>Hi Xisco,</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Thank you a lot. </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">It is right that $make PythonTest_sc_python
          executes all uitests in sc module? </div>
        <div dir="auto">Where do I see running logs of them? </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Best regards, </div>
        <div dir="auto">Lera</div>
        <div dir="auto"><br>
          <br>
          <div class="gmail_quote" dir="auto">
            <div dir="ltr" class="gmail_attr">пт, 20 мая 2022 г., 10:53
              Xisco Fauli <<a href="mailto:xiscofauli@libreoffice.org" rel="noreferrer noreferrer" target="_blank">xiscofauli@libreoffice.org</a>>:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div>
                <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>On 20/5/22 8:59, Lera Goncharuk wrote:<br>
                </div>
                <blockquote type="cite">
                  <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" rel="noreferrer noreferrer noreferrer" target="_blank">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 rel="noreferrer noreferrer noreferrer">file:///home/lera/project/libreoffice/instdir/program/fundamentalrc</a><br>
                    export TestUserDir=<a rel="noreferrer noreferrer noreferrer">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 rel="noreferrer noreferrer noreferrer">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 lang="en"><span><span>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" rel="noreferrer noreferrer noreferrer" target="_blank">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" rel="noreferrer noreferrer noreferrer" target="_blank">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" rel="noreferrer noreferrer noreferrer" target="_blank">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" rel="noreferrer noreferrer noreferrer" target="_blank">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 cols="72">-- 
Xisco Faulí
LibreOffice QA Team
IRC: x1sc0</pre>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <pre cols="72">-- 
Xisco Faulí
LibreOffice QA Team
IRC: x1sc0</pre>
  </div>

</blockquote></div></div></div>