Finally done with my first test.

Finally my code working as per requirement dynamically without hard coded values.