IQSS / dataverse-pm

Project management issue tracker for the Dataverse Project. Note: Related links and documents may not be public.
https://dataverse.org
0 stars 0 forks source link

spike: investigate UI testing workflow and resources #79

Open mreekie opened 1 year ago

donsizemore commented 1 year ago

@mreekie Note that Matthew Dunlap at Odum, who I can't seem to tag here, is currently writing Selenium tests for a local project and may be a good Person to Pester.

pdurbin commented 1 year ago

@matthew-a-dunlap

matthew-a-dunlap commented 1 year ago

Hi All,

You can see the work we are doing on automating Dataverse UI tests and generating a report here https://github.com/OdumInstitute/dataverse-automated-user-tests/tree/python-test . In the next few weeks this will be pulled into the main branch. There is no use documentation currently but it will be added.

You can also see info on the tests we are performing here https://github.com/OdumInstitute/dataverse-automated-user-tests/issues/1 . There is a more detailed document written on this we could share I think, though most of that info is being added to the text.py file in the codebase as tests are added.

At a general level, I tried to break up the python code to help some with reuse. There are two mixins that cover testing datasets and dataverses, and these could be easily reused in a different test class. These are a bit more thorough than the rest of our happy path test as they fully check that data is set correctly after save. Much of our other testing mostly just looks for success alerts and errors if a web element is not present to continue the test workflow.

Anyways, feel free to ask me any questions!