Title: Test data setup for test suit · Issue #919 · utPLSQL/utPLSQL · GitHub
Open Graph Title: Test data setup for test suit · Issue #919 · utPLSQL/utPLSQL
X Title: Test data setup for test suit · Issue #919 · utPLSQL/utPLSQL
Description: I would like to if there is a common way of setting up the input data required the test case to test the package/procedure I have written. For example: If my procedure functionality is to check the balance of a bank account. Bank account...
Open Graph Description: I would like to if there is a common way of setting up the input data required the test case to test the package/procedure I have written. For example: If my procedure functionality is to check the...
X Description: I would like to if there is a common way of setting up the input data required the test case to test the package/procedure I have written. For example: If my procedure functionality is to check the...
Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/919
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test data setup for test suit","articleBody":"I would like to if there is a common way of setting up the input data required the test case to test the package/procedure I have written.\r\n\r\nFor example:\r\n\r\n1. If my procedure functionality is to check the balance of a bank account. \r\n2. Bank account number is input to the procedure.\r\n\r\nFor this functionality to work :\r\n\r\nI need to have this bank account number already present in the database.\r\nSo ,prior to calling my procedure I need to call few other APIs/packages/procedures to create the account and corresponding data etc.\r\nBut this is not quite simple as it involves multiple functionalities to be called to setup the account.\r\nAnd also it is time consuming process which impacts the test suit execution times.\r\n\r\n**So I have come up with an idea :**\r\n\r\n1.Create the account setup manually for the first time when I develop my test case. Probably reuse the existing data.\r\n2.I know all the tables in which this data would go and I have a list of tables.\r\n3.So ,I have created an xml for each table as \u003ctable_name>.xml file in an unix directory.\r\n This directory is the directory_path for the oracle directory which be created automatially by a script when the first time test case developed.\r\n4. Then from now onwards whenever I run my test case , in --%beforeeach annotation I would call a procedure which dumps(using DBMS_XMLSTORE.insertxml) the data into table.\r\n\r\nThis was working fine until we upgrade to 12c . \r\nIn 12c as a security compliance the oracle directory creation (create directory) facility was removed for individual schema/users.\r\nMy DBA is strict on this as it is security compliance issue.\r\n\r\nI do not want to create a one time directory with help of DBA and use for all the test cases as I want to maintain the data in a better way for each test case. \r\n\r\nI am maintaining my data in Unix box as /app/utPL/\u003csuit_name>/\u003cmodule>/\u003ctest_case>/input_data\r\n\r\nSo on high level \r\n1. I want to avoid calling multiple APIs/processes while setting up the data each time which are complex and time consuming.\r\n2. Want to use a pre-stored data ( kind of dump created by expdp or in xmls) which can be inserted into tables before each test case. This data will never be committed so no need of special clean up instructions.\r\n\r\nCurrently I am using the version V3.1.2\r\n \r\nI have searched if same question already raised but only found this\r\nhttps://github.com/utPLSQL/utPLSQL/issues/333\r\n\r\nUnderstood that it is not a generic solution w.r.t framework that you guys could provide.\r\nBut what are the common practices, if you are aware ,that are being followed in similar cases as mine?\r\n\r\nand also for the grants that are required by the test schema causing a clash between DBA and dev teams. Is there a suggestion on this?\r\n\r\n\r\nThanks!!","author":{"url":"https://github.com/MS-24","@type":"Person","name":"MS-24"},"datePublished":"2019-05-11T09:29:36Z","url":"https://github.com/utPLSQL/utPLSQL/issues/919"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3438aa5e-1809-44ea-6492-7e2bcce7ff4d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9118:3D1C6E:96323A:D1B9F2:6B0485D6 |
| html-safe-nonce | 1bebbd3683f99c4ced9fe558f36035d297b4f564816abf6a419151a0b5b22eb4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTE4OjNEMUM2RTo5NjMyM0E6RDFCOUYyOjZCMDQ4NUQ2IiwidmlzaXRvcl9pZCI6IjMyODMwMTMwNjEyNzM1MzMwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 30262b0c7d79d46001ad642dadde43320efe438bd819947f2dd48f9be8e67a08 |
| hovercard-subject-tag | issue:442973797 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/919/issue_layout |
| twitter:image | https://opengraph.githubassets.com/42fc442e86f691dd79c6be4f88ab805c90c0a3e42add6e327705b773fc3925e9/utPLSQL/utPLSQL/issues/919 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/42fc442e86f691dd79c6be4f88ab805c90c0a3e42add6e327705b773fc3925e9/utPLSQL/utPLSQL/issues/919 |
| og:image:alt | I would like to if there is a common way of setting up the input data required the test case to test the package/procedure I have written. For example: If my procedure functionality is to check the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MS-24 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| turbo-cache-control | no-preview |
| go-import | github.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git |
| octolytics-dimension-user_id | 15661281 |
| octolytics-dimension-user_login | utPLSQL |
| octolytics-dimension-repository_id | 50728220 |
| octolytics-dimension-repository_nwo | utPLSQL/utPLSQL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50728220 |
| octolytics-dimension-repository_network_root_nwo | utPLSQL/utPLSQL |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width