it worked overriding the getTemporaryWebtestResourcesFolder(). But the
running.txt file is still being saved in the root directoru of the project.
It would be really great if we can include the info under running.txt in the
index page while the tests are running.

At the moment is showing me:
"Running tests:  "


but nothing is being shown.* Could this be a feature request?
*

2009/12/9 Hernan Castagnola <[email protected]>

> I will try extending WebtestCase and overriding this
>
>     protected File getTemporaryWebtestResourcesFolder() {
>         def thisClassFileName = this.class.name.replace('.',
> File.separator) + ".class"
>         def thisClassFileUrl =
> this.class.classLoader.findResource(thisClassFileName)
>         def thisClassFileFile = new File(thisClassFileUrl.toURI())
>         def classFilesDir = new File(thisClassFileFile.absolutePath -
> thisClassFileName)
>         return new File(classFilesDir, "webtest-resources")
>     }
>
> if anyone knowns a better solution I will appreciate it
>
>
>
> 2009/12/9 Hernan Castagnola <[email protected]>
>
>> some additional info I found:
>>
>> Settings.getResultsPath() returns "../results/hernan/dev/09/12/09"
>>
>>
>>  public void testCountryLevel() {
>> .
>> .
>> .
>> .
>>       webtest("Homepage Follow/NoFollow - Country:$country.id") {
>>         homepageA = new WebTestOlxHomepageActions(ant, homepageV)
>>         config(haltonerror: "false", haltonfailure: "false", browser:
>> 'ff3', resultpath:Settings.getResultsPath()) {
>>           option name: "ThrowExceptionOnScriptError", value: "false"
>>         }
>>         homepageA.goTo()  * (breakpoint)*
>>         homepageA.checkNoFollow()
>>
>>       }
>>     }
>>   }
>>
>> on WebTesBuilder
>> *
>> WebTesBuilder.project.references.ant.parsing.context*
>>
>> buildFile = ......./target/test-classes/webtest-resources/webtest.xml
>> *
>>
>> WebTesBuilder.project.references.ant.targets.wt.htmlReports.init*
>>
>> location = ......./target/test-classes/webtest-resources/webtest.xml
>> *
>>
>> WebTesBuilder.project.references.ant.targets.wt.htmlReports*
>>
>> location = ......./target/test-classes/webtest-resources/webtest.xml
>>
>> thanks
>>
>> 2009/12/9 Hernan Castagnola <[email protected]>
>>
>> q: *Is there any way I can get the complete report to be save in a
>>> different path?*
>>>
>>> Hi everybody,
>>>
>>>                     I have recently changed the resultpath attribute of a
>>> test to save the results in a specific directory but the index file is not
>>> being created.
>>>
>>> This is what I am trying to do:
>>>
>>> The team is going to be running test cases on a server, and I what to
>>> persist the results according to the user/environment/execution. So I would
>>> like to have the following file structure:
>>>
>>>
>>>    -   executions
>>>       -   results
>>>    - hernan
>>>             - dev
>>>                - 090912
>>>                - qa
>>>             - live
>>>          - pepe
>>>             - dev
>>>                - Monday
>>>                - Tuesday
>>>             - qa
>>>                - 0
>>>                - 1
>>>                - 2
>>>                - live
>>>          - dalily (cron that runs some tests)
>>>             - dev
>>>             - qa
>>>             - live
>>>          - weekly (cron that runs some other tests)
>>>             - dev
>>>             - qa
>>>             - live
>>>
>>>
>>>     once I run:
>>>     mvn test -Dtester=daily -Denvironment=dev -Dexecution=$(date
>>> '+%y/%m/%d')
>>>
>>> it runs:
>>>
>>> public void testCountryLevel() {
>>>  .
>>>  .
>>>  .
>>>    webtest("Homepage Follow/NoFollow - Country:$country.id") {
>>>         homepageA = new WebTestOlxHomepageActions(ant, homepageV)
>>>         config(haltonerror: "false", haltonfailure: "false", browser:
>>> 'ff3', resultpath:Settings.getResultsPath()) {
>>>           option name: "ThrowExceptionOnScriptError", value: "false"
>>>         }
>>> .
>>> .
>>> .
>>>  }
>>>
>>> and then on  /daily/dev/09/12/09/ it's saving:
>>>
>>> the folders of each webTest with the following files
>>>
>>>    - the invokes
>>>    - webtestReport.html
>>>    - webtestSummary.xml
>>>    - webtestReport.xml
>>>
>>> but I am not getting the *index* file (summary of all test cases). *Is
>>> there any way I can get the complete report to be save in a different path?
>>> *
>>>
>>> thanks in advance,
>>>
>>> Hernan
>>>
>>
>>
>

Reply via email to