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. |
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 ...
|
|||||||
|
|||
|
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? |
| Sponsored Links |
|
|||
|
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
|
|
|||
|
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.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |