File tree Expand file tree Collapse file tree
tests/mytests/src/test/java/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ public void logoutTest() {
3838 sharedMainPage .clickLogout ();
3939 Assert .assertTrue (sharedMainPage .getBodyText ().contains ("Log in" ));
4040 System .out .println ("Logout test completed." );
41+ System .out .println ("Dependency test completed." );
4142 }
4243
4344
Original file line number Diff line number Diff line change 44import java .util .List ;
55import java .util .Random ;
66import java .net .MalformedURLException ;
7+ import java .util .UUID ;
78
89import org .testng .annotations .*;
910import org .testng .*;
@@ -30,8 +31,9 @@ public void courseCreation() {
3031
3132 Random rand = new Random ();
3233 int randomNum = rand .nextInt (1000 );
33- courseCreatorPage .typeCourseFullName ("Selenium Testing Course " + randomNum );
34- courseCreatorPage .typeCourseShortName ("STC " + randomNum );
34+ UUID uniqueID = UUID .randomUUID ();
35+ courseCreatorPage .typeCourseFullName ("Selenium Testing Course " + randomNum + " " );
36+ courseCreatorPage .typeCourseShortName (uniqueID .toString ());
3537
3638 List <WebElement > selectElements = courseCreatorPage .selectCourseVisibility (0 );
3739 Assert .assertTrue (selectElements .get (0 ).isSelected ());
You can’t perform that action at this time.
0 commit comments