planetfederal / qgis-webappbuilder-plugin

GNU General Public License v3.0
18 stars 20 forks source link

test "Web App Builder-Verify stop compilation with EnterpriseTestDesktop user" fails #398

Closed gioman closed 7 years ago

gioman commented 7 years ago

The functionality to stop the compilation works as expected.

The manual test in tester plugin fails with a python error:

Test name: Web App Builder-Verify stop compilation with EnterpriseTestDesktop user
Test result:Test failed at step 'Verify if StartApp button is set' with message:
u'CreateApp' != 'CreateApp (Beta)'
Traceback (most recent call last):
  File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 119, in runNextStep
    execute(step.function)
  File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute
    return func()
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\testerplugin.py", line 197, in <lambda>
    stopCompilationTest.addStep("Verify if StartApp button is set", lambda: checkStartoStopButton(text='CreateApp (Beta)') )
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\testerplugin.py", line 181, in checkStartoStopButton
    tc.assertEqual(dlg.buttonCreateOrStopApp.text(), text)
  File "C:\PROGRA~1\BOUNDL~1\Desktop\1.0\osgeo4w\apps\Python27\lib\unittest\case.py", line 515, in assertEqual
    assertion_func(first, second, msg=msg)
  File "C:\PROGRA~1\BOUNDL~1\Desktop\1.0\osgeo4w\apps\Python27\lib\unittest\case.py", line 508, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: u'CreateApp' != 'CreateApp (Beta)'
gioman commented 7 years ago

if I first stop, then click on "next step" the test fails with a slightly different error:

Test name: Web App Builder-Verify stop compilation with EnterpriseTestDesktop user
Test result:Test failed at step 'Verify if stop button is set' with message:
u'CreateApp' != 'Stop'
Traceback (most recent call last):
  File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 142, in runNextStep
    execute(step.function)
  File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute
    return func()
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\testerplugin.py", line 195, in <lambda>
    stopCompilationTest.addStep("Verify if stop button is set", lambda: checkStartoStopButton(text='Stop') )
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\testerplugin.py", line 181, in checkStartoStopButton
    tc.assertEqual(dlg.buttonCreateOrStopApp.text(), text)
  File "C:\PROGRA~1\BOUNDL~1\Desktop\1.0\osgeo4w\apps\Python27\lib\unittest\case.py", line 515, in assertEqual
    assertion_func(first, second, msg=msg)
  File "C:\PROGRA~1\BOUNDL~1\Desktop\1.0\osgeo4w\apps\Python27\lib\unittest\case.py", line 508, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: u'CreateApp' != 'Stop'
luipir commented 7 years ago

I'll give a look

luipir commented 7 years ago

fixed test with 2cd59a6d627291ade2478a77aa216f8e905d0869 please reopen if you finjd problems