There are 4 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e3fea06d-4ed1-490b-9e3f-cde7de874d1f XWIKI-22272 Open

Add support for testing with multiple users/browsers

 
View issue   ยท   Add comment
 

4 updates

 
cid:jira-generated-image-avatar-dae96c28-f846-473d-81be-2b150a2024d1 Changes by Marius Dumitru Florea on 02/Jul/24 16:07
 
Fix Version: 16.4.1
Fix Version: 16.6.0-rc-1
Fix Version: 15.10.12
Assignee: Marius Dumitru Florea
 
 

1 comment

 
cid:jira-generated-image-avatar-dae96c28-f846-473d-81be-2b150a2024d1 Marius Dumitru Florea on 02/Jul/24 16:13
 

Vincent Massol in the end I:

  • added a new UITest configuration, named servletEngineNetworkAliases to allow to map the servlet engine running XWiki to multiple domains (networks)
  • added a helper MultiUserTestUtils that can be injected in test methods to:
    • create new browser tabs and associate them with a given XWiki alias (you can log in different users in each of these tabs)
    • switch between the created tabs, taking care of restoring the proper form token and base URL
    • close the created tabs (except the first one)
    • access the handle of the first (main) tab

It's definitely not the best / cleanest solution, and naming can be improved, but it allowed me to test realtime with multiple logged-in users. Of course, I'm using a single browser instance, so I won't catch problems with synchronization between Firefox and Chrome for instance, but it's a step forward. Let me know if there are small improvements I can make. For sure I won't have time to work on the multi-browser solution anytime soon sad.png .