wa2387 hands-on soapui - webagesolutions.com sure the launch the mysql instance ... __9. the mysql...

34
WA2387 Hands-On soapUI - Classroom Setup Guide WA2387 Hands-On soapUI Classroom Setup Guide Web Age Solutions Inc. © Web Age Solutions Inc. 1

Upload: duongcong

Post on 28-May-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

WA2387 Hands-On soapUI - Classroom Setup Guide

WA2387 Hands-On soapUI

Classroom Setup Guide

Web Age Solutions Inc.

© Web Age Solutions Inc. 1

WA2387 Hands-On soapUI - Classroom Setup Guide

Table of ContentsPart 1 - Minimum Hardware Requirements .........................................................................................3Part 2 - Minimum Software Requirements ...........................................................................................3Part 3 - Software Provided....................................................................................................................4Part 4 - Important Ghosting or Imaging Information............................................................................4Part 5 - Instructions...............................................................................................................................4Part 6 - Installing JDK 7 Update 45......................................................................................................5Part 7 - Verification of JDK 7 Update 45..............................................................................................9Part 8 - Verification of Apache Tomcat 7.0.65....................................................................................11Part 9 - Verification of groovy-2.4.5...................................................................................................12Part 10 - Installing MySQL 5.5.46......................................................................................................13Part 11 - Verification of Apache ActiveMQ-5.11.1.............................................................................19Part 12 - Installing SoapUI_5.2.1........................................................................................................20Part 13 - Installing SoapUI_5.1.2(PRO).............................................................................................25Part 14 - Installing ReadyAPI(SOAPUI PRO NG).............................................................................30Part 15 - Summary...............................................................................................................................34

© Web Age Solutions Inc. 2

WA2387 Hands-On soapUI - Classroom Setup Guide

Part 1 - Minimum Hardware Requirements

● CPU to meet the minimum requirements of the operating system being used

● 3 GB RAM minimum

● 25 GB in the hard disk

● Internet

Part 2 - Minimum Software Requirements

● Windows 7 (Professional, Enterprise, or Ultimate)● The following updated web browsers:

○ Internet Explorer

○ Firefox

○ Chrome

● Adobe Acrobat Reader

● Zip extraction utility

● Apache ActiveMQ 5.11.1 *

● Apache Tomcat 7.0.65 *

● Groovy 2.4.5 *

● JDK 7u45 *

● MySQL 5.5.46 *

● MySQL Connector 5.1.37 *

● SoapUI 5.2.1 *

* - indicates software provided as part of the courseware.

© Web Age Solutions Inc. 3

WA2387 Hands-On soapUI - Classroom Setup Guide

Part 3 - Software Provided

List of ZIP files required for this course and used in next steps on this document:

WA2387_REL_xxx.ZIP

Send an email to [email protected] in order to obtain a copy of the software for this course if you haven't receive it yet.

All other software listed under Minimum Software Requirements is either commercially licensed software that you must provide or software that is freely available off the Internet.

Part 4 - Important Ghosting or Imaging Information

Some of the software installed for this course will not function after changing the computer hostname. As such, cloning or imaging should not be used on a fully installed system.

You can save time by extracting the contents of the USB memory stick to C:\ on a clean OS install (no other software installed) and then imaging that hard drive. After restoring the image to the other computers and changing the hostnames, you can then install the software on each computer individually by following the instructions that are detailed later in this document.

Part 5 - Instructions

__1. Extract all the .ZIP files to C:\

__2. Review that the following folders were created:

• C:\LabFiles

• C:\Software\apache-activemq-5.11.1-bin

• C:\Software\apache-tomcat-7.0.65

• C:\Software\groovy-2.4.5

• C:\Software\mysql-connector-java-5.1.37

• C:\Software\SoapUI-Pro

© Web Age Solutions Inc. 4

WA2387 Hands-On soapUI - Classroom Setup Guide

__3. Review that the following files were created:

• C:\Software\jdk-7u45-windows-i586.exe

• C:\Software\mysql-5.5.46-win32.msi

• C:\Software\ReadyAPI-x32-1.5.0.exe

• C:\Software\SoapUI-x32-5.2.1.exe

__4. Disable the Firewall.

__5. Make sure the student has a administrator account in order to preform the labs.

__6. Make sure the C:\LabFiles and C:\Software folders are not read only.

Part 6 - Installing JDK 7 Update 45

__1. Make sure there is no previous Java version already installed on the system. You can check this by using the Windows “Add/Remove Programs” utility. For the best compatibility with the labs it is suggested that all previous versions of Java be uninstalled before proceeding with these instructions. If this is an issue, please contact the setup support person for the course.

__2. From the C:\Software directory run the following file: jdk-7u45-windows-i586.exeNote: If using prompted by a security prompt allow the installation to continue.

__3. When the initial step of the setup appears, press the Next button.

__4. Leave the defaults for installation location and options, and press the Next button.

© Web Age Solutions Inc. 5

WA2387 Hands-On soapUI - Classroom Setup Guide

Note: The installation directory may be slightly different for example C:\Program Files (x86)\Java\jdk1.7.0_45

The installation will begin installing files.

__5. The Destination Folder will appear, leave the default folder and click Next.

Note: The installation directory may be slightly different for example C:\Program Files (x86)\Java\jdk1.7.0_45

Wait until the software is completely installed.

__6. Click Close.

© Web Age Solutions Inc. 6

WA2387 Hands-On soapUI - Classroom Setup Guide

__7. Close any browser that appears asking to register the JDK software.

Set the Environment variables.

__1. Open a Command Prompt. You can do this with 'Start → Programs → Accessories → Command Prompt'.

__2. Use the 'cd' command to attempt to switch to the following directory. This will verify the presence of a directory used later so make sure you do not get any errors about not being able to “find the path specified”.cd C:\Progra~1\Java\jdk1.7.0_45

Note: The installation directory may be slightly different depending your operating system. You may need to use the following directory instead of the one listed above:

C:\Progra~2\Java\jdk1.7.0_45

Some of the remaining steps will use the slightly different directory.

__3. Make sure you can reach the java folder and remember the value entered because you will use this value in the following steps.

__4. Close the command prompt window.

© Web Age Solutions Inc. 7

WA2387 Hands-On soapUI - Classroom Setup Guide

__5. In the Windows Start Menu, right-click on the Computer link in the right-hand side of the Start panel, and then select Properties.

__6. Click on Advanced system settings.

__7. The system will display the System Properties dialog. Select the Advanced tab and click Environment Variables.

__8. Under the System Variables list, click the New button.

__9. Enter JAVA_HOME as Variable name.

__10. As Variable value enter the following. This should be the value you verified in the Set the Environment variables section - step 2.C:\Progra~1\Java\jdk1.7.0_45

Note: If you are using a 64-bit OS you may have to use C:\Progra~2\Java\jdk1.7.0_45

__11. Click OK to create the variable.

__12. From the System Variables list, select Path and click Edit.

__13. At the beginning of the line enter the following. Make sure to include the semi-colon on the end:%JAVA_HOME%\bin;

© Web Age Solutions Inc. 8

WA2387 Hands-On soapUI - Classroom Setup Guide

__14. Click OK.

__15. Click OK to close the Environment Variables window.

__16. Click OK to close the System Properties window.

Part 7 - Verification of JDK 7 Update 45

__1. Open a Windows command prompt. You can do this by selecting 'Start -> Run', entering 'cmd', and then pressing the OK button. Make sure it is a new command prompt and not one open previously.

__2. Enter the following command:echo %PATH%Make sure you see the Java 'bin' directory listed at the beginning as shown below.

Note: You may see C:\Progra~2\Java\jdk1.7.0_45

__3. Enter the following command:java -versionMake sure you see the response shown below.

Troubleshooting: If you get an error message means that your Environment variable was incorrectly entered, go back and fix the values.

__4. Enter the following command:

© Web Age Solutions Inc. 9

WA2387 Hands-On soapUI - Classroom Setup Guide

javacVerify that you get the options to run the Java compiler:

__5. Enter the following command:java -XshowSettings:all 2>&1 | findstr /c:"sun.arch.data.model"

Verify that it displays the correct value of 32. This indicates that it is 32-bit java that is installed.

Troubleshooting: If it displays 64 for the value, then you have 64 bit java installed and this will cause issues. Please uninstall the 64-bit java and reinstall the indicated 32-bit jdk.

__6. Close the command prompt window and any extra windows that are open.

__7. From Start, expand All Programs > Java then right click Check for Updates and select Run as Administrator.

__8. Select the Update tab.

__9. Un-check the Check for updates automatically check box.

__10. A popup will open, click Do not check.

__11. Make sure the box is not checked and click OK.

© Web Age Solutions Inc. 10

WA2387 Hands-On soapUI - Classroom Setup Guide

__12. Click OK to close the Java Control Panel.

Java has been installed.

Part 8 - Verification of Apache Tomcat 7.0.65

__1. Open a command prompt window.

__2. Change to the following directory: C:\Software\apache-tomcat-7.0.65\bin

__3. Run the command: startup.bat

__4. Windows Security Alert may open. Click Allow Access.

__5. Apache will start in a new window.

__6. Open another command prompt window.

© Web Age Solutions Inc. 11

WA2387 Hands-On soapUI - Classroom Setup Guide

__7. Change to the following directory: C:\Software\apache-tomcat-7.0.65\bin

__8. Run the command: shutdown.bat

__9. Apache will stop and the window where it was running will close.

__10. Close All command prompts.

Part 9 - Verification of groovy-2.4.5

__1. Open a command prompt window.

__2. Change to the following directory: C:\Software\groovy-2.4.5\bin

__3. Run the command: groovyConsole

GroovyConsole will start in a new window.

__4. Close it.

__5. Close the command prompts.

© Web Age Solutions Inc. 12

WA2387 Hands-On soapUI - Classroom Setup Guide

Part 10 - Installing MySQL 5.5.46

__1. From C:\Software, launch mysql-5.5.46-win32.msi

The Setup Wizard window will launch.

__2. Click Next.

__3. Accept the license and click the Next button.

__4. In the Setup Type window click the Typical button.

© Web Age Solutions Inc. 13

WA2387 Hands-On soapUI - Classroom Setup Guide

__5. Click Install. If prompted by Windows security allow the installation to continue.

__6. The installation will start and the MySQL Enterprise window will appear. Click Next.

© Web Age Solutions Inc. 14

WA2387 Hands-On soapUI - Classroom Setup Guide

__7. The MySQL Enterprise Monitor Service window will appear. Click Next.

__8. The Wizard Completed window will appear. Make sure the Launch the MySQL Instance Configuration Wizard option is checked and click Finish. If prompted by Windows security allow the program to launch.

© Web Age Solutions Inc. 15

WA2387 Hands-On soapUI - Classroom Setup Guide

__9. The MySQL Server Instance Configuration Wizard window will appear. Click Next.

Note: If the wizard does not appear select Start → Programs → MySQL → MySQL Server 5.5 → MySQL Server Instance Config Wizard. If prompted by Windows security allow the program to execute.

© Web Age Solutions Inc. 16

WA2387 Hands-On soapUI - Classroom Setup Guide

__10. In the Instance Configuration window, select Standard Configuration. Click Next.

__11. When presented with the Windows options, check the option for Include Bin Directory in Windows PATH.

© Web Age Solutions Inc. 17

WA2387 Hands-On soapUI - Classroom Setup Guide

__12. Make sure your window looks like above and click Next.

__13. The Security options window will appear. For the New root password and Confirm fields, enter root123 and then click Next.

__14. The Ready to Execute window will appear. Click Execute.

© Web Age Solutions Inc. 18

WA2387 Hands-On soapUI - Classroom Setup Guide

The database will configure. This will take a moment. Eventually, you should see the following:

__15. Click Finish.

MySQL has been installed.

Part 11 - Verification of Apache ActiveMQ-5.11.1

__1. Open a command prompt window.

__2. Change to the following directory: C:\Software\apache-activemq-5.11.1\bin

__3. Run the command: activemq.bat start

Make sure no errors on the console and it says started.

__4. Close by pressing Ctrl-C and then click Y.

© Web Age Solutions Inc. 19

WA2387 Hands-On soapUI - Classroom Setup Guide

__5. Close the command prompt window.

Part 12 - Installing SoapUI_5.2.1

__1. The installation is pretty straightforward. Start it by just double-clicking on C:\Software\SoapUI-x32-5.2.1.exe .

The installer will start immediately. You may need to allow changes in your computer.

You'll soon see the starting screen.

__2. Click Next.

You'll be asked to accept the license agreement.

© Web Age Solutions Inc. 20

WA2387 Hands-On soapUI - Classroom Setup Guide

__3. Click Next.

You'll be able to select the destination folder, which by default is set to C:\Program Files\SmartBear\SoapUI-5.2.1, but can be changed.

__4. Click Next.

© Web Age Solutions Inc. 21

WA2387 Hands-On soapUI - Classroom Setup Guide

Next step gives you the opportunity to include, as additional components, soapUI source files and Hermes installation

__5. Make sure you've chosen to install Hermes, and click Next.

You'll get the Hermes license agreement.

__6. Accept and Click Next.

© Web Age Solutions Inc. 22

WA2387 Hands-On soapUI - Classroom Setup Guide

__7. Then, change the path as follows to the directory where the tutorials will be installed.

C:\Software\SoapUI-Tutorials

__8. Click Next.

Then, you'll be able to select the Start Menu folder where you want the soapUI shortcut to be added.

__9. Click Next.

__10. Make sure Create a desktop icon is checked to create shortcut on desktop.

© Web Age Solutions Inc. 23

WA2387 Hands-On soapUI - Classroom Setup Guide

__11. Click Next.

Finally, the installation starts.

__12. After couple of minutes at most, the installation should be finished and you should see the next screen.

© Web Age Solutions Inc. 24

WA2387 Hands-On soapUI - Classroom Setup Guide

__13. Click Finish.

__14. Close the note file that opens.

__15. Click No in the usage statistics window.

__16. Click Ignore this update in the New version check window.

__17. SoapUI will open . Click Skip in the Stay Tuned window.

__18. Windows Security Alert may open. Click Allow Access.

__19. Now you are ready to use soapUI.

__20. Close soapUI.

Part 13 - Installing SoapUI_5.1.2(PRO)

Installing SOAPUI PRO version.

© Web Age Solutions Inc. 25

WA2387 Hands-On soapUI - Classroom Setup Guide

__1. The installation is pretty straightforward. Start it by just double-clicking on C:\Software\soapUI-Pro\SoapUI-Pro-x32-5.1.2.exe . The installer will start immediately.

You'll soon see the starting screen.

__2. Just click Next to continue. You'll be asked to accept the license agreement.

© Web Age Solutions Inc. 26

WA2387 Hands-On soapUI - Classroom Setup Guide

__3. After accepting and clicking Next, you'll be able to select the destination folder, which by default is set to C:\Program Files\SmartBear\SoapUI-Pro-5.1.2, but it can be changed.

__4. Click Next.

Next step gives you the opportunity to include, as additional components, soapUI-Pro source files and Hermes installation.

© Web Age Solutions Inc. 27

WA2387 Hands-On soapUI - Classroom Setup Guide

__5. Make sure you've chosen to install Hermes, Click Next.

__6. You'll get the Hermes license agreement. Accept and Click Next.

__7. Change the path as follows to the directory where the tutorials will be installed and click Next.

C:\Software\SoapUI-Tutorial

__8. Then, you'll be able to select the Create Start Menu folder where you want the soapUI-Pro

© Web Age Solutions Inc. 28

WA2387 Hands-On soapUI - Classroom Setup Guide

shortcut to be added. Click Next.

__9. Check Create a desktop icon to create shortcut on desktop. Click Next.

__10. Finally, the installation starts.

© Web Age Solutions Inc. 29

WA2387 Hands-On soapUI - Classroom Setup Guide

__11. After couple of minutes at most, the installation should be finished and you should see the next screen. If ask to overwrite tutorials click Yes to All.

__12. Uncheck both and click Finish.

Students will have to request for a Trial and activate it during the labs.

Part 14 - Installing ReadyAPI(SOAPUI PRO NG)

© Web Age Solutions Inc. 30

WA2387 Hands-On soapUI - Classroom Setup Guide

__1. The installation is pretty straightforward. Start it by just double-clicking on C:\Software\ReadyAPI-x32-1.5.0.exe . The installer will start immediately.

__2. You will see the starting screen. Just click Next to continue.

__3. You'll be asked to accept the license agreement. Accept and click Next.

© Web Age Solutions Inc. 31

WA2387 Hands-On soapUI - Classroom Setup Guide

__4. Select full installation and click Next.

© Web Age Solutions Inc. 32

WA2387 Hands-On soapUI - Classroom Setup Guide

__5. Now, you'll be able to select the destination folder, which by default is set to C:\Program Files\SmartBear\ReadyAPI-1.5.0, but can be changed, click Next.

__6. Accept and click Next.

__7. Finally, the installation starts.

© Web Age Solutions Inc. 33

WA2387 Hands-On soapUI - Classroom Setup Guide

__8. After couple of minutes at most, the installation should be finished and you should see the next screen.

__9. Click Finish.

__10. The software will open asking for a license, click No and close the software. The student will activate a trial during the labs.

Part 15 - Summary

You have successfully installed the software for this course!

If you have any question please contact us by email at [email protected]

From US and Canada call: 1-877-812-8887 ext. 26

International call: 416-406-3994 ext. 26

© Web Age Solutions Inc. 34