Hacer pruebas unitarias y de integración / Unit Test in WebRatio

06 Nov '17, 08:41 PM
8,118 Views
Forum Forum Starter - Level 3

Hola, buen día a todos.

 

Alguno ha podido trabajar pruebas unitarias y de integración continua (tipo Jenkins), con proyectos en WebRatio.

 

Muchas gracias,

Jose Texier

 

-------------------English-----------------

Hi, good day to everyone.

 

Some have been able to work with unit tests and continuous integration (Jenkins type), with projects in WebRatio.

 

Thank you very much,

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 8

For this purpose it is possible to exploit the build from command line, defined by a buildfile.xml and then run the build from Jenkins or from another environment of continuous integration.

This video (https://my.webratio.com/learn/learningobject/how-to-build-webratio-mobile-projects-in-a-continuous-integration-environment-video-v-80) shows how to integrate an environment of continuous integration with build projects WebRatio Mobile. This articles contain the documentation about it, always for the version WebRatio Mobile:

  • https://www.webratio.com/learn/learningobject/how-to-build-webratio-mobile-projects-in-a-continuous-integration-environment-v-80
  • https://my.webratio.com/learn/learningobject/how-to-build-webratio-mobile-projects-in-jenkins-v-80

If you are working side Web documentation is available to build the build file using the WebRatio Product Documentation (available directly in WebRatio Platform: Help > WebRatio Product Documentation> Web Modeling User Guide> Tasks> Deploying from CommandLine).

You may still take into account the two resources on Mobile (the process is roughly the same) considering the following differences:

  • the procedure for Mobile Projects allows building also without starting WebRatio, the Web instead inevitably open the IDE

  • Mobile procedure allows you to declare the parameters and then evaluate them in Jenkins using the "Build with parameters" option, the same procedure you can apply it to the Web version, taking into account that the parameters will be different (comparable watching the related buildfile.xml)

To integrate the possibility of building Web projects in a Continuous Integration Jenkins as you can follow these simple steps:

  1. Enable commands ant command line (tutorial)

  2. Download Jenkins and add in a tomcat in the webapps folder. Start the tomcat and start the application Jenkins (eg. http://localhost:8080/Jenkins)

  3. From the dashboard main Jenkins create a new Item type Freestyle

  4. Configure the project (Build section) adding a Build Step type Invoke Ant

  5. The parameters are Build Step Targets = main and Build File is the absolute path to the XML file that describes the web project

  6. Save the configuration

  7. From the dashboard main Jenkins perform the build of the newly created project.

   
x 1
Forum Starter - Level 3

Thank you very much.

 

Very clear your explain.

 

Regars,

JD

 
x 0
Forum Expert - Level 5

Hello

The video is unavailable

 

 
x 0
Answer at this question and get points!

Related questions

500 error with WebRatio BPM A Commercial Hosting Service for the publication of a Website? Any sample deployment application not deploying properly Automatization of deployment AWS Elastic Beanstalk y Webratio Build Project. Only files for compilation .class Can I deploy an application to the cloud using RightScale and/or Scalr? Can I integrate Amazon S3 and/or Amazon CloudFront? Can I use Git with Webratio Cannot invoke method selectSingleNode() on null object Code is exceeding the 65535 bytes limit error on JBOSS Deploy de proyecto en HTTPS Deploying to CloudBees Deploy web project da riga di comando Error deploying Bookstore sample to cloud Error deploying WAR against to JBOSS Error testing mobil app in android From BPM to WebProject - BUILD FAILED "Generation Error" with Generate and Run Hide form until a flow is triggered How to accelerate the generation process? How to avoid language selection automatically according to the browser? how to delete this error? How to disble derby database? invio mail fallito JSP/DO issues on Tomcat 5.5 (Ubuntu) mandatory control code parameter is missing Page Home - First time the Project Web begins Problema al generar y ejecutar proyecto Problema ¨HTTP Status 404" problem on first deploy with webratio Problem with application runnung Problem with execution of webratio Project generation best practices redeployCheckInterval property REST connection and Mobile App deploy Root Context & Enterprise Project Sample web application Some hint before I generate and deploy a webapp on a 64-bit windows system? Start Job when WebApp starts Tomcat external session store and WebRatio webapp. Unable to compute the controller URL(s) for applicationUnable to compute the controller URL(s) for application having status PROVISIONING Unable to find Cloud free function Unspecified BPM Engine Database Use Running profile en project Webratio with Git support