summaryrefslogtreecommitdiffstats
path: root/For Weekly Test
diff options
context:
space:
mode:
authorTriatmoko2011-10-30 20:00:48 +0100
committerTriatmoko2011-10-30 20:00:48 +0100
commitad32bf03c984317bbff916adc5a039d5385874a5 (patch)
tree7b9e2c8a90b402567eb10e9564f14aab31a33df3 /For Weekly Test
parentmutex4smart test (diff)
downloadgsm-selftest-ad32bf03c984317bbff916adc5a039d5385874a5.tar.gz
gsm-selftest-ad32bf03c984317bbff916adc5a039d5385874a5.tar.xz
gsm-selftest-ad32bf03c984317bbff916adc5a039d5385874a5.zip
mart
Diffstat (limited to 'For Weekly Test')
-rw-r--r--For Weekly Test/tricode/mutexSmartTest.php130
1 files changed, 76 insertions, 54 deletions
diff --git a/For Weekly Test/tricode/mutexSmartTest.php b/For Weekly Test/tricode/mutexSmartTest.php
index 8bd5d49..66215a8 100644
--- a/For Weekly Test/tricode/mutexSmartTest.php
+++ b/For Weekly Test/tricode/mutexSmartTest.php
@@ -155,7 +155,7 @@ if ($locking == '1') //1 means nobody is on the website
//ADD HERE THE TEST CASES BUT MAKE IT INSIDE OF A FILE (e.q. include 'testing.php'); HERE I PUT IT ONLY FOR EXAMPLE PURPOSES!
if($callFrom == 'SIP' || $callTo == 'SIP')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$SIP = 1;
$SIPP = 1;
@@ -176,7 +176,7 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'SIP')
{
- if ($testStatus == '998')
+ if ($testStatus == '998' || $testStatus == '802')
{
$SIP = 1;
$SIPP = 1;
@@ -233,7 +233,7 @@ if ($locking == '1') //1 means nobody is on the website
if($callFrom == 'GSMRZ1' || $callTo == 'GSMRZ1')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMRZ1 = 1;
}
@@ -246,28 +246,28 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMRZ1')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMRZ1 != 1)
{
- $GSMRZ1 = -1;
+ $GSMRZ1 = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
$GSMRZ1 = 1; //where is nanoBTS1
}
}
elseif ($callTo == 'GSMRZ1')
{
- if ($testStatus == '998')
+ if ($testStatus == '998' || $testStatus == '802')
{
if ($GSMRZ1 != 1)
{
- $GSMRZ1 = -1;
+ $GSMRZ1 = 0;
}
}
- elseif($testStatus == '999')
+ elseif($testStatus == '999' || $testStatus == '801')
{
$GSMRZ1 = 1; //where is nanoBTS1
}
@@ -276,7 +276,7 @@ if ($locking == '1') //1 means nobody is on the website
if($callFrom == 'GSMRZ2' || $callTo == 'GSMRZ2')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMRZ2 = 1;
$NANOBTS1P = 1;
@@ -287,14 +287,22 @@ if ($locking == '1') //1 means nobody is on the website
$NANOBTS1P = 1;
}
else
- { $GSMRZ1 = 0;
- $NANOBTS1P = 0;
-
+ {
+ if ($GSMRZ2 != 1)
+ {
+ $GSMRZ2 = 0;
+ }
+ if ($NANOBTS1P != 1)
+ {
+ $NANOBTS1P = 0;
+ }
}
}
+ echo $callFrom;
+ echo $testStatus;
if($callFrom == 'GSMRZ3' || $callTo == 'GSMRZ3')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMRZ3 = 1;
$NANOBTS2P = 1;
@@ -305,15 +313,21 @@ if ($locking == '1') //1 means nobody is on the website
$NANOBTS2P = 1;
}
else
- { $GSMRZ3 = 0;
- $NANOBTS2P = 0;
-
+ {
+ if ($GSMRZ3 != 1)
+ {
+ $GSMRZ3 = 0;
+ }
+ if ($NANOBTS2P != 1)
+ {
+ $NANOBTS2P = 0;
+ }
}
}
if($callFrom == 'GSMEXT.O2' || $callTo == 'GSMEXT.O2')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMEO = 1;
$LSFKS = 1;
@@ -331,18 +345,18 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMEXT.O2')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEO != 1)
{
- $GSMEO = -1;
+ $GSMEO = 0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEO != 1)
{
@@ -356,7 +370,7 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif ($callTo == 'GSMEXT.O2')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEO != 1)
{
@@ -367,11 +381,11 @@ if ($locking == '1') //1 means nobody is on the website
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEO != 1)
{
- $GSMEO =-1;
+ $GSMEO =0;
}
if ($LSFKS != 1)
{
@@ -382,7 +396,7 @@ if ($locking == '1') //1 means nobody is on the website
}
if($callFrom == 'GSMEXT.VODA' || $callTo == 'GSMEXT.VODA')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMEV = 1;
$LSFKS = 1;
@@ -400,18 +414,18 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMEXT.VODA')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEV != 1)
{
- $GSMEV = -1;
+ $GSMEV = 0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEV != 1)
{
@@ -425,7 +439,7 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif ($callTo == 'GSMEXT.VODA')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEV != 1)
{
@@ -436,11 +450,11 @@ if ($locking == '1') //1 means nobody is on the website
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEV != 1)
{
- $GSMEV =-1;
+ $GSMEV =0;
}
if ($LSFKS != 1)
{
@@ -470,18 +484,18 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMEXT.EPLUS')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEE != 1)
{
- $GSMEE = -1;
+ $GSMEE = 0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEE != 1)
{
@@ -495,7 +509,7 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif ($callTo == 'GSMEXT.EPLUS')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMEE != 1)
{
@@ -506,23 +520,31 @@ if ($locking == '1') //1 means nobody is on the website
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMEE != 1)
{
- $GSMEE=-1;
+ $GSMEE=0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
+ elseif($testStatus == '402')
+ {
+ if ($GSMEE != 1)
+ {
+ $GSMEE=0;
+ }
+ $LSFKS = 1;
+ }
}
}
if($callFrom == 'GSMEXT.TM' || $callTo == 'GSMEXT.TM')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$GSMET = 1;
$LSFKS = 1;
@@ -540,18 +562,18 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'GSMEXT.TM')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMET != 1)
{
- $GSMET = -1;
+ $GSMET = 0;
}
if ($LSFKS != 1)
{
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMET != 1)
{
@@ -565,7 +587,7 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif ($callTo == 'GSMEXT.TM')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($GSMET != 1)
{
@@ -576,11 +598,11 @@ if ($locking == '1') //1 means nobody is on the website
$LSFKS = 0;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
if ($GSMET != 1)
{
- $GSMET =-1;
+ $GSMET =0;
}
if ($LSFKS != 1)
{
@@ -594,7 +616,7 @@ if ($locking == '1') //1 means nobody is on the website
if($callFrom == 'LANDLINE' || $callTo == 'LANDLINE')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$LANDLINEP = 1;
@@ -625,7 +647,7 @@ if ($locking == '1') //1 means nobody is on the website
$LANDLINEP = -1;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
$LANDLINE = 1;
if ($LSFKS != 1)
@@ -637,7 +659,7 @@ if ($locking == '1') //1 means nobody is on the website
}
elseif ($callTo == 'LANDLINE')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($LANDLINE != 1)
{
@@ -664,7 +686,7 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($LANDLINEP != 1)
{
- $LANDLINEP = 0;
+ $LANDLINEP = -1;
}
}
}
@@ -672,7 +694,7 @@ if ($locking == '1') //1 means nobody is on the website
if($callFrom == 'UNISIP' || $callTo == 'UNISIP')
{
- if($testStatus == '200')
+ if($testStatus == '200' || $testStatus == '402')
{
$UNISIPP = 1;
$UNISIP = 1;
@@ -686,7 +708,7 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callFrom == 'UNISIP')
{
- if ($testStatus == '999')
+ if ($testStatus == '999' || $testStatus == '801')
{
if ($UNISIP != 1)
{
@@ -697,7 +719,7 @@ if ($locking == '1') //1 means nobody is on the website
$UNISIPP = -1;
}
}
- elseif($testStatus == '998')
+ elseif($testStatus == '998' || $testStatus == '802')
{
$UNISIP = 1;
$UNISIPP = 1;
@@ -705,7 +727,7 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($callTo == 'UNISIP')
{
- if ($testStatus == '998')
+ if ($testStatus == '998' || $testStatus == '802')
{
if ($UNISIP != 1)
{
@@ -713,11 +735,11 @@ if ($locking == '1') //1 means nobody is on the website
}
if ($UNISIPP != 1)
{
- $UNISIPP = -1;
+ $UNISIPP = 0;
}
}
- elseif($testStatus == '999')
+ elseif($testStatus == '999' || $testStatus == '801')
{
if ($UNISIP != 1)
{