Installing ReadyAPI on a Jenkins EC2 instance using X11

This includes the steps to get ReadyAPI (with licence) running on an AWS EC2 instance and the commands needed to run the Jenkins job 



  • Login via SSH as ec2-user 
  • Install Java x64 to /opt/jdk1.7.0_67/:

 sudo -s  
 cd /opt  
 wget http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u67-linux-x64.tar.gz  
 tar zxvf jdk-7u67-linux-x64.tar.gz  
 rm jdk-7u67-linux-x64.tar.gz  

  • Install X11 Virtual Frame Buffer (for running headless tests in Jenkins):

 sudo yum install xorg-x11-server-Xvfb  

  • Ensure X11 forwarding is enabled for SSH server:

 X11Forwarding yes  

  • Prepare the Ready! API install directory:

 sudo mkdir /data/app/ReadyAPI-1.3.1  
 sudo chown jenkins:jenkins /data/app/ReadyAPI-1.3.1  

  • Reconnect the server using the user that will be using Ready! API (in this case "jenkins") with X11 forwarding enabled on the client:

 ssh -X -i ~/.ssh/AmazonKeys.pem jenkins@{jenkins URL}  

  • Download the latest version of Ready! API to the server:

 wget http://dl.eviware.com/ready-api/1.3.1/ReadyAPI-x64-1.3.1.sh  
 Downloads can be found here http://support.smartbear.com/downloads/readyapi/  

  • Ensure that the installer is executable:

 chmod +x ReadyAPI-x64-1.3.1.sh  

  • Run the installer from the command line: (This will open the installer windows in your local X session)

 ./ReadyAPI-x64-1.3.1.sh  

  • In the installer, ensure custom install is selected and choose the install path /data/app/ReadyAPI-1.3.1 Once installed, run Ready! API from the command line:

 /data/app/ReadyAPI-1.3.1/bin/ready-api.sh  

  • Wait for the GUI to load in your local X environment (may be a little slow). Register the product in the GUI. Running tests suites in headless mode To run tests in headless mode we need to start Xvfb before we start the build:

 /usr/bin/Xvfb :0 -screen 0 1024x768x24 &  

  • Then include this script (execute shell)in your Jenkins job:

 #!/bin/bash  
 export DISPLAY=:0.0  
 export PATH=/opt/jdk1.7.0_67/bin:$PATH  
 export JAVA_HOME=/opt/jdk1.7.0_67/bin/java  
 /data/app/ReadyAPI-1.3.1/bin/testrunner.sh -e http://{URL}:{Port}/ -s{Suite} -c{testcase} -r -j -fTestReports -I {readyAPI tests}.xml  

Comments

  1. Thanks for sharing a valuable post and its really very helpful.

    PHP Web Development Brisbane

    ReplyDelete
  2. Thanks for sharing the info. Wondering at which stage are we activating the ReadyAPI license?

    ReplyDelete
    Replies
    1. Hi, Depends on your use case.

      A lot of this can now be done with Postman. However ReadyAPI does have some nice features. Not to difficult a sell for most businesses

      Delete
  3. Good explanation,thanks for writing,it is useful for so many developers
    AWS Online Training

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. This comment has been removed by a blog administrator.

    ReplyDelete
  7. This comment has been removed by a blog administrator.

    ReplyDelete
  8. This comment has been removed by a blog administrator.

    ReplyDelete
  9. This comment has been removed by a blog administrator.

    ReplyDelete
  10. This comment has been removed by a blog administrator.

    ReplyDelete
  11. This comment has been removed by a blog administrator.

    ReplyDelete
  12. This comment has been removed by a blog administrator.

    ReplyDelete
  13. This comment has been removed by a blog administrator.

    ReplyDelete
  14. This comment has been removed by a blog administrator.

    ReplyDelete
  15. I must appreciate you for providing such a valuable content for us. This is one amazing piece of article. Helped a lot in increasing my knowledge.aws training in bangalore

    ReplyDelete
  16. Really a awesome blog for the freshers. Thanks for posting the information.devops training in bangalore


    ReplyDelete
  17. This comment has been removed by a blog administrator.

    ReplyDelete
  18. This comment has been removed by a blog administrator.

    ReplyDelete

  19. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
    AWS Online Training
    AWS Certification Training
    AWS Certification Course Online
    AWS Training
    AWS Online Course

    ReplyDelete
  20. A great website with interesting and unique material what else would you need.

    Data Science Course

    ReplyDelete
  21. I read that Post and got it fine and informative. Please share more like that...

    Data Science Training

    ReplyDelete
  22. Your post is really good thanks for sharing these kind of post but if anyone looking for Best Consulting Firm for Fake Experience Certificate Providers in hyderabad, India with Complete Documents So Dreamsoft Consultancy is the Best Place.Further Details Here- 9599119376 or VisitWebsite-https://experiencecertificates.com/experience-certificate-provider-in-Hyderabad.html

    ReplyDelete
  23. Very delightful blog post!! I am glad to have your blog post to read. Video streaming trend is emerging and evolving more with video streaming app development company.

    ReplyDelete
  24. I really appreciate your information which you shared with us. If anyone who want to create his/her career in python So Contact Here-+91-9311002620 Or Visit our website https://www.htsindia.com/Courses/python/python-training-institute-in-south-delhi

    ReplyDelete
  25. Hi, I am John Smith I am Web Developer, It is an amazing blog thanks for the sharing the blog. Frantic infotech provide the custom software development company such as an information about software development for costumer service. Frantic infotech also provide the tablet app development company. The development of advanced web applications is Orient Software’s specialty and we will successfully fulfill all your web application development requirements, from small-sized to wider-ranged projects.

    ReplyDelete
  26. Movavi Video Editor 22.4.1 Crack 2022 download activation key offers new and attractive effects, transitions, and other video editing tools. Movavi Video Editor 11 Cracked

    ReplyDelete

Post a Comment

Popular posts from this blog

Running Postman tests on Jenkins using Newman and AWS (Ubuntu 14.04)

Installing Testlink (Test Management Tool) on Ubuntu 12.04 (AWS EC2) with URL Rewrite