Hello,
I'm wondering if there is a way to truncate a database using a code module.
The tutorial for code modules haven't been helpful and I'm not a developer, so I was wondering if this was possible.
I want to basically run a test case where I have my user log in, adds some data, truncate the database, log off, and close the application.
So any help is great.
thanks!
How to Delete Database using Code Module
Re: How to Delete Database using Code Module
Hi,
I'm afraid, there is not an out-of-the-box solution for this prepared in Ranorex. You will have to write such code. If you are not familiar with DB programming, I would suggest to use google to search for a piece of code, which would suit your purpose.
For example, these links may help...
https://msdn.microsoft.com/cs-cz/librar ... 2147217396
https://stackoverflow.com/a/5170462
https://stackoverflow.com/a/14070272
I'm afraid, there is not an out-of-the-box solution for this prepared in Ranorex. You will have to write such code. If you are not familiar with DB programming, I would suggest to use google to search for a piece of code, which would suit your purpose.
For example, these links may help...
https://msdn.microsoft.com/cs-cz/librar ... 2147217396
https://stackoverflow.com/a/5170462
https://stackoverflow.com/a/14070272
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration