Closed damithc closed 6 years ago
I have some spare time this weekend to look into this. If someone else wants to do it before me, please be welcome.
Ideally the StudentProfilePageUiTest
and StudentHomePageUiTest
should not have any state leak because the latter belongs to sequential-ui-tests
, right?
Ideally the StudentProfilePageUiTest and StudentHomePageUiTest should not have any state leak because the latter belongs to sequential-ui-tests, right?
@tshradheya Ideally, no two tests should have any state leaks between them. For sequential tests, it's enough if they clean up at the end so that no trace of it remains after the test is over. For parallel tests, whatever they do should not affect other tests even while the test is running.
In this case, you can start by running the two tests sequentially to see if one causes the other to fail.
v6.3.0, live server StudentHomePageUiTest is failing due to a state leak from another test, most likely from StudentProfilePageUiTest. Specifically, the course below is showing up in StudentHomePageUiTest
Taken from
StudentProfilePageUiTest.json
Location of the failure:
Probably the same student is used in both tests. May be delete courses of the student in concern during the setup phase?
On a related note, should not use the prefix
SHomeUiT.
in test data ofStudentProfilePageUiTest.json
. Instead, it should use something likeSProfileUiT.