-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Centos 6
Hi,
i try to run some selenium test and put results in TestLink but it doesn't work and I don't have any error.
_____________________________________________
genConf:
- jenkins : 1.547
- testlink : 1.9.9
- plugginTestlink : 3.10
_____________________________________________
TestLinkConf: - TestProject name : SomkeTest
- TestSuite name : MyTestSuite
- Testcase name : MyTestCase
- TestPlan name : My first test plan
- Custom Fields name : Example
- Custom fields value : hudson.plugins.testlink.examples.TestCurrentTime
_____________________________________________
Jenkins project conf:
Build :
Testlink version : 1.9.9
TestProject name : SomkeTest
TestPlan name : My first test plan
Build name : examples-$BUILD_NUMBER
Custome fields : Example
Result Seeking Strategy:
Junit Class name:
Inlude pattern : build/log/phpunit.xml
key custom field : Example
Attach JUnit XML : check
Include test notes : check
_____________________________________________
Ant build.xml
<project name="monappli" default="build">
<target name="build" depends="clean,prepare,phpunit"/>
<target name="clean">
<delete dir="build/report"/>
<delete dir="build/log"/>
</target>
<target name="prepare">
<mkdir dir="build/report"/>
<mkdir dir="build/log" />
</target>
<target name="phpunit" description="Run Selenium Test">
<exec command="phpunit --log-junit ${basedir}/build/log/phpunit.xml /var/lib/jenkins/workspace/TestLink/test/TestConSel.php"/>
</target>
</project>
_____________________________________________
Scipt selenium (TestConSel.php):
<?php
class Example extends PHPUnit_Extensions_SeleniumTestCase
{
protected function setUp()
public function testMyTestCase()
{ $this->open("/connexion"); $this->click("id=connexion-submit"); $this->waitForPageToLoad("30000"); $this->select("name=user", "label=totot"); $this->waitForPageToLoad("30000"); $this->select("name=user", "label=tata"); $this->waitForPageToLoad("30000"); $this->click("css=#menuLeftPanel > div.row-fluid > div.span12 > #menuLeft > li > a"); $this->waitForPageToLoad("30000"); $this->click("link=Déconnexion"); $this->waitForPageToLoad("30000"); }}
?>
_____________________________________________
selenium result (phpunit.xml):
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="Example" file="/var/lib/jenkins/workspace/TestLink/test/TestConSel.php" tests="1" assertions="0" failures="0" errors="0" time="28.333098">
<testcase name="testMyTestCase" class="Example" file="/var/lib/jenkins/workspace/TestLink/test/TestConSel.php" line="11" assertions="0" time="28.333098"/>
</testsuite>
</testsuites>
_____________________________________________
Jenkins console :
Démarré par l'utilisateur anonymous
Building in workspace /var/lib/jenkins/workspace/TestLink
Préparation du client de lAPI TestLink.
URL utilisée: http://localhost/testlink-1.9.9/lib/api/xmlrpc/v1/xmlrpc.php
Trouvé 1 Cas de Test Automatisés TestLink.
Tri des cas de test par lordre dexécution du plan de test TestLink.
Exécution de Build Steps unique.
Fusion des variable denvironnement du build avec les variables de TestLink.
[TestLink] $ ant
Buildfile: build.xml
clean:
[delete] Deleting directory /var/lib/jenkins/workspace/TestLink/build/report
[delete] Deleting directory /var/lib/jenkins/workspace/TestLink/build/log
prepare:
[mkdir] Created dir: /var/lib/jenkins/workspace/TestLink/build/report
[mkdir] Created dir: /var/lib/jenkins/workspace/TestLink/build/log
phpunit:
[exec] The command attribute is deprecated.
[exec] Please use the executable attribute and nested arg elements.
[exec] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/apc.so' - /usr/lib/php/modules/apc.so: undefined symbol: pcre_exec in Unknown on line 0
[exec] PHPUnit 3.7.29 by Sebastian Bergmann.
[exec]
[exec] .a
[exec]
[exec] Time: 28.47 seconds, Memory: 1.75Mb
[exec]
[exec] OK (1 test, 0 assertions)
build:
BUILD SUCCESSFUL
Total time: 30 seconds
Exécution de Build Steps itérative.
Recherche du résutat du cas de test de TestLink.
Recherche de résutats de test dans les classes JUnit.
1 résultats de test trouvés.
Finished: SUCCESS
I follow http://tupilabs.com/books/jenkins-testlink-plugin-tutorial/en/book.pdf to find some answers, but It does not work