GithubHelp home page GithubHelp logo

Comments (9)

l2fprod avatar l2fprod commented on August 17, 2024

@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.

from logistics-wizard.

Twanawebtech avatar Twanawebtech commented on August 17, 2024

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>

from logistics-wizard.

l2fprod avatar l2fprod commented on August 17, 2024

@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.

from logistics-wizard.

Twanawebtech avatar Twanawebtech commented on August 17, 2024

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.

from logistics-wizard.

l2fprod avatar l2fprod commented on August 17, 2024

@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.

from logistics-wizard.

Twanawebtech avatar Twanawebtech commented on August 17, 2024

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:

from logistics-wizard.

l2fprod avatar l2fprod commented on August 17, 2024

@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.

from logistics-wizard.

Twanawebtech avatar Twanawebtech commented on August 17, 2024

@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.

from logistics-wizard.

Twanawebtech avatar Twanawebtech commented on August 17, 2024

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

from logistics-wizard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.