예제 #1
0
 public function testPut()
 {
     $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", "samplemod", "2012-07-06");
     $table = "TRANSLATION";
     $rest = new RestMessage();
     $rest->sendPUT($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");
 }
예제 #2
0
 public function testPut()
 {
     $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", "XAMPLE");
     $table = "CONTENT";
     $rest = new RestMessage();
     $rest->sendPUT($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 updating data");
 }
예제 #3
0
 public function testPut()
 {
     $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", "2008", "", "DRAFT", "6548800755065a63d67f727063273525", "", "", "N", "00000000000000000000000000000001", "00000000000000000000000000000001", "2012-09-28 10:44:59", "2012-09-28 12:11:58", "2012-09-28 12:11:58", "2012-09-28 12:11:58", "", "00a9357205f5ea2d9325e166092b0e3f");
     $table = "APPLICATION";
     $rest = new RestMessage();
     $rest->sendPUT($table, $APP_UID);
     //$rest->displayResponse();
     $APP_UID2 = array();
     $rest->sendPOST($table, $APP_UID2);
 }
예제 #4
0
 public function testPut()
 {
     $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", "XAMPLE", "913768259503b76894536b2095222222", "", "1", "VIEW");
     $table = "STEP";
     $rest = new RestMessage();
     $rest->sendPUT($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("741973");
     $rest->sendGET($table, $key2);
     //$this->assertEquals($queryTable, $resp, "ERROR updating data");
 }
예제 #5
0
<?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();
예제 #6
0
 public function testPut()
 {
     $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", "adminsad", "21232f297a57a5a743894a0e4a801fc3", "Administrator", "*****@*****.**", "2020-01-01", "1999-11-30 00:00:00", "2008-05-23 18:36:19", "ACTIVE", "US", "FL", "MMK", "", "", "1-305-402-0282", "1-305-675-1400", "", "", "Administrator", "", "1999-02-25", "PROCESSMAKER_ADMIN", "", "", "NORMAL");
     $table = "USERS";
     $rest = new RestMessage();
     $rest->sendPUT($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 updating data");
 }
예제 #7
0
 public function testPut()
 {
     $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", "XAMPLE", "00000000000000000000000000000001", "192.168.11.21", "2012-10-09 10:05:52", "2012-10-09 10:20:52", "");
     $table = "SESSION";
     $rest = new RestMessage();
     $rest->sendPUT($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 updating data");
 }
예제 #8
0
 public function testPut()
 {
     $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", "000000000000000000000000000004", "00000000000000000000000000000001");
     $table = "APP_OWNER";
     $rest = new RestMessage();
     $rest->sendPUT($table, $key);
     //$rest->displayResponse();
     $key1 = array("741388075505cd6bba2e993094312900", "000000000000000000000000000004", "00000000000000000000000000000001");
     $resp = $rest->sendGET($table, $key1);
     $queryTable = $this->getConnection()->createQueryTable('APP_OWNER', 'SELECT * FROM APP_OWNER WHERE APP_UID = "741388075505cd6bba2e993094312900"');
     $key2 = array("741973");
     $rest->sendGET($table, $key2);
     //$this->assertEquals($queryTable, $resp, "ERROR getting data");
 }
예제 #9
0
 public function testPut()
 {
     $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", "2", "DAYS", "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->sendPUT($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 updating data");
 }