I am working on to automate testing of my web application UI flow using selenium. My project is in asp.net and c#. My question is does selenium provide any option to preset the data before we execute a functional flow through selenium?
Say for example i am automating a book search flow. So before i execute the flow throw selenium automation, i have to be sure that the book i am searching should be in the database already, so when i execute the test, it just works fine. Most importantly when we do this presetup you can reuse this test automation in any environment, dev,qa etc.
So how do we preset the data or set the context for my test to execute without any issue?