Sponsored Content
Top Forums Shell Programming and Scripting Migration unit testing process Post 302241065 by onesuri on Sunday 28th of September 2008 06:49:56 AM
Old 09-28-2008
Migration unit testing process

Hi,
We are doing migration from DB2 to Teradata.
There are couple of things involving in the project.

Please see below following order

Autosys-Jil script
Profile script
Category1
Teradata script
Data stage job script
Tera data script
Export files script..


Like that we have 10000 jobs....

We are planning to migrate all the scipts. We did lot of atomization to change all the scripts,,, like search and replace the string....


Now the challenging task is UNIT TESTING.
I suggested the client two ways:

1. We deploy all the existing code in to one schema.....
Another schema we will deploy the latest code....
We will compare with the counts in the tables.
The output counts should be matched.

Advantages:
1. Improve the quality of testing
2. Work flow is understandable.
Disadvantages:
1. Investing llot of cost on resources.
2. Client is not accepting to spend that much money on additional resource


2. First deploy the existing code then load the data into tables. Then take the back up of the tables and deploy the new code and trigger the load.
Compare the two tables.
The counts should be match.

Advantages:
1. Save the amount of resource cost.

Disadvantages:
1. Re work process is more if the output is not correct.

Please advise me any other solution.

We have very less time to do on unit testing. Help me on advises and automise the unit testing process.

Thanks
Suri...
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Process migration

Using binary translators, would it be possible capture the runtime image (instructions and data) of processes and translate these so that the process can run from where it left on a machine with a different architecture? This will be useful for migrating applications to heterogenous systems for... (3 Replies)
Discussion started by: sumona
3 Replies

2. UNIX for Dummies Questions & Answers

process migration

how can i migrate a running process in unix to another node for load balancing? (3 Replies)
Discussion started by: aisalihu
3 Replies

3. UNIX for Advanced & Expert Users

process migration

how can i migrate a running process in unix to another node? (1 Reply)
Discussion started by: aisalihu
1 Replies

4. UNIX for Dummies Questions & Answers

Testing the forking process.

Hey, first time poster and a new UNIX user here. My question is regarding the forking process. I logged in to tty1, and typed the command ls -1 and hit enter. How can i tell that the ls -1 command ran in a subshell? Thanks. (0 Replies)
Discussion started by: Vitamin254
0 Replies

5. Shell Programming and Scripting

Testing a process has ended (in the background)

Hi guys. Hopefully this question will make sense! Continuing on my script to automatically copy some huge files across the network onto various servers as background jobs, I need to be able to check that each job has finished successfully. The script below shows what I want - almost. The... (2 Replies)
Discussion started by: dlam
2 Replies

6. Red Hat

Doubt about process migration

Hello experts, My doubt is, shall we move process from one node to another node..? This will be need when the cpu running on max load. Thanks. (1 Reply)
Discussion started by: srigias
1 Replies

7. UNIX for Dummies Questions & Answers

Simple unit script

Hello guys this is my first post in this forum. Since now ive been passive an ive only been looking for existing information. Now I could use specific help on a UNIX script i want to make that would: 1. Take 1-3 arguments. 2. Display the contents of its arguments, formatted as follows:... (7 Replies)
Discussion started by: banzomaster
7 Replies

8. AIX

AIX - FC Switch migration, SAN Migration question!

I'm New to AIX / VIOS We're doing a FC switch cutover on an ibm device, connected via SAN. How do I tell if one path to my remote disk is lost? (aix lvm) How do I tell when my link is down on my HBA port? Appreciate your help, very much! (4 Replies)
Discussion started by: BG_JrAdmin
4 Replies
asadmin-deploy(1AS)						   User Commands					       asadmin-deploy(1AS)

NAME
asadmin-deploy, deploy - deploys the specifiedcomponent SYNOPSIS
deploy --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile filename] [--terse=false] [--echo=false] [--interactive] [--virtualservers virtual_servers] [--contextroot context_root] [--force=true] [--precom- pilejsp=false] [--verify=false] [--name component_name] [--upload=true] [--retrieve local_dirpath] [--dbvendorname dbvendorname] [--cre- atetables=true|false | --dropandcreatetables=true|false] [--uniquetablenames=true|false] [--deploymentplan deployment_plan] [--enabled=true] filepath Deploys an EJB, web, connector or application. If the component is already deployed or already exists, it is forcefully re-deployed if the --force option is set to true. The --createtables and --dropandcreatetables options are booleans and therefore can take the values of true or false. These options are only used during deployment of CMP beans that have not been mapped to a database (i.e., no sun-cmp-mappings.xml descriptor is provided in the module's META-INF directory). They are ignored otherwise. The --createtables option and --dropandcreatetables option are mutually exclusive; only one should be used. If drop and/or create tables fails, the deployment does not fail; a warning message is provided in the log file. This command is supported in remote mode only. OPTIONS
--user authorized domain application server administrative username. --password password to administer the domain application server. --host machine name where the domain application server is running. --port port number of the domain application server listening for administration requests. --secure if true, uses SSL/TLS to communicate with the domain application server. --passwordfile file containing the domain application server password. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. --echo setting to true will echo the command line statement on the standard output. --interactive prompts you for the required options that are not already specified. --virtualservers comma separated list of virtual server name. --contextroot valid only if the archive is a web module. It is ignored for other archive types; defaults to filename without extension. --force makes sure the component is forcefully (re)deployed even if the specified component has already been deployed or already exists. --precompilejsp by default is set to false which does not allow the JSP to pre-compile during deployment. Instead JSPs are compiled during runtime. --verify if set to true, the syntax and semantics of the deployment descriptor is verified. --name name of the deployable component. --upload when set to true, uploads the deployable file to the administration server. If the filepath of the deployable file is mounted to the server machine, or if the administration server is running locally, set the upload option to false. --retrieve retrieves the client stub JAR file from the server machine to the local directory. --dbvendorname name of database vendor being used. Default is the corresponding entry in the cmp-resource() element of the sun- ejb-jar.xml file. If not specified the default is SQL92. Thereby the DDL files to create and drop tables will be generated in SQL92 format. --createtables creates tables at deploy of an application with unmapped CMP beans. Default is the corresponding entry in the cmp- resource element of the sun-ejb-jar.xml file. If not specified, defaults to the entries specified in the deployment descriptors. --dropandcreatetables drops tables at redeploy of an already deployed application with unmapped CMP beans. If not specified, the tables will be dropped if the drop-tables-at-undeploy entry in the cmp-resource element of the sun-ejb-jar.xml file is set to true. The new tables are created if the create-tables-at-deploy entry in the cmp-resource element of the sun- ejb-jar.xml file is set to true. On redeploy the tables created by the previous deploy are dropped before creating the new tables. --uniquetablenames guarantees unique table names for all the beans and results in a hashcode added to the table names. This is useful if you have an application with case-sensitive bean names. --deploymentplan takes the deployment plan, which is a JAR containing Sun-specific descriptors, and deploys it. This should be passed along when deploying a pure EAR file. A pure EAR file is an EAR without Sun-specific descriptors. --enabled if set to true (default), allows user to access the application. If set to false, user will not be able to access the application. OPERANDS
filepath path to the deployable file on the local machine if the --upload option is set to true; otherwise the absolute path to the file on the server machine. Example 1: Deploying a J2EE application Deploy (install) the J2EE application packaged in the Cart.ear file. asadmin> deploy --user admin --password admin123 --host murph --port 4848 Cart.ear Command deploy executed successfully Example 2: Deploying a Web application with the default context root Deploy the Web application in the hello.war file at the hello context root. asadmin> deploy --user admin hello.war Command deploy executed successfully Example 3: Deploying an enterprise bean (EJB component) Deploy and enterprise bean with container-managed persistence (CMP) and create the database tables used by the bean. asadmin> deploy --user admin --createtables=true EmployeeEJB.jar Command deploy executed successfully Example 4: Deploying a connector module (resource adapter) Deploy a connector module packaged in a RAR file. asadmin> deploy --user admin jdbcra.rar Command deploy executed successfully EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-undeploy(1AS), asadmin-list-components(1AS) J2EE 1.4 SDK March 2004 asadmin-deploy(1AS)
All times are GMT -4. The time now is 09:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy