Hello everyone!
I am doing mobile automation and facing some difficulties.
Currently, I have a test that selects specific programs(behavioral health) and collects data for them.
[Test]
[TestCase("App", "Only goals", "test duration", "Baseline to Teaching - Frequency_V2"...
Hello! I have a method that retrieves the first value of the first row in the first column from the database. Now I need to assert if it's a null value or not. In the database the value is NULL. Even if I assert is if it doesn't equal to null and then make it true. The code is passing. Here is...
Thank you for replying back. I will need to do some research about a mock database cause I am not really familiar with that but I think it would be something I would utilize in the future. Thanks a lot!
@jmcilhinney Is it possible to use assertions while reading the rows?
Something like that:
public static void DB()
{
using(SqlConnection connection = new SqlConnection(Config.connectionStringBH))
{
connection.Open();
string...
Hello! I am new to database testing. I am doing mobile automation and I need to validate sent data in the database. I am trying to write a method that will open the db connection, do some implementation, and then close it. I need a method to return a value but I am stuck with it.
So far I have...
Hello everyone!
I have two separate methods that open the connection and close it. But I need to implement a using statement. How can I establish the connection with a ‘using’ statement, so then I can implement database methods, validate the results, and then close/dispose the connection...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.