Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Test postresql databbase

This is a discussion on Test postresql databbase within the Testing Issues forums, part of the Software Testing category; Hi everybody, can anyone clarify about how to test db testing, i am using postgresql. What is the procedure to do this test and how to check volume or load ...

Go Back   Geeks Talk > Software Testing > Testing Issues
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 01-09-2008
Junior Member
 
Join Date: Jan 2007
Location: india
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
logesh is on a distinguished road
Test postresql databbase

Hi everybody,

can anyone clarify about how to test db testing, i am using postgresql. What is the procedure to do this test and how to check volume or load capability of db? is there any way to create dummy records(50000) automatically like name, address, age like that how to creat 50,000 records automatically to check the volume or load of the db?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-12-2008
Banned
 
Join Date: Oct 2007
Location: Hyderabad
Posts: 176
Thanks: 2
Thanked 13 Times in 13 Posts
quality_quantity is on a distinguished road
Re: Test postresql databbase

Database tests are supported via odbc using the following functions: sqlopen, sqlclose, sqlerror, sqlretrieve, sqlretrievetofile, sqlexecquery, sqlgetschema and sqlrequest. You can carry out cursor type operations by incrementing arrays of returned datasets. All sql queries are supplied as a string. You can execute stored procedures for instance on sql server you could use “exec mystoredprocedure” and as long as that stored procedure is registered on the sql server database then it should execute however you cannot interact as much as you may like by supplying say in/out variables, etc but for most instances it will cover your database test requirements a sample database test could look like this: sub main ' declarations ' dim connection as long dim destination(1 to 50, 1 to 125) as variant dim retcode as long dim query as string dim outputstr as string connection = sqlopen("dsn=sbltest",outputstr,prompt:=3) ' ' execute the query query = "select * from customer" retcode = sqlexecquery(connection,query) ' retrieve the first 50 rows with the first 6 columns of each row into ' the array destination, omit row numbers and put column names in the ' first row of the array retcode = sqlretrieve(connection:=connection,destination:=destination, columnnames:=1,rownumbers:=0,maxrows:=50, maxcolumns:=6,fetchfirst:=0) ' get the next 50 rows of from the result set retcode = sqlretrieve(connection:=connection,destination:=destination,columnnames:=1,rownumbers:=0,maxrows:=50, maxcolumns:=6) ' close the connection retcode = sqlclose(connection) end sub
Reply With Quote
  #3 (permalink)  
Old 11-12-2008
Junior Member
 
Join Date: Aug 2006
Location: Mumbai
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mooseindia is on a distinguished road
Re: Test postresql databbase

You have tools like pgbench available to test the performance for your postgresql database, make sure u change the required parameters to get the best performance after running your tests using pgbench.
Reply With Quote
Reply

  Geeks Talk > Software Testing > Testing Issues

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
difference between test cases,test scenario,and test suite? forana Test Cases 64 09-16-2009 07:05 AM
If test case required for testing always post test scenario. jainbrijesh Test Cases 15 12-30-2008 10:55 AM
Diff bet Test Strategy, test plans and test case vikas_goel28 Testing Issues 4 03-02-2008 11:56 AM
Running Test in Test Director Test Lab without QTP Geek_Guest QTP 2 12-24-2007 01:57 AM
How do I make a new requirement, test plan, test script, defect in test director 9.0 Geek_Guest Test Director 0 06-20-2007 10:50 PM


All times are GMT -4. The time now is 02:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved