[MGNLTEST-167] Create tests which emulate slow network with browser network throttling. Created: 28/May/21  Updated: 09/Nov/23

Status: Selected
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: core-TF-features-bugs-improvements
Team: Foundation
Work Started:

 Description   

 

To be defined:

  1. Define a list of selenium driven UI actions which should work on "slow network too"
  2. Define a "list" of various grades of slowing down (if doable)
  3. Define which mix out of (1) and (2) -> resulting in a list of scenarios which should go into a test to be run always with UI tests as self-test

Acceptance criteria

  • A Figure out how to do this technically, throttling the browser via selenium
  • B Try out things
  • C Define 1, 2, 3 => especially 3
  • D With the results of (A), decide whether we wanna define a little API to wrap selenium commands for the throttling. If the decision is YES, define the API ...

 



 Comments   
Comment by Maxime Michel [ 08/Nov/21 ]

asiska Christoph tells me you tried using Selenium APIs to simulate a slow network, is that right? You ended up being blocked? Could you please share more details?

Comment by Maxime Michel [ 08/Nov/21 ]

Implementation idea: replicate the setup done in MGNLMAIL-116, i.e.

  • keep Selenium normal
  • add toxiproxy to docker-compose.yml
  • make the/some test(s) connect to the proxied/slowed Magnolia URL

To answer the question on how to slow the network, see: https://github.com/Shopify/toxiproxy#toxics

Comment by Adam Siska [ 08/Nov/21 ]

Hi Maxime, not exactly. iirc I played with some awaitility in test-framework, so probably not any help here..

Generated at Mon Feb 12 07:46:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.