Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

UI Changes needed for the Availability and monitoring Synthetic Script #245

Closed
Twanawebtech opened this issue Feb 20, 2017 · 9 comments
Closed
Assignees

Comments

@Twanawebtech
Copy link

Changes needed for the Availability and monitoring Synthetic script.

  1. Remove the session from the URL, this is so the Synthetic script will work properly.
  2. Add ID's to shipment, Retail Location, and the Simulate Storm button.

screen shot 2017-02-20 at 15 15 34

@l2fprod
Copy link
Member

l2fprod commented Feb 20, 2017

@Twanawebtech

can you describe the test script in user actions such as:

  1. Click on "View Logistics Wizard in action"
  2. Verify the number of active shipment is X
  3. Click on Simulate Storm
    etc.

so that we understand what UI elements you want to retrieve.

@Twanawebtech
Copy link
Author

The test case will simulate a user doing the following:

  • the user opens the Logistics Wizard site,
  • clicks on the "View Logistics Wizard" button,
  • clicks on the truck icon to get shipment details,
  • click on the retail location icon to get location details,
  • click on the weather storm button get the weather information, the weather functionality is done using an OpenWhisk action, so this will also test the OpenWhisk action.
  <tr>
  	<td>open</td>
  	<!-- Open the Logistics Wizard site -->
  	<td>http://<Your-App-WebUI-URL>.mybluemix.net</td>
  </tr>

  <tr>
  	<!-- Click on the "View Logistics Wizard" button to go into the dashboard -->
  	<td>click</td>
  	<td>id=viewInActionButton</td>
  </tr>

  <!-- Click on the "shipment" icon -->
  <tr>
  	<td>click</td>
  	<td>id=shipment</td>
  </tr>

  <!-- Click on the "Retail Location" icon -->
  <tr>
  	<td>click</td>
  	<td>id=retailLocation</td>
  </tr>

  <!-- Click on the "Weather Storm" button -->
  <tr>
  	<td>click</td>
  	<td>id=weatherStorm</td>
  </tr>

@l2fprod l2fprod self-assigned this Mar 7, 2017
l2fprod pushed a commit to IBM-Cloud/logistics-wizard-webui that referenced this issue Mar 7, 2017
…2, storm-3, …), to simulate storm button, to account menu, to “end session”, to “Map” and “List” buttons

IBM-Cloud/logistics-wizard#245
@l2fprod
Copy link
Member

l2fprod commented Mar 7, 2017

@Twanawebtech changes committed to "dev" branch. You should have all the IDs you need.

In the steps you are listing, please add one clicking on the account menu on the top right and then on "End Session". This will clean up the demo created by the test.

l2fprod pushed a commit to IBM-Cloud/logistics-wizard-webui that referenced this issue Mar 7, 2017
@l2fprod l2fprod closed this as completed Mar 27, 2017
@Twanawebtech
Copy link
Author

Reopening this issue.

The monitoring service test using selenium IDE still failing on this button, after a very long wait from the monitoring team, it seems that the selenium IDE is not supporting touch events.

We need to change the "VIEW LOGISTICS WIZARD IN ACTION" button to a click event in order to work.

@Twanawebtech Twanawebtech reopened this Mar 29, 2017
@l2fprod
Copy link
Member

l2fprod commented Mar 29, 2017

@Twanawebtech

The events are Click, not Touch.

image

To verify, in Chrome console, under Sources, set a breakpoint on mouse/click. It will break when you click on the button. If you set a breakpoint on touch, nothing happens.

@Twanawebtech
Copy link
Author

Well that click event is not working on the Monitoring test, see comment from the Monitoring team.

The script failed at the step when tried to click the button of "VIEW LOGISTICS WIZARD IN ACTION", the root cause is that there is no clicking event for this button defined in this page, it is a touch event instead, and selenium webdriver doesn't support it by now, and as a workaround, you can replace the command clickAndWait with open like below:

@l2fprod
Copy link
Member

l2fprod commented Mar 29, 2017

@Twanawebtech

I can run the test successfully in Selenium IDE with Firefox.

image

If it does not work in Availability Monitoring, the issue is maybe with their driver. We should not have to tweak our code. It is using standard React buttons here.

@Twanawebtech
Copy link
Author

@l2fprod yes, correct it works on FireFox Selenium IDE but the issue is with Availability Monitoring driver, they don't have support for touch buttons. You seen above comments from them.

l2fprod pushed a commit to IBM-Cloud/logistics-wizard-webui that referenced this issue Mar 29, 2017
@Twanawebtech
Copy link
Author

Closing this for now, if needed then we will reopen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants