Cloud测试相关信息记录

源码:

#include <stdio.h>

int main()
{
printf("The file is %s.\n",__FILE__);
printf( "The date is %s.\n", __DATE__ );
printf( "The time is %s.\n", __TIME__ );
printf( "This is line %d.\n", __LINE__ );
printf( "This function is %s.\n", __FUNCTION__ );

return 0;
}
运行结果:

The file is macro.c.
The date is Aug 24 2012.
The time is 23:13:26.
This is line 8.
This function is main.


/*支付宝Https网站-测试信息*/
#define SERVER_PORT 443
#define TEST_ADDR "/index.html"
#define SERVER_ADDR "www.alipay.com"

周末任务:
1. httpsClient线程请求函数参考cloud.c以及openssl.c做相关修改
2. 动态链表继续研究,整理出总体思路


1、api1--网关认证询问测试地址:
http://203.195.202.228:8008/API/auth.ashx

2、post内容:
content={"Sc":"001cfe2fe7044aa691d4e6eff9bfb56c","Sv":"56435ce5601f40c59b1db14405578f60","QueueNum":123,"IDPS":{"Ptl":"com.jiuan.BPV20","SN":"00000001","FVer":"1.0.2","HVer":"1.0.1","MFR":"iHealth","Model":"BP3 11070","Name":"BP Monitor"},"Command":"F5"}

因为服务器redis服务还没有更新,所以目前返回结果为:
{"Result":3,"QueueNum":123,"ResultMessage":"5000","TS":1402907636419,"ReturnValue":"通用缓存异常"}
更新之后,正确结果:{"Result":1,"QueueNum":123,"ResultMessage":"1000","TS":1402906148304,"ReturnValue":"F0"}

如果仅仅为了测试通道发送和接收,目前已经具备条件,可以测试!

2014-7-10测试
https://203.195.202.228:443/Gateway/product_region.ashx
{"Sc":"001cfe2fe7044aa691d4e6eff9bfb56c","Sv":"063e057de1994527981131235b8fc3b0","QueueNum":123,"IDPS":{"Ptl":"com.jiuan.HGV010","SN":"00000001","FVer":"1.0.2","HVer":"1.0.1","MFR":"iHealth","Model":"BP3 11070","Name":"BP Monitor"},"ProdSN":"00-01-6C-06-A6-29"}

 

posted @ 2014-07-17 16:38  柠檬恋上雨  阅读(205)  评论(0编辑  收藏  举报