[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4505: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4507: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4508: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
From Flames To Fork, Comes Freedom • View topic - Jenkins Setup for comprehensive ERP testing

Jenkins Setup for comprehensive ERP testing

Automated Testing Tools are used to assure modifications are always backward compatible and safe for production
Forum rules
This forum is personally pruned to avoid redundant posts. Related topics are moved to the same sub-forum. Language will be corrected for readability.

Jenkins Setup for comprehensive ERP testing

Postby red1 » Thu Dec 01, 2011 4:30 am

This documents the way Jenkins Continuous Integration Build Server is set up to give a comprehensive Quality Assurance environment for the ADempiere361/iDempiere project. You can see a live demo at http://berliserv.net:8080/
Sequence of testing:
1. adempiere361
2. Database
3. Silentsetup
4. Server2
5. WebUITesting

jenkinsCompletePanel.png
jenkinsCompletePanel.png (168.2 KiB) Viewed 5430 times

The above has projects set up for the pulling of any code change from the trunk repository, then build it, apply the database seed and migration scripts since last release, and then run Fitnesse business logic tests for the Java client, then run the application server, and run the Selenium testing of the ZK Web interface. Lastly you can test the RUN_Server2Stop of the Apps Server.

jenkinsSuccess.png
jenkinsSuccess.png (155.8 KiB) Viewed 5430 times

Above is the that opens the Webstore, check a product category, login into the ZK UI, search for the Sales Order item, launch it, create a new Std Order, assign a Business Partner and Warehouse, creates two orderlines of different products and qtys, toggle the gridviews, then return to the main tab and confirm the order.

There is Selenium grid to use but there are sometimes conflicts within the Debian server that hosts these and you may have to setup the following:
1. Firefox profile from headless Firefox in the Debian server
2. An init.d script for Selenium to run in the background
3. Jboss of ADempiere set to another port as it conflicts with port 4444 of Selenium

In next post will be the init.d script, Jenkins build and bash shell scripts. All work is committed to http://adempiere.svn.sourceforge.net/vi ... eleniumHS/

Main persons to thank are banym Dominik Zajac of BayCIX / D2C2 of Munich, Germany,
didiber Dietmar Berlinger of PROMANDANT AUSTRIA.

THIS CONTRIBUTION IS SPONSORED BY SYSNOVA (Thanks to ZeeShan).
red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Re: Jenkins Setup for comprehensive ERP testing

Postby red1 » Thu Dec 01, 2011 5:16 am

red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Re: Jenkins Setup for comprehensive ERP testing

Postby red1 » Fri Dec 02, 2011 3:06 am

The following are Configure settings for each project in the Jenkins stack.

Firstly for the Project adempiere361. You can see the artifacts that it fetches also.

Screen Shot 2011-12-02 at 1.15.46 AM.png
Screen Shot 2011-12-02 at 1.15.46 AM.png (117.22 KiB) Viewed 5409 times

Here are screenshots for Project adempiere361 showing the affected settings. Those not shown here are blanks:

Screen Shot 2011-12-02 at 1.35.44 AM.png
Screen Shot 2011-12-02 at 1.35.44 AM.png (27.29 KiB) Viewed 5409 times


Screen Shot 2011-12-02 at 1.35.59 AM.png
Screen Shot 2011-12-02 at 1.35.59 AM.png (25.19 KiB) Viewed 5409 times

Next is Database which runs the 01_install_db.sh script to get the Postgresql database to the latest migration DB changes.

Screen Shot 2011-12-02 at 1.43.07 AM.png
Screen Shot 2011-12-02 at 1.43.07 AM.png (89.91 KiB) Viewed 5409 times


Screen Shot 2011-12-02 at 1.43.40 AM.png
Screen Shot 2011-12-02 at 1.43.40 AM.png (44.45 KiB) Viewed 5409 times

With code and DB done, we RUN_silentsetup:

Screen Shot 2011-12-02 at 1.53.37 AM.png
Screen Shot 2011-12-02 at 1.53.37 AM.png (38.91 KiB) Viewed 5409 times


Screen Shot 2011-12-02 at 1.53.05 AM.png
Screen Shot 2011-12-02 at 1.53.05 AM.png (44.71 KiB) Viewed 5409 times

Then (after Fitnesse - covered in another thread) we look at the Server2 project which will run 03_Server2.sh which as the name suggests, will RUN_Server2 shell script so that the Application and Web server will run and you can access the Web UI via http://berliserv.net:8088 but most important the Selenum tests can run off it.

Screen Shot 2011-12-02 at 1.46.31 AM.png
Screen Shot 2011-12-02 at 1.46.31 AM.png (55.61 KiB) Viewed 5409 times


Screen Shot 2011-12-02 at 1.46.55 AM.png
Screen Shot 2011-12-02 at 1.46.55 AM.png (44.57 KiB) Viewed 5409 times

After this is the Server2Stop step which is self-explanatory and similar to above does not have any source code management but the related script.

Lastly we see the Selenium testing which is not using the Selenium Grid plugin due to a conflict with Firefox profile finding. Thus the workaround is to run Selenium in the background and you can
even do that as another bash shell script in a separate project configuration.

Screen Shot 2011-12-02 at 2.47.47 AM.png
Screen Shot 2011-12-02 at 2.47.47 AM.png (49.57 KiB) Viewed 5409 times

In the above you see the artifacts taken from the SVN repository it is pointing to, and this is how easy Jenkins is making artifacts visible for further usage by the shell script.

Screen Shot 2011-12-02 at 2.59.00 AM.png
Screen Shot 2011-12-02 at 2.59.00 AM.png (61.11 KiB) Viewed 5409 times

Screen Shot 2011-12-02 at 2.59.11 AM.png
Screen Shot 2011-12-02 at 2.59.11 AM.png (37.55 KiB) Viewed 5409 times

Note in the above that you need the Xvnc plugin to set the DISPLAY number to the environment variable.
red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia


Return to Quality Assurance

Who is online

Users browsing this forum: No registered users and 1 guest