Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71789
| From | Tim Roberts <timr@probo.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Need help with executing DB query in two different places in a test |
| Date | 2014-05-19 22:34 -0700 |
| Organization | Providenza & Boekelheide, Inc. |
| Message-ID | <8qpln91gcks0s0mm20ds670bsajtsfss78@4ax.com> (permalink) |
| References | <mailman.10142.1400532473.18130.python-list@python.org> |
Sunitha Byju <sunitha_byju@hotmail.com> wrote: > >I am trying to automate an ecom website. I need to run DB query after >placing each order. I don't know how to run different queries after >each order. Can someone help me out with having queries after each >order submission or test? Well, what's your primary key? After each test, you need to fetch the record that should have been created, and verify that the fields contain the information you provided. For example, if you're doing a shopping cart, then you must have some kind of key associated with this session. So, you could just fetch all of the record for the session after each transaction, and make sure the contents match what you expect. -- Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Need help with executing DB query in two different places in a test Sunitha Byju <sunitha_byju@hotmail.com> - 2014-05-19 16:46 -0400 Re: Need help with executing DB query in two different places in a test Tim Roberts <timr@probo.com> - 2014-05-19 22:34 -0700
csiph-web