Skip to main content

Selenium Test Integration with Testlink

Selenium Test Integration with Testlink

The following guide will show to configure selenium to report directly the automated test execution to Testlink.
Download the files needed:
Notes:
  • In order to make this work, make sure you can add the libraries of the Testlink client API package to your project.
  • Your Testlink project must have the test cases as automatic execution and project must be enabled for automation.
Generate an API key from testlink
  1. Go to http://localhost/testlink and login with your credentials
  2. Go to My Settings and generate a new api key.
Create a simple java application.
    1. Create an interface class named IConstants and paste the following code:
public interface IConstants {
        final String DEVKEY = "<code generated by testlink>";
        final String URL = "http://localhost/testlink/lib/api/xmlrpc.php";
        final String PROJECTNAME = "Testing Project";
        final String TESTPLANNAME = "Test Plan Demo";
        final String BUILDNAME = "Build Demo";
        final String TESTCASENAME = "Test Last Name";
    }

Comments

  1. hello, can you tell me, where do I save java files?... sorry for my english, but, I dont speak .... thanks

    ReplyDelete
  2. Hola, tienes que tener un proyecto creado en eclipse como lo indiqué en el paso 3. No te preocupes por el inglés ;)

    ReplyDelete
  3. XD ok, te cuento, no me funciona, las librerias me tiran error ya que las librerias que comienzan con org no las encuentra, baje todos los archivos y los agrege pero solo reconoces las librerias testlink, estoy con las versiones 1.9.9. de testlink y la version 2.39 de selenium... saludos

    ReplyDelete
  4. Si gustas, puedes pasarme unos pantallazos para darle una ojeada a ver que podría ser, esto lo hice ya hace un tiempo como ves, quizá haya un problema con alguna librería actualizada. Saludos

    ReplyDelete
  5. hola, tengo creado el proecto, pero me da problemas la libreria en jenkins, sabes por qué puede ser?

    ReplyDelete
  6. Hola,
    Podrías incluir aquí el error que te está dando?

    Este blog es bastante antiguo y probablemente cosas hayan cambiado desde entonces. Trataré de actualizar el contenido.

    ReplyDelete

Post a Comment