Can Selenium Web driver helps to extract data from DB - selenium-webdriver

Currently client told to extract huge data from DB, can we do that using Selenium Webdriver?
If Yes.. Please tell me the steps to do?
If No.. Please tell me is there any other way to do ?

No you can't do this using selenium webdriver.
If you are using java then use JDBC to connect with your DB and then extact data according to your need.
Refer:-
http://www.tutorialspoint.com/jdbc/jdbc-sample-code.htm
Hope it will help you :)

Selenium is not what you want here, it is an API used to perform test automation, not database read/writes.
You need to find out which programming language your client requires you to code in (.NET, Java, Python etc.) and then research how to connect to databases and perform read/writes.
Whichever language you use there are thousands of examples online.

Related

Server communication with database

I'm creating an online game and the client is going to be made using unity as well as the server and I'm wondering whether it's okay for the server to communicate with mysql database via PHP
For simple tasks, there is actually nothing wrong with that.
There is also a example of using this method in the wiki here: http://wiki.unity3d.com/index.php?title=Server_Side_Highscores
But be aware: that is not the fastest solution.
You could make a faster direct connection with a plugin like this one:
https://github.com/Hanslen/Unity-with-MYSQL
And for native unity support on Android and iOS support i would go with a sqlite database plugin: https://github.com/rizasif/sqlite-unity-plugin

How to develop an simple application for Blackberry that allows me to send and receive data from mysql server

I want to develop an simple application for a blackberry that allows me to send and receive data from a MySQL server. I am not that familiar with Java Mobile Programming but am aware I need some sort of web service/servlet. I have been trying to find out how I can do this from blackberry tutorials/forums but without success. Basically I want to query a MySQL database from a blackberry and want the result returned. Can anyone tell me how I can do this or provide sample code? Or offer any easier alternatives?

How to list the namespaces of a Citrusleaf/AeroSpike host?

I want to list the namespaces on a host remotely using the C# Client SDK, and the documentation is very scarce about it.
I am aware of a server tool to do this but I need to query that from a maintenance tool that I am writing, so using the server console is not an option.
Does anybody know if this is possible and if so how to do it?
You can make an info call with the string "namespaces" and parse the returned value.
doc on c# info API: http://www.aerospike.com/apidocs/csharp/html/Methods_T_Aerospike_Client_Info.htm
You can get that information by emulating the logic that clmonitor utilizes to communicate with the Aerospike cluster. Clmonitor is written in Python; executing the 'info' command in clmonitor provides a wealth of information, a subset of which is the list of namespaces. I suggest that you emulate the logic used by clmonitor in your C# code to communicate with the cluster and then parse out the information that you require. In the future, I suggest that you take advantage of the Aerospike forums to ask questions about Aerospike. Thank you for your interest in Aerospike.

Eclipse can't connect database

Is it possible to build desktop application whit small data base on linux/ubuntu? I have try eclipse+derby- not work, driver load, but can't connect to db. Eclipse +sqlite- not work too, No suitable driver. For a week from now i trying and can't connect to my db. If some1 have WORKING tutorial how to do this in ubuntu+eclipse, pls share. 1 week google, so please if some1 pass this to help me.
Now im using SQLite, i have load the sqlitejdbc-v051.jar in build path and use
Class.forName("org.sqlite.JDBC").newInstance();
but the result is: No suitable driver found for jdbc:derby:/home/vasil/MYDB
Have you taken a look at this site? It seems to be a fairly decent walkthrough. Is the db server that you are trying to connect to running and somewhere accessible to your application?
Take a look at this question. It seems to be very similar to yours. I havn't used derby but I have used many other db servers. It sounds like you dont have the driver on your applications classpath.
Also, this tutorial might also be helpful. It shows how to use jdbc to connect to a db.

Connect and modify SQL server from Selenium using Ruby (no Rails)

I guess Selenium isn't that important to this question but I thought I'd add it in. Also, I'm not using Rails.
I need to access Sqlserver and delete some records using ruby. Nothing too crazy. I've found some information online but I would like to know what you recommend is the best way to do this.
I've come across the DBI and SEQUEL gems but am unsure about the amount of time I'll need to invest to get up and running. Also, are there any better alternatives?
Thank you
You might want to try tiny_tds to see if that fits your needs. It's pretty bare-bones without an ORM.

Resources