Skip to content
Snippets Groups Projects
Commit 87920a48 authored by Janis Daniel Dähne's avatar Janis Daniel Dähne
Browse files

- added public stats file

- moved stats to separate dir
- changed included to work with dirs
parent d9eeff8b
No related branches found
No related tags found
No related merge requests found
<?php
require_once './constants.php';
require_once __DIR__.'/constants.php';
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
......@@ -37,7 +37,7 @@ if (isset($config['useConfigFromDb']) === FALSE || (isset($config['useConfigFrom
//get the config from the db
include_once './sqlHelper.php';
include_once __DIR__.'/sqlHelper.php';
$conn = connectToDb($config['dbConfigServer'], $config['dbConfigName'], $config['dbConfigUser'], $config['dbConfigPw']);
......
......@@ -3,7 +3,7 @@
# variables
//use this to know which version we published
$versionString = '1.1.1';
$versionString = '1.1.2';
$rootDirNameToUseString = 'work';
$isDebug = false; //logs debug to STDOUT
......
<?php
include_once './constants.php';
include_once './transactionHelper.php';
include_once __DIR__.'/constants.php';
include_once __DIR__.'/transactionHelper.php';
/**
......
<?php
require_once './constants.php';
require_once __DIR__.'/constants.php';
//
//from http://stackoverflow.com/questions/834303/startswith-and-endswith-functions-in-php
......
<?php
//return the test server stats
//NOTE: only post is allowed!!
#requires some helper function to e.g. create / delete dirs, handle output...
$config = require __DIR__.'/../bootstrap.php';
require_once __DIR__.'/../constants.php';
$response = array(
"workingDirFullPath" => $config["workingDirFullPath"],
"hardGlobalTimeoutInMs" => $config["hardGlobalTimeoutInMs"],
"maxParallelTests" => $config["maxParallelTests"],
"maxNumberOfTestsWithOneRequest" => $config["maxNumberOfTestsWithOneRequest"],
//"runner" => $config["runner"], //maybe not needed
"maxLinesToRead" => $config["maxLinesToRead"],
"maxErrLinesToRead" => $config["maxErrLinesToRead"],
"maxLinesToWrite" => $config["maxLinesToWrite"],
"showTestRunnerDebugOutput" => $config["showTestRunnerDebugOutput"],
"dbServer" => $config["dbServer"],
"dbName" => $config["dbName"],
"useConfigFromDb" => $config["useConfigFromDb"],
"dbConfigServer" => $config["dbConfigServer"],
"dbConfigName" => $config["dbConfigName"],
"environmentVars" => $config["environmentVars"],
);
if ($isDebug) {
debug(json_encode($respone));
}
output($status_code_Ok, "", $response);
<?php
//return the test server stats
//NOTE: only post is allowed!!
$config = require '../bootstrap.php';
require_once __DIR__.'/../constants.php';
#requires some helper function to e.g. create / delete dirs, handle output...
$response = array(
"hardGlobalTimeoutInMs" => $config["hardGlobalTimeoutInMs"],
"maxNumberOfTestsWithOneRequest" => $config["maxNumberOfTestsWithOneRequest"],
"maxLinesToRead" => $config["maxLinesToRead"],
"maxErrLinesToRead" => $config["maxErrLinesToRead"],
"maxLinesToWrite" => $config["maxLinesToWrite"],
"showTestRunnerDebugOutput" => $config["showTestRunnerDebugOutput"],
);
if ($isDebug) {
debug(json_encode($respone));
}
output($status_code_Ok, "", $response);
<?php
include_once './constants.php';
include_once './sqlHelper.php';
include_once __DIR__.'/constants.php';
include_once __DIR__.'/sqlHelper.php';
/**
* registers/starts a test run (a transaction)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment