On 11/08/2011 05:40 PM, Benjamin Dreux wrote:
> Another question
>
> Should i replace the testrunner.js, the one created by the generator,
> by the one from headless.zip ?

No. It's a bit unfortunate that they have the same name, but they're two 
entirely different things. testrunner.js (from headless.zip) uses 
phantomJS to load the Testrunner application (also named testrunner.js), 
run the tests, grab the results and print them on the console. It 
essentially replaces the user loading the Testrunner in a browser and 
clicking the "Run" button.

>
> Le 8 novembre 2011 11:13, Benjamin Dreux<[email protected]>  a écrit :
>> Correct me if i'm wrong, but according to your explanation it seems
>> that the qooxdoo app need to be deployed.
>> Is it possible to give the path to the source text index ??

The Testrunner needs to be compiled, either the build or source 
(generate.py test-source) version. Why, is that a problem in your scenario?

>>
>> Regards
>>
>> Le 8 novembre 2011 11:02, Benjamin Dreux<[email protected]>  a écrit :
>>> Ignore my last response
>>>
>>> Le 8 novembre 2011 11:01, Benjamin Dreux<[email protected]>  a écrit :
>>>> I've tried to define a custom appearance and to use it in the
>>>> configureItem of my delegate.
>>>>
>>>> Unfortunately this doesn't seems to work.
>>>> Since, tree is a kind of list, maybe the treeItem background image is
>>>> override but the list item property.
>>>>
>>>>
>>>> Le 8 novembre 2011 10:35, Daniel Wagner<[email protected]>  a écrit :
>>>>> Hi Benjamin,
>>>>>
>>>>> the testrunner.js mentioned in the blog post[1] is not the generated
>>>>> Testrunner script, it's a separate file contained in the zip archive
>>>>> linked in the text:
>>>>>
>>>>> http://news.qooxdoo.org/wp-content/uploads/2011/11/headless.zip
>>>>>
>>>>> This is the script you run with phantomjs. It takes two command-line
>>>>> arguments: The namespace of the tests to be executed (e.g.<myapp>.test)
>>>>> and the URI of the Testrunner's index file, e.g.
>>>>> http://localhost/myapp/test/index.html
>>>>>
>>>>> (Make sure you've generated the Testrunner with the macro setting as
>>>>> described in the blog post, this is necessary so the phantomjs script
>>>>> can interact with it)
>>>>>
>>>>> Hope this clears things up.
>>>>>
>>>>>
>>>>> Regards,
>>>>> Daniel
>>>>>
>>>>> [1] http://news.qooxdoo.org/running-unit-tests-from-the-command-line
>>>>>
>>>>>
>>>>>
>>>>> On 11/08/2011 04:00 PM, Benjamin Dreux wrote:
>>>>>> HI
>>>>>> In an effort to make my js code more normal.
>>>>>> I'm trying to using the command line ( with in maven, but it just
>>>>>> execute the phantomjs executable )to run some qooxdoo tests.
>>>>>>
>>>>>> But i don't fully understand the way we need to use it.
>>>>>>
>>>>>> I've add the phantomjs to my /bin.
>>>>>> Then I run
>>>>>>
>>>>>> phantomjs<app-name>/test/script/testrunner.js<app-name>.test
>>>>>>
>>>>>> Then i read the post again, it says that there is a script that will
>>>>>> drive the testrunner.
>>>>>>
>>>>>> So i builded my test app once again.
>>>>>> And copied the testrunner.js in my<app-name>/test/script/testrunner.js
>>>>>> Once again i run
>>>>>> phantomjs<app-name>/test/script/testrunner.js<app-name>.test
>>>>>>
>>>>>> Here is my output
>>>>>>
>>>>>> 000268 qx.core.Init: Load runtime: 267ms
>>>>>> 000711 qx.testPageUri is not a valid key. Please see the API-doc of
>>>>>> qx.core.Environment for a list of predefined keys.
>>>>>> 000712 qx.core.Environment: qx.log.Logger.trace()
>>>>>> qx.core.Environment.get()
>>>>>> testrunner.runner.TestRunner.constructor()
>>>>>> testrunner.runner.TestRunner.constructor()
>>>>>> testrunner.GuiApplication.prototype.main()
>>>>>> qx.core.Init.ready()
>>>>>> qx.event.dispatch.Direct.prototype.dispatchEvent()
>>>>>> X()
>>>>>> qx.event.Manager.prototype.dispatchEvent()
>>>>>> qx.event.Registration.fireEvent()
>>>>>> qx.event.handler.Application.prototype.__cA()
>>>>>> qx.event.handler.Application.onScriptLoaded()
>>>>>> anonymous()
>>>>>> anonymous()
>>>>>> anonymous()
>>>>>> 000715 qx.core.Init: Main runtime: 445ms
>>>>>> 000735 qx.core.Init: Finalize runtime: 20ms
>>>>>>
>>>>>> The execution never end.
>>>>>>
>>>>>>
>>>>>> I had the idea that maybe the test namespace sould be the one of the
>>>>>> qooxdoo (the one in the exemple)
>>>>>> Here is my output
>>>>>> Unable to load page
>>>>>>
>>>>>>
>>>>>> Is there something that i'm missing ??
>>>>>>
>>>>>> Regards
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> RSA(R) Conference 2012
>>>>> Save $700 by Nov 18
>>>>> Register now
>>>>> http://p.sf.net/sfu/rsa-sfdev2dev1
>>>>> _______________________________________________
>>>>> qooxdoo-devel mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Benjamin Dreux
>>>> Analyste-Programmeur
>>>> Chaire de logiciel libre-Finance Social et solidaire
>>>> UQAM
>>>> Montréal
>>>>
>>>
>>>
>>>
>>> --
>>> Benjamin Dreux
>>> Analyste-Programmeur
>>> Chaire de logiciel libre-Finance Social et solidaire
>>> UQAM
>>> Montréal
>>>
>>
>>
>>
>> --
>> Benjamin Dreux
>> Analyste-Programmeur
>> Chaire de logiciel libre-Finance Social et solidaire
>> UQAM
>> Montréal
>>
>
>
>

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to