提交 5e3d90e5 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

update result

上级 5f675b85
#!/usr/bin/env php
<?php
/**
[case]
title=check remote interface response
cid=0
pid=0
[group]
1. Send a request to interface http://xxx
2. Retrieve sessionID field from response json
3. Check its format >> ^[a-z0-9]{26}
[esac]
*/
$resp = file_get_contents('http://zentaopms.ngtesting.com//?mode=getconfig');
$json = json_decode($resp);
echo ">> " . $json->sessionID . "\n";
\ No newline at end of file
......@@ -14,6 +14,6 @@ pid=0
[esac]
*/
$resp = file_get_contents('http://pms.zentao.net/?mode=getconfig');
$resp = file_get_contents('http://zentaopms.ngtesting.com//?mode=getconfig');
$json = json_decode($resp);
echo ">> " . $json->sessionID . "\n";
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册