2 Pass correct username and incorrect password, it should fail.
3 Pass incorrect user name, it should fail.
4 Pass correct username and correct password, Connection should be established.
12 AbsSqlConnection
*con
= createConnection();
14 rv
= con
->connect("root","manager123");
16 printf("Test script failed with error%d\n",rv
);
21 printf("Connection is not opened due to Incorrect password\n");
23 rv
= con
->connect("root123","manager");
25 printf("Test script failed with error%d\n",rv
);
30 printf("Connection is not opened due to Incorrect Username\n");
31 //Correct user name and correct password
32 rv
= con
->connect("root","manager");
34 printf("Test script failed with error%d\n",rv
);
38 printf("Connection is opened with correct Username and password\n");