Hi All,
I would like to use only native Studio functionality and have two nooby questions.
1. How to send data to source DB from coded step (have already DB connection defined - I use DSN connection to mysql)?
Is there a simple method to run just pure insert query?
All I have found are few Visual Studio methods and JS which seems to be a problem for me as I act as a client only and cannot add my JS to the WebPage (requirenment from Invoking JavaScript page:http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/advanced-topics/javascript/invoking-javascript.aspx)
2. How to retrieve value to some variable from page element
Example:
I have page called KarolPortfolio and element called Balance in the hierarchy on the right in my Telerik Studio.
In the recorded step it is defined as a primary target: /KarolPortfolio/Balance
Balance is an element found using find syntax: tagname is exactly strong and class is exactly balance
Is there a way to run something similar to this code?
Dim balance as string = KarolPortfolio.Balance.ToString
As a last step I want to send this Balance to the DB table that is defined in the first step.
regards
Karol
I would like to use only native Studio functionality and have two nooby questions.
1. How to send data to source DB from coded step (have already DB connection defined - I use DSN connection to mysql)?
Is there a simple method to run just pure insert query?
All I have found are few Visual Studio methods and JS which seems to be a problem for me as I act as a client only and cannot add my JS to the WebPage (requirenment from Invoking JavaScript page:http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/advanced-topics/javascript/invoking-javascript.aspx)
2. How to retrieve value to some variable from page element
Example:
I have page called KarolPortfolio and element called Balance in the hierarchy on the right in my Telerik Studio.
In the recorded step it is defined as a primary target: /KarolPortfolio/Balance
Balance is an element found using find syntax: tagname is exactly strong and class is exactly balance
Is there a way to run something similar to this code?
Dim balance as string = KarolPortfolio.Balance.ToString
As a last step I want to send this Balance to the DB table that is defined in the first step.
regards
Karol