In this demo you will
- Start locally HAM server
- Start the sample application
- Connect to it through proxy
- Record the interactions of the sample application
- Setup a null-infrastructure test. Testing manually with
- Simulated Back-end
- Simulated Back-end to Back-end interaction
For more infos check here
Download the two tar.gz, ham and ham-samples from github releases and extract them in the same directory
Go on the "calendar" directory and run "runcalendar.bat/sh"
This will start
- ham (localhost:80)
- be (localhost:8100) proxied by http://localhost/int/be.sample.test
- gateway (localhost:8090) proxied by http://localhost/int/gateway.sample.test
- fe (localhost:8080)
It's composed of three parts
- FE, that calls gateway for all its needs
- GATEWAY, that acts a "middleman" between FE and BE
- BE, with the database that is called only by the GATEWAY
Should set the proxy to 127.0.0.1 And port 1080 for socks5 or 1081 for http/https
Click me for more explanations
-
Chrome:
- Install Proxy Switch Omega
- Go to options
- Add http and https proxy server with
- Select "proxy" from the extension menu and back to "direct" when you want to disconnect
-
-
Firefox
You can now check ham application going on http://www.local.test
- Going on ham proxyes you can verify that all proxies are ok if they don't work just "Refresh Status"
- Navigation on the application you can try some interaction
- Then you can create a recording on the recording page
- Once you create the recording you can start recording!
- Go then on the application and do some interaction
- Add an Employee "John Doe"
- Go on Appointements
- Add an Appointment with "Doctor" as description
- Change the state of the appointament till it shows "Confirmed"
- Delete the appointment
- Back on employee, delete the employee too
- And stop the recording!
- Now you will se all the calls on the just created recording
- "Download" the recording as "Sample.json"
- Stop the application and restart!
- Delete the script and re-upload Sample.json
- Select all the calls to www.sample.test with the filter and delete them all
- Select all the calls to path /int/be.sample.test with the filter and delete them all
- Stop the "be" application
- Stop the "gateway" application
- Download and save the script as NullGateway.json
- Play the Script with "Play"
- Do the navigation as you did while recording
- Everything will work as if be is up!
- Stop all the applications and restart!
- Delete the script and re-upload Sample.json
- Select all the calls to www.sample.test with the filter and delete them all
- Select all the calls to path /int/gateway.sample.test with the filter and delete them all
- Stop the "be" application
- Download and save the script as NullBe.json
- Play the Script clicking on "Play"
- Do the navigation as you did while recording
- Everything will work as if gateway is up!










