manual to automation (how to design)

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

manual to automation (how to design)

shankarkurella
hello everyone...  iam a manual tester, trying and doing my home work in learning and automating my application.. i have a few doubts in automation though they may sound basic for guys, but kindly answer these

1. if iam automating an application, let say filing a form.... as a manual tester my concern would be checking with valid and invalid data, checking with out of bound data...performing positive and negative functional testing...  and in automating a form filling --> do we need to think on negative aspects while designing automated test case (do i need to concern about invalid data range or data types)
2. if iam writing a test case for login scenario do i need to design a test case for invalid users... or my concern should be with only valid users ???

kindly respond to these

regards
shankar k b
Reply | Threaded
Open this post in threaded view
|

Re: manual to automation (how to design)

softwaretestingforum
Administrator
Hi Shankar,

Welcome to group.

The answer of both of your questions is Yes. Imagine if you don't consider using invalid test data (whether it is wrong credential or data which is out of boundary) in your automated tests would not reveal any such issue.
And having automated suite, probably no one would bother to check these scenarios manually until it is very late. I hope you get the point.
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: manual to automation (how to design)

shankarkurella
hi tarun if thats the case.... do i need to write test cases even for negative testing... ie i need to include all the related possible negative test data in my automated test cases... what i felt till now was, automation is a work around for few scenarios in manual...
lets say for example : if i consider a login scenario as a test case... i need to include a valid set of data as one automated test case, and there could be the some n number of invalid set of test data for invalid login test.

2.if i write an automation testcase for filling a form... i need to check it with valid test data as one automated test case (that will be successful), and i need to include invalid set of test data ( for each of the field in the form that iam going to fill)... that has to fail

3. and on what basis we are judging these test cases are passed ???... is it at the IDE level, which has no idea between invalid and valid test data...  as it is the application which judges valid and invalid data

  regards
 
shankar k b
shankarkurella.blogspot.com



On Thu, Apr 19, 2012 at 2:40 PM, tarunkumar [via Manual and Automated Testing] <[hidden email]> wrote:
Hi Shankar,

Welcome to group.

The answer of both of your questions is Yes. Imagine if you don't consider using invalid test data (whether it is wrong credential or data which is out of boundary) in your automated tests would not reveal any such issue.
And having automated suite, probably no one would bother to check these scenarios manually until it is very late. I hope you get the point.
Selenium Testing Help us spread this forum. Please click Google +1, FB like and Twitter share, if this forum helps you.

No Automated Testing




If you reply to this email, your message will be added to the discussion below:
http://manual-and-automated-testing.1070.n6.nabble.com/manual-to-automation-how-to-design-tp4897422p4897495.html
To unsubscribe from manual to automation (how to design), click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: manual to automation (how to design)

softwaretestingforum
Administrator
My answer is yes for 1st and 2nd question of yours.
Could you elaborate more on third question?
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: manual to automation (how to design)

shankarkurella
the third question i was asking is...
3. if i write a class (under selenium using RC which invokes a browser and checks for the ids that i passed(user name and password) and clicks on sign-in
as i will be passing some valid username and password and application allows me to login, but what about the case with invalid login credentials, application will stop the test to proceed further... and ide will stop the test (but ide will not be aware of the logic whether this particular set of data is valid or not)
now my question is how to handle when a test stops and ide shows that test is passed???
Do we need to write some if else cases and check these situations??? ( if an if else case is used it can check only a single set of login data right)
the next question is... how to handle invalid set of data for input fields...
iam trying to write a selenium test case on rc by identifying button ids,input field ids and drop down ids... is this a right way of automating the things...
kindly suggest me... i hope i am not disturbing you much

  regards  
shankar k b
shankarkurella.blogspot.com



On Thu, Apr 19, 2012 at 3:55 PM, tarunkumar [via Manual and Automated Testing] <[hidden email]> wrote:
My answer is yes for 1st and 2nd question of yours.
Could you elaborate more on third question?
Selenium Testing Help us spread this forum. Please click Google +1, FB like and Twitter share, if this forum helps you.

No Automated Testing




If you reply to this email, your message will be added to the discussion below:
http://manual-and-automated-testing.1070.n6.nabble.com/manual-to-automation-how-to-design-tp4897422p4897722.html
To unsubscribe from manual to automation (how to design), click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: manual to automation (how to design)

softwaretestingforum
Administrator
One test should test one scenario.
Invalid login should tests that user can not login and may be check on some error message displayed.
Having different test methods for different tests would help you in isolating problems and keep you tests clean.
You could find few examples of tests on - seleniumhq.org/docs/

I feel that you might be interested in upcoming Selenium Online meetup - http://www.seleniumtests.com/p/testing-forum.html#nabble-f4880804
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: manual to automation (how to design)

shankarkurella
tarun so i should not write a test case within an If and else
i need to write a separate test case which will not accept an invalid test data and return an error message to IDE that the particular test is failed due to invalid data ( i can include this test case in my report and state that this test has passed and not allowed to enter into the portal)

and i need to write a separate test case which will accept valid test data and enter into the portal and do the need ful ( if i want to check for the fields within the portal i need to write another valid and invalid test cases for that fields ) is this the way it has to be designed....

thanks a lot for quick response tarun
  regards  
shankar k b
shankarkurella.blogspot.com



On Thu, Apr 19, 2012 at 4:38 PM, tarunkumar [via Manual and Automated Testing] <[hidden email]> wrote:
One test should test one scenario.
Invalid login should tests that user can not login and may be check on some error message displayed.
Having different test methods for different tests would help you in isolating problems and keep you tests clean.
You could find few examples of tests on - seleniumhq.org/docs/

I feel that you might be interested in upcoming Selenium Online meetup - http://www.seleniumtests.com/p/testing-forum.html#nabble-f4880804
Selenium Testing Help us spread this forum. Please click Google +1, FB like and Twitter share, if this forum helps you.

No Automated Testing




If you reply to this email, your message will be added to the discussion below:
http://manual-and-automated-testing.1070.n6.nabble.com/manual-to-automation-how-to-design-tp4897422p4897808.html
To unsubscribe from manual to automation (how to design), click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: manual to automation (how to design)

softwaretestingforum
Administrator
You got it right.
I would also suggest you to Google on Test Design. I am sure you would find many good references which would help you in writing tests.
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: manual to automation (how to design)

shankarkurella
hello tarun can you kindly answer me the xpath for this particular html, below pasted

<div align="center"><input type="submit" class="button1" value="Submit"/></div>
absolute path : selenium.click("//html/body/form/div/div/div[3]/div/input");

 absolute path is working fine i want to try it the other way

 kindly suggest me


  regards  
shankar k b
shankarkurella.blogspot.com



On Thu, Apr 19, 2012 at 5:20 PM, tarunkumar [via Manual and Automated Testing] <[hidden email]> wrote:
You got it right.
I would also suggest you to Google on Test Design. I am sure you would find many good references which would help you in writing tests.
Selenium Testing Help us spread this forum. Please click Google +1, FB like and Twitter share, if this forum helps you.

No Automated Testing




If you reply to this email, your message will be added to the discussion below:
http://manual-and-automated-testing.1070.n6.nabble.com/manual-to-automation-how-to-design-tp4897422p4897912.html
To unsubscribe from manual to automation (how to design), click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: manual to automation (how to design)

softwaretestingforum
Administrator
Please post your question in new thread as it is off topic for this thread.
~ seleniumtests.com