Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHello,
I'm not sure I've understood your question well, but I think you can use property expansion here.
So you need to define property on test suite level (e.g. db_conn_url) and give it some default value
(e.g. jdbc:mysql://127.0.0.1:3306/test_db?user=root) and in data source for connection string
you should type: ${#TestSuite#db_conn_url}. You can do something similar for 'Driver:' field.
Now you can change test suite property between requests to connect to different db servers.
Hope this helps. If this is not what you've meant please explain in more details what exactly you
need to do.
regards!
Predrag
/eviware.com
I'm not sure I've understood your question well, but I think you can use property expansion here.
So you need to define property on test suite level (e.g. db_conn_url) and give it some default value
(e.g. jdbc:mysql://127.0.0.1:3306/test_db?user=root) and in data source for connection string
you should type: ${#TestSuite#db_conn_url}. You can do something similar for 'Driver:' field.
Now you can change test suite property between requests to connect to different db servers.
Hope this helps. If this is not what you've meant please explain in more details what exactly you
need to do.
regards!
Predrag
/eviware.com