Automate login test and integrate with Jenkins pipeline
Preconditions (3)
Step 1: Open browser and navigate to 'https://example.com/login'
Step 2: Enter 'testuser' in username field with id 'username'
Step 3: Enter 'Test@1234' in password field with id 'password'
Step 4: Click on login button with id 'loginBtn'
Step 5: Verify that the URL changes to 'https://example.com/dashboard'
Step 6: Verify that an element with id 'welcomeMessage' is displayed
✅ Expected Result: User is successfully logged in, dashboard page is displayed with welcome message visible