Can you please write complete script

Please write complete Script for the below test cases, Then I can get some idea.

1. For Identification , don’t write any thing , Later I can write My id’s and Xpath

2. So, Please ignore Identification and write script for Complete Scenario

TC # TS# Test Design Input Data Expected Result Actual Result Pass
1 Launch the browser , enter the URL & click on [GO] or press [Enter] WBMS Home Page’ is to be displayed
2 Click on ‘New Dealer ?’ link New ‘Dealer Registration Page’ should be displayed
4 Leave’Dealer Name’ as blank and Click on [Submit] Should Display a Pop-up message ‘Please Enter Valid ‘Dealer Name”
5 Enter the ‘Dealer Name with
1. Special Characters
2.Alpha Numerics and click on [submit] button
1.’s$234%’
2.a1s2der
Should display a pop up message ‘Plese enter the valid ‘Dealer Name ‘
6 Enter as 26 alphabets in’Dealer Name’ and Click on [submit] asder……….upto26 Should Display a Pop-up message ‘Please Enter Valid ‘Dealer Name”
7 Enter upto  25 alphabets in’Dealer Name’ and Click on [submit] asder……….upto25 Should Display a Pop-up message ‘Please Enter Resident Address”
8 Leave ‘Resident Address’ as blank and Click on [Submit] Should Display a Pop-up message ‘Please Enter Valid Resident Address”
9 Enter as 76 Chars in ‘Resident Address’ and Click on [submit] dfhgsd33h8……….upto76 Should Display a Pop-up message ‘Please Enter Valid Resident Address”
10 Enter as 75 Chars in ‘Resident Addrss’ and Click on [submit] dfhgsd33h8……….upto75 Should Display a Pop-up message ‘Pease Enter Office Address”
11 Leave ‘Office Address’ as blank and Click on [Submit] Should Display a Pop-up message ‘Pease Enter Valid Office Address”
12 Enter as 76 Chars in ‘Office Address’ and Click on [submit] dfhgsd33h8……….upto76 Should Display a Pop-up message ‘Please Enter Valid Office Address”
13 Enter as 75 Chars in ‘Office Addrss’ and Click on [submit] dfhgsd33h8……….upto75 Should Display a Pop-up message ‘Please Enter Telephone”
14 Leave ‘Telephone’ as blank and Click on [Submit] Should Display a Pop-up message ‘Please Enter Valid Telephone”
15 Enter Spaces in ‘Telephone’ and Click on [Submit] Should Display a Pop-up message ‘Please Enter Valid Telephone”
16 Enter ‘Telephone’ as Invalid and Click on [submit] Other Than digits.. any of the Keyboard Characters’ Should Display a Pop-up message ‘Please Enter Valid Telephone”
17 Enter as 16 digits in ‘Telephone’ and Click on [submit] 1234…..upto16 Should Display a Pop-up message ‘Please Enter Valid Telephone”
18 Enter as 15 digits in ‘Telephone’ and Click on [submit] 1234…..upto15 Should Display a Pop-up message ‘Please Enter Mobile”
19 Leave ‘Mobile’ as blank and Click on [Submit] Should Display a Pop-up message ‘Please Enter Valid Mobile”
20 Enter Spaces in ‘Mobile’ and Click on [Submit] Should Display a Pop-up message ‘Please Enter Valid Mobile”
21 Enter ‘Mobile’ as Invalid and Click on [submit] Other Than digits.. any of the Keyboard Characters Should Display a Pop-up message ‘Please Enter Valid Mobile”
22 Enter  11 digits in ‘Mobile’ and Click on [submit] 14343434343 Should Display a Pop-up message ‘Please Enter Valid Mobile”
23 Enter  13 digits in ‘Mobile’ and Click on [submit] 1434343431433 Should Display a Pop-up message ‘Please Enter Valid Mobile”
24 Enter 12 digits in ‘Mobile’ and Click on [submit] 143434343143 Should Display a Pop-up message ‘Please Enter Date of Birth’
25 Verify ‘Gender’ Default ‘Gender’ is Male
26 Select ‘Gender’ as female Selected Gender Should be displayed
27 Select ‘Date of Birth’ as greater than Current date from Calender and Click on [Submit] Should Display a Pop-up message ‘Please Enter Valid Date Of Birth”
28 Select ‘Date of Birth’ as equal to Current date from Calender and Click on [Submit] Should Display a Pop-up message ‘Please Enter Valid Date Of Birth”
29 Select ‘Date of Birth’ as less than Current date from Calender and Click on [Submit] Should Display a Pop-up message ‘Please Enter Date”
30 Select ‘Date’ as Current Date Should Display a Pop-up message ‘Please Enter E-Mail”
31 Leave ‘E-Mail ID’ as blank and Click on [Submit] Should Display a Pop-up message ‘Please Enter Valid E-Mail ID”
32 Enter ‘E-Mail ID’ as 26 chars and Click on[Submit] asder……….upto26 Should Display a Pop-up message ‘Please Enter Valid E-Mail ID”
33 Enter ‘E-Mail ID’ as  25 Chars and Click on [Submit] asder……….upto25 Should accept the New Dealer Informaton and Display ”Dealer Registration Success Page’
34 Enter Valied or invalied fields in ‘New Deler Reg ‘Page and click on[Reset] Should clear all the fields in New Dealer Registration Page.
35 Check for the consistency,allignment,spelling mistakes,availability and other cosmotic issues The contents of the Page should be properly alligned,consistent,without spelling mistakes and should be available
36 Click on’Click Here toLogin into WBMS’ WBMS Home Page’ is to be displayed
37 Close the browser Browser should be closed

Thanks in Advance…….

Murali Train Asked on December 18, 2014 in Selenium WebDriver.
Add Comment
2 Answer(s)

Hi Murali,

Please give me your salary .. I will definitely give time and write the entire testcase.

biswajit Train Answered on December 18, 2014.
Add Comment

Hi Biswajit

I think you are kidding me. I am a fresher, I learn Selenium from one institute, they teach only positive scenarios. So , I have a gap to write scripts for positive and negative scenarios. So , I taken sample test case from manual testing project and paste here. So, If possible help me , other wise ignore it. don’t hurt others.

I hope you understood.

Murali Train Answered on December 19, 2014.

Hello Murali,

If you know how to write test scripts on +ve scenario, then you can write test scripts for -ve scenario also.

And no one is hurting you here, I have commented in your question please find in the below url and accept the answer.

http://forumsqa.com/question/how-to-validate-a-login-page-with-validations-in-selenium-webdriver/

Most important thing, if you TEACHER not teling -ve scenario then WHY you didn’t ask to HIM/HER?. Are you learning free?, and did you search in google? what solution you found?, what are your codes? and efforts?.

Please dont be sentimental. And Join toolsqa.com training and you can ask unlimited questions. 

on December 19, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.