Difference between revisions of "Developer How-To"
From Contensive Wiki
(→Setup a Selenium IDE Test Environment) |
|||
Line 1: | Line 1: | ||
==Setup a Selenium IDE Test Environment== | ==Setup a Selenium IDE Test Environment== | ||
− | + | <code> | |
// | // | ||
// bypass form serial numbers for automated testing | // bypass form serial numbers for automated testing | ||
Line 17: | Line 17: | ||
} | } | ||
return $s; | return $s; | ||
− | + | </code> | |
== To create a new AWS instance == | == To create a new AWS instance == |
Revision as of 17:35, 11 March 2016
Contents
[hide]Setup a Selenium IDE Test Environment
//
// bypass form serial numbers for automated testing
//
$needle = 'ccFormSN" VALUE="';
$snPos = stripos ( $s, $needle, 0 );
while ($snPos !== false ) {
$snPos += 17;
$needle2 = '">';
$snEnd = stripos( $s, $needle2, $snPos );
$sn = substr($s, $snPos, ($snEnd - $snPos));
$s = str_replace( $sn, "0", $s );
//$s .= '
ccFormSN sn=' . $sn;
$snPos = stripos ( $s, $needle, $snEnd);
}
return $s;
To create a new AWS instance
- log into AWS
- Under Images click AMIs
- select Contensive41 --> right click on Contensive41 and launch a new instance
- select general purpose t2.micro --> click next:
- review launch and click next:
- add storage change the size of root to 100gb
- add new volume under device change to xvdf change size to 400gb
- click next
- name the key Use new sever Name
- click next
- In configure security setting select an existing security group
- select production server, windows
- review
- launch
Assign an elastic Ip
- in ec2 select elastic ip
- under actions lallocate new address
- for a windows server select VPC in the EIP dropdown
- under actions associate the IP with the new instance created
Repairing a Microsoft Access Db
Use these steps to compact or repair an Access Db.
- Open the Upgrade folder.
- Shut down Contensive.
- Turn off auto start in application manager.
- Open the folder interpub/db and make a copy of the target database.
- Open odbc32 --> select the system dsn tab --> push ADD --> select the appropriate driver (ms-access driver)--> push finish -->
- select repair and find the newly copied db --> click ok --> close odbc32
- Go back into Interpub and copy the newly repaired db and rename it.
- now go back into odbc32 select the system DSN--> select add to create a new dsn --> select the ms access driver --> select the new db --> give it a new name (typically Incremented) --> click OK
- open app manager and rename the connection string
- restart contensive