20 slightly harder, more SDET-oriented if-else test scenarios

 Here’s a second list with 20 slightly harder, more SDET-oriented if-else test scenarios (still no solutions). These lean towards practical testing logic and edge-case validation:

  1. Check if an email address contains both '@' and '.' in valid positions.

  2. Validate if a mobile number has exactly 10 digits.

  3. Check if a given string is a palindrome (basic version, case-sensitive).

  4. Verify if a password contains at least one uppercase letter and one digit.

  5. Check if a date (day, month) forms a valid calendar date (ignore year).

  6. Validate if two given strings are anagrams (basic version).

  7. Check if a username length is between 6 and 15 characters.

  8. Check if a given file extension is allowed (e.g., .jpg, .png, .pdf).

  9. Verify if an age input is numeric and within 0-120.

  10. Check if a time (HH:MM) is in valid 24-hour format.

  11. Check if a string contains only alphabetic characters.

  12. Validate if a credit card number has exactly 16 digits.

  13. Check if a list of numbers is sorted in ascending order.

  14. Check if a string input is not null and not empty (both).

  15. Verify if the entered country code starts with '+' and has 2-3 digits.

  16. Check if a given amount is a valid positive decimal number.

  17. Validate if a string ends with ".com" or ".org" domain.

  18. Check if a number is within multiple ranges (e.g., 10-20 or 30-40).

  19. Verify if a string does not contain any white spaces.

  20. Check if a user-entered promo code is valid based on allowed codes.

This set simulates the kind of validation and input-checking logic you’ll often write or test in SDET work — web forms, APIs, and UI field validation.

Comments

Popular posts from this blog

10 automation test cases for https://www.saucedemo.com/ (Sauce Demo)

Java Roadmap for SDET Superstars!

Mastering XPath in Selenium 4 ๐Ÿš€ – Supported Functions & Axes Explained