public function testPost() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $key = array("440848627503b77c71a9637074444444", "359728002502a792a568a54012111111", "499115418502a795a0cfb43043666666", "SAMPLE", "913768259503b76894536b2095222222", "", "1", "EDIT"); $table = "STEP"; $rest = new RestMessage(); $rest->sendPOST($table, $key); //$rest->displayResponse(); $key1 = array("440848627503b77c71a9637074444444"); $resp = $rest->sendGET($table, $key1); $queryTable = $this->getConnection()->createQueryTable('STEP', 'SELECT * FROM STEP WHERE STEP_UID = "440848627503b77c71a9637074444444"'); $key2 = array(); $rest->sendPOST($table, $key2); //$this->assertEquals($queryTable, $resp, "ERROR inserting data"); }
public function testPost() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $key = array("741388075505cd6bba2e993094312900", "000000000000000000000000000003", "00000000000000000000000000000001"); $table = "APP_OWNER"; $rest = new RestMessage(); $rest->sendPOST($table, $key); //$rest->displayResponse(); $key1 = array("741388075505cd6bba2e993094312900", "000000000000000000000000000003", "00000000000000000000000000000001"); $resp = $rest->sendGET($table, $key1); $queryTable = $this->getConnection()->createQueryTable('APP_OWNER', 'SELECT * FROM APP_OWNER WHERE APP_UID = "741388075505cd6bba2e993094312900"'); $key2 = array(); $rest->sendPOST($table, $key2); //$this->assertEquals($queryTable, $resp, "ERROR getting data"); }
public function testPost() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $key = array("PRO_TITLE", "", "6666000755065a63d67f727063273222", "en", "SAMPLE"); $table = "CONTENT"; $rest = new RestMessage(); $rest->sendPOST($table, $key); //$rest->displayResponse(); $key1 = array("PRO_TITLE", "", "6666000755065a63d67f727063273222", "en"); $resp = $rest->sendGET($table, $key1); $queryTable = $this->getConnection()->createQueryTable('CONTENT', 'SELECT * FROM CONTENT WHERE CON_CATEGORY = "PRO_TITLE" AND CON_ID = "6666000755065a63d67f727063273222"'); //$this->assertEquals($queryTable, $resp, "ERROR inserting data"); }
public function testPost() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $key = array("00000000000000000000000000000002", "2012-09-04 09:48:57", "0", 'a:1:{i:0;s:32:"21232f297a57a5a743894a0e4a801fc3";}'); $table = "USERS_PROPERTIES"; $rest = new RestMessage(); $rest->sendPOST($table, $key); //$rest->displayResponse(); $key1 = array("00000000000000000000000000000002"); $resp = $rest->sendGET($table, $key1); $queryTable = $this->getConnection()->createQueryTable('USERS_PROPERTIES', 'SELECT * FROM USERS_PROPERTIES WHERE USR_UID = "00000000000000000000000000000002"'); //$this->assertEquals($queryTable, $resp, "ERROR getting data"); }
public function testPost() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $key = array("HOUSE", "PUSHIN", "en", "sample", "2012-06-06"); $table = "TRANSLATION"; $rest = new RestMessage(); $rest->sendPOST($table, $key); //$rest->displayResponse(); $key1 = array("HOUSE", "PUSHIN", "en"); $resp = $rest->sendGET($table, $key1); $queryTable = $this->getConnection()->createQueryTable('TRANSLATION', 'SELECT * FROM TRANSLATION WHERE TRN_CATEGORY = "HOUSE" AND TRN_ID = "PUSHIN"'); //$this->assertEquals($queryTable, $resp, "ERROR getting data"); }
public function testPost() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $key = array("00000000000000000000000000000002", "admin", "21232f297a57a5a743894a0e4a801fc3", "Administrator", "Adminn", "*****@*****.**", "2020-01-01", "1999-11-30 00:00:00", "2008-05-23 18:36:19", "ACTIVE", "US", "FL", "MMK", "Miraflores", "2240448", "1-305-402-0282", "1-305-675-1400", "", "", "Administrator", "", "1999-02-25", "PROCESSMAKER_ADMIN", "", "", "NORMAL"); $table = "Users"; $rest = new RestMessage(); $rest->sendPOST($table, $key); //$rest->displayResponse(); $key1 = array("00000000000000000000000000000002"); $resp = $rest->sendGET($table, $key1); $queryTable = $this->getConnection()->createQueryTable('USERS', 'SELECT * FROM USERS WHERE USR_UID = "00000000000000000000000000000002"'); //$this->assertEquals($queryTable, $resp, "ERROR inserting data"); }
public function testPost() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $key = array("2252443815002e3c2422675066811111", "ACTIVE", "00000000000000000000000000000001", "192.168.11.21", "2012-10-09 10:05:52", "2012-10-09 10:20:52", ""); $table = "SESSION"; $rest = new RestMessage(); $rest->sendPOST($table, $key); //$rest->displayResponse(); $key1 = array("2252443815002e3c2422675066811111"); $resp = $rest->sendGET($table, $key1); $queryTable = $this->getConnection()->createQueryTable('SESSION', 'SELECT * FROM SESSION WHERE SES_UID = "2252443815002e3c2422675066811111"'); //$this->assertEquals($queryTable, $resp, "ERROR inserting data"); }
public function testPost() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $key = array("6548800755065a63d67f727063255555", "6548800755065a63d67f727063666665", "5", "HOURS", "ACTIVE", "0", "NORMAL", "FALSE", "1", "1", "1", "0", " ", " ", "1", "2012-09-28 09:29:33", "2012-09-28 09:29:33", "00000000000000000000000000000001", "5000", "10000", "0", "6", "0", " ", " "); $table = "PROCESS"; $rest = new RestMessage(); $rest->sendPOST($table, $key); //$rest->displayResponse(); $key1 = array("6548800755065a63d67f727063255555"); $resp = $rest->sendGET($table, $key1); $queryTable = $this->getConnection()->createQueryTable('PROCESS', 'SELECT * FROM PROCESS WHERE PRO_UID = "6548800755065a63d67f727063255555"'); //$this->assertEquals($queryTable, $resp, "ERROR inserting data"); }
public function testPost() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $key = array("00000000000000000000000000000002", "Calendario Diario", "2012-09-17 13:00:04", "2012-09-17 13:01:06", "1", "horarios", "ACTIVE"); //$table = "CALENDAR_DEFINITION"; $table = "CalendarDefinition"; $rest = new RestMessage(); $rest->sendPOST($table, $key); //$rest->displayResponse(); $key1 = array("00000000000000000000000000000002"); $resp = $rest->sendGET($table, $key1); $queryTable = $this->getConnection()->createQueryTable('CALENDAR_DEFINITION', 'SELECT * FROM CALENDAR_DEFINITION WHERE CALENDAR_UID = "00000000000000000000000000000002"'); //$this->assertEquals($queryTable, $resp, "ERROR inserting data"); }
public function testDelete() { $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); //$jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); //$xmlm->displayResponse(); $APP_UID = array("4670755835065b7eb6a4187052654566"); $table = "APPLICATION"; $rest = new RestMessage(); $rest->sendDELETE($table, $APP_UID); //$rest->displayResponse(); $APP_UID2 = array(""); $rest->sendPOST($table, $APP_UID2); }
<?php require_once "JsonMessage.php"; require_once "XmlMessage.php"; require_once "RestMessage.php"; $msg = array('user' => 'admin', 'password' => 'admin'); $method = "login"; $jsonm = new JsonMessage(); $jsonm->send($method, $msg); $jsonm->displayResponse(); $xmlm = new XmlMessage(); $xmlm->send($method, $msg); $xmlm->displayResponse(); $msg = array("LABEL", "LOGIN", "en"); $table = "TRANSLATION"; $rest = new RestMessage(); $rest->sendGET($table, $msg); $rest->displayResponse(); $msg = array("HOUSE", "PUSHIN", "en", "sample", "2012-06-06"); $rest->sendPOST($table, $msg); $rest->displayResponse(); $msg = array("HOUSE", "PUSHIN", "en", "samplemod", "2012-07-06"); $rest->sendPUT($table, $msg); $rest->displayResponse(); $msg = array("HOUSE", "PUSHIN", "en"); $rest->sendDELETE($table, $msg); $rest->displayResponse();