How do i start database testing with selenium and SQL SERVER, kinldy let me know which all jar's do i have to download and start .
Thanks,
PK
Selenium RC is meant to test html pages, using javascript, which is wrapped into client drivers for several languages. If you need anything from database it doesn't relate to selenium, just include your DB client libs and access it independently to Selenium.
Selenium is used mostly for web application testing.
You can use java features for database testing.
See the example given in the link below. You can use sql queries in java program to fetch results from database and validate them in the java program itself.
click here
Related
I am using selenium webdriver to automate websites.How can I extract data from Oracle database using JDBC connection in a hashtable and use it in a data driven framework to pass on parameters?
Using JDBC/ADODB has nothing to do with Webdriver. Google for JDBC tutorial and you will get enough material on how to connect to a DB, get data and use that data. Some database drivers provide option to get retrieve data from tables into arrays. If you want to get data into hashtable, you will have to create your own logic and then use in your selenium tests.
I am creating a desktop application in JavaFx.
1.I want to save all data on client machine (data should be so big).
2.Want simple configuration with database (user friendly).
3.I search sqlite is better option for those type of application but i don't get it the advantages.So please tell me the pro n cons.
4.Is there any option for sqlite for such a application?
I am fresher with JavaFx . So I want a help .
While sql-lite is likely fine and is usable from Java, as you are writing a Java application, I think a pure java database might be preferable - for example H2.
To use H2, just include the H2 jar file on your application's class path and there is no additional setup required for use. Here is an example of using a H2 database from JavaFX over JDBC.
The H2 based example JavaFX application is from javafx connection to mysql and the answer there may provide some more basic info to get you started.
Once you start using a standard api like jdbc or jpa and have established a database connection, the great majority of database related code is pretty agnostic of the backend database system chosen.
As to canvasing detailed opinions of pros and cons of one particular database over another - a google search is probably a better resource for that than a stackoverflow question.
How to fetch DB results from TOAD for DB2 using Ruby/capybara
Are you asking about TOAD, the DB client app? If so, Capybara is not the tool you should use as it only works for web apps (browser or headless browser tests). If you want to check the contents of a DB2 database using ruby then you could connect to it with ActiveRecord and run queries using that. On the other hand if you want to automate TOAD's user interface using ruby/capybara then you're out of luck - that's not possible.
I am starting to learn Reporting Services and I read that it uses SQL Server to store the meta data. I am planning to use it in a WinForm app. Does SSRS require SQL Server to be used in a WinForm app? Can it be self contained like Crystal?
You can use LocalReport in order to make reports but you should give it directly the datasource. More over the ReportViewer Redistribuable Package should be installed !
I have tried SQLite in Java, but the speed is slow due to the JDBC driver. Then I tried HSQLDB and thought the speed is good, but I cannot find a good management tool for HSQLDB such as phpMyAdmin for MySQL or SQLite Manager for SQLite.
I'd like to use the manager tool to prepare the test data for unit tests, or use the manager tool to navigate the data after doing some small experiments.
Is there any good tool?
Here are a couple other suggestions you might checkout:
Squirrel SQL http://squirrel-sql.sourceforge.net/
Execute Query http://executequery.org/
Razor SQL (paid) http://www.razorsql.com/
Razor has the best feature set, but is paid. The others are good at different things and worth checking into.
This would only have meaning if you are running in HSQLDB server mode. If you are running in memory or file mode, then you either can't access the DB from another process or doing so would lock it.
In Server mode you could use any universal client. JDBC driver is the hsqldb.jar itself.
Actually HSQL brings its own management tool (which is not super). See http://hsqldb.org/doc/guide/apf.html
I've used Squirrel SQL. It's a universal client for any JDBC database.
See: http://squirrel-sql.sourceforge.net/