STATIC void stab_trysync(void)
{
	stab_set_runtime();
	
	ramtest_getAveragesize();
	/*Handle the event and callback function, it must be called in a special frequency*/
	wilddog_trySync();

}
void stab_test_fullLoad(void)
{
	int i;
	
	stab_titlePrint();
	ramtest_init(1,1);
	/* mark star time*/
	stab_set_runtime();
	while(1)
	{
		/*Create an node which type is an object*/
		for(i=0;i<10;i++)
		{
			stab_settest_dataInit(i);
 			stab_settest_serialSet_send();
 			stab_settest_serialGet_send(); 
			stab_resultPrint();
			stab_settest_dataDeInit();
 		}
	}
}
int stab_oneCrcuRequest(void) 
{
	int res = 0;
	BOOL otherFinish = FALSE,onFinish = FALSE;
	BOOL *p_finish = &onFinish;
    Wilddog_T client = 0;
    STABTEST_CMD_TYPE cmd = STABTEST_CMD_ON;

	/* mark star time*/
	stab_set_runtime();
    /*Init a wilddog client*/
    client = wilddog_initWithUrl((Wilddog_Str_T *)TEST_URL);
	
	stab_get_requestRes(stabtest_request(cmd,client,p_finish));

    while(1)
    {
        if(TRUE == *p_finish)
        {
        	if(STABTEST_ONREQUEST(cmd))
        		p_finish = &otherFinish;

        	onFinish = FALSE;
        	otherFinish = FALSE;
			STABTEST_NEXTREQUEST(cmd);
			stab_get_requestRes(stabtest_request(cmd,client,p_finish));
			
			if(STABTEST_OFFREQUEST(cmd))
			{
				break;
			}	
        }
        stab_trysync();
    }
    /*Destroy the wilddog clent and release the memory*/
    res = wilddog_destroy(&client);

    return res;
}