Forum Discussion
Where is the answer that tells us how to open chrome incognito modus from a keyword test? Or just always when testcomplete is executing its tests?
I am frustrated with chrome not having the ability to throw everything it knows away when you close it.
At this moment I have the feeling it is messing with me with a test, because it doesn't throw away everything. So I want to have a clean browser when starting my test. How do I do this?
Chrome is the only browser that is messed up at the moment. When I execute this test in non-incognito modus it fails, when I test it in incognito modus, it doesn't fail.
So please tell me how to start chrome incognito via testcomplete.
Hi,
> When I execute this test in non-incognito modus it fails
To add to tristaanogre:
While it is a matter of requirements to your tests and test code and the actual failure context, you may consider to improve your tests so that they do not fail. For example, for the classic unit test it may be required to have an empty input field on test start. And this is quite fine for the unit test. But for the end-to-end test that more or less emulates how the end-user works with your application: if the browser in standard configuration pre-fills input fields with previous data and this creates problems for the end-user (read this as 'breaks your test') then this may be the reason to reconsider how your application is implemented.