TTCN-3 ?????????????????2
???????????? ???????[ 2013/12/4 11:21:43 ] ????????
????????????????????????????????? binary_string.c??binary_string.h ????????????????????????????????Ь????????????????char????????????????????????δ?????
????????8???????λ??
?????????????????????????????????????????Э??????????????????λ??“??????”??????????????????????????????????????λ??????????
???????????????????TTCN-3??hexstring??????
module Codec_B {
//1.??????
type port common_port message {
inout all
}
//2.??????
type component MyMTC{
port common_port mtc_port;
}
type component MySUT{
port common_port sut_port;
}
// ??????????
testcase Basic_TC () runs on MyMTC system MySUT
{
mtc_port.clear;
//???????sut_port??????????SUT????????MTC???????
//sut_port.clear;
map(mtc:mtc_port?? system:sut_port);
mtc_port.start;
//???????sut_port??????????SUT????????MTC???????
//sut_port.start;
mtc_port.send('ABCD'H);
mtc_port.receive('ABCD'H);
mtc_port.send('ABC'H);
mtc_port.receive('ABC0'H);
setverdict(pass);
stop;
}
//???????
control {
execute(Basic_TC());
}
}
|
???????????У?????hexstring??????????????′????
????1.????????????octetstring?????????
????2.????????????????????????????????????????4λ?????????4λ??0????????????λ????????????????4λ???
??????binary_string.c ????????????????
????1.????????????octetstring?????????
????2.????????????????????????????????????????4λ?????????4λ??0????????????λ????????????????4λ???
??????binary_string.c ????????????????
/* Appends half byte to the end of binary string
* It's assumed that binary string has enough free space
*/
static void append_half_byte (MyBinaryString *string?? unsigned char data)
{
unsigned long free_pos;
free_pos = string->string.bits/8;
string->string.data[free_pos] = data;
string->string.bits += 4;
}
|
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
?????????????? - ????????б?C++?????????????????????Java???????????????MySQL????????????MySQL???????????LZW?????C/C++??????????????????????????????????????????????????ж???????Linux??????????????????Э????Linux??????????????10???????Java????????Linux????????????WinRunner ????淶???????????????? ???????LoadRunner???????-????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????