| || |
QTP Test Case design problem
I Have to create Qtp test case for follwing functionality 1.Creating of Invoice notes for Invoice
2.Edit of invoice notes
3.Deleting of invoice notes
For testing these functioanlity i have adopted a following procedure
1.Search for invoice in grid, to wich invoice notes to be added
2.after finding invioice ,Add invoice notes to invioce notes.
3.In Invoice grid, Verify that added invoice notes is displaying.
4.Search for newly Added invoice notes in grid
5.Edit same the invoice notes
6.Search the Invoice notes in grid
7.Delete the invoice notes
my doubt is that is this correct way of doing automated test case design.main problem i am facing is prerequisite data and test case independency.Plz suggest me on this(Atleast any samples of any real test case design).i would love to share my code if you want.
Re: QTP Test Case design problem
Instead of directly searching for a invoice, create an new invoice and try to search for the same invoice so that you can avoid test case/prequisite dependency.
You are deleting the searched invoice right, so once the invoice is deleted how it will run for the second time? Try to create new invoice and do the routine.
For Example in my case I have to verify the different dates in my application which will be in different format. So I had wrote a prerequisite function which fill set the default date format (Like MM\DD\YYYY).