[IT] Pairwise 테스트는 MS PICT 로 조합하자~ by june0620

View this thread on steempeak.com
· @june0620 · (edited)
$17.32
[IT] Pairwise 테스트는 MS PICT 로 조합하자~
pixabay
https://cdn.pixabay.com/photo/2018/03/19/09/25/feedback-3239454_960_720.jpg

##### PICT 사용 이유

API 테스트 특히 API 자동화 테스트에서 가장 어려운 부분이 바로 그 수많은 파라미터를 골고루 체크해 보는 것이다. 

파라미터의 정상적인 값, 비정상적인 값을 수동으로 조합하기에 시간과 비용이 많이 소모된다. 
예를 들어 파라미터가 name, phone,email 세개가 있고 각각의 테스트케이스가 세 개씩 있다고 가정하면 테스트 케이스는 총 27개가 된다. 
| name	| phone | email |
|---|---|---|
| 한글명	| 01000001111 | test@nts-corp.com |
| 中文名	| +82 1000001111 |	test@aaa
| Englishi | 010-0000-1111 | test@gmail.com

API는 파라미터가 많게는 30개가 넘는데, 이를 수동으로 조합하기에는 케이스가 기하급수적으로 많아지는 한계가 있어 Pairwise 기법은 필수다. 

MS의 PICT는 최소한의 조합으로 최적의 효과를 낼 수 있게 만들어진 Pairwise 툴이다.  
> Pairwise : 대부분의 결함이 2개 요소의 상호작용에 기인한다는 점에 착안하여 각 요소가 최소한 한 번씩 조합을 이루게 하고, 이렇게 조합된 값을 바탕으로 테스트를 수행하는 기법

##### PICT 설치 및 사용
http://www.pairwise.org/tools.asp 에서 PICT 설치 파일(.msi) 다운 및 설치
위의 예로 txt 파일에 케이스를 작성한다.
 - '파라미터명: 값, 값, 값' 형식으로 작성하고 새로운 파라미터는 줄바꿈 해서 동일한 방식으로 작성한다. 
 - cmd 창에서 'pict 텍스트파일.txt > 조합한파일.xls' 입력하여 xls 파일을 추출하면 가장 최적화된 조합 11개가 추출된다. 
 - cmd 창에서 에러 뜨면 조합 실패다. 참고로 파일 경로에 한글이 있으면 에러 발생할 수 있으니 경로는 영어로 통일한다. 
![](https://cdn.steemitimages.com/DQmZo4ABHfpJQWBapYd37sY2ZGUGG7HRQrNkjhFeDNcndTf/image.png)

이 최적의 조합으로 API 자동화 테스트에 TC를 제공하면 시간과 비용이 많이 향상된다. 

그 외 IF, THEN 과 같은 명령어로 더 상세한 조합을 만들 수 있다. 

.
.
.
.
[Cookie ]
https://github.com/microsoft/pict
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 38 others
properties (23)
post_id86,468,827
authorjune0620
permlinkit-pairwise-ms-pict
categoryhive-101145
json_metadata{"tags":["kr","mini","zzan","dblog","sct-kr","sct-freeboard","automation","sct"],"image":["https:\/\/cdn.pixabay.com\/photo\/2018\/03\/19\/09\/25\/feedback-3239454_960_720.jpg","https:\/\/cdn.steemitimages.com\/DQmZo4ABHfpJQWBapYd37sY2ZGUGG7HRQrNkjhFeDNcndTf\/image.png"],"app":"steemcoinpan\/0.1","format":"markdown","canonical_url":"https:\/\/www.steemcoinpan.com\/@june0620\/it-pairwise-ms-pict","links":["http:\/\/www.pairwise.org\/tools.asp","https:\/\/github.com\/microsoft\/pict"]}
created2020-06-25 12:49:03
last_update2020-06-25 13:02:18
depth0
children6
net_rshares24,512,573,963,285
last_payout2020-07-02 12:49:03
cashout_time1969-12-31 23:59:59
total_payout_value8.950 SBD
curator_payout_value8.367 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,278
author_reputation219,336,602,045,061
root_title"[IT] Pairwise 테스트는 MS PICT 로 조합하자~"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (102)
@ravenkim ·
@tipu curate 2
properties (22)
post_id86,468,856
authorravenkim
permlinkqchfsh
categoryhive-101145
json_metadata{"users":["tipu"],"app":"steemit\/0.2"}
created2020-06-25 12:53:09
last_update2020-06-25 12:53:09
depth1
children3
net_rshares0
last_payout2020-07-02 12:53:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length14
author_reputation244,843,674,682,222
root_title"[IT] Pairwise 테스트는 MS PICT 로 조합하자~"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@tipu ·
<a href="https://tipu.online/curator?ravenkim" target="_blank">Upvoted  &#128076;</a> (Mana: 0/20) @swap.app - <a href="https://steemit.com/steem/@swap.app/swap-app-quick-steem-sbd-swaps" target="_blank">quick steem <-> sbd swaps</a>
properties (22)
post_id86,468,857
authortipu
permlinkre-qchfsh-20200625t125321
categoryhive-101145
json_metadata{}
created2020-06-25 12:53:21
last_update2020-06-25 12:53:21
depth2
children0
net_rshares0
last_payout2020-07-02 12:53:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length233
author_reputation55,804,171,747,699
root_title"[IT] Pairwise 테스트는 MS PICT 로 조합하자~"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@june0620 ·
앗~ tipu 감사합니다^^ 
행복한 밤 보내세요~ 
!shop
properties (22)
post_id86,468,992
authorjune0620
permlinkre-ravenkim-qchggu
categoryhive-101145
json_metadata{"tags":["hive-101145"],"app":"steempeak\/2020.06.1"}
created2020-06-25 13:07:39
last_update2020-06-25 13:07:39
depth2
children0
net_rshares0
last_payout2020-07-02 13:07:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length35
author_reputation219,336,602,045,061
root_title"[IT] Pairwise 테스트는 MS PICT 로 조합하자~"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@teamcn-shop ·
你好鸭,ravenkim!

@june0620给您叫了一份外卖!

**烧烤** <br> ![](https://ipfs.busy.org/ipfs/Qmbv9p4Xa3sSNwcdnhT83ubjTXW9tctEdSw4nZ6qatxRdh)

吃饱了吗?跟我猜拳吧! **石头,剪刀,布~**

如果您对我的服务满意,请不要吝啬您的点赞~

properties (22)
post_id86,468,993
authorteamcn-shop
permlinkre-ravenkim-qchggu
categoryhive-101145
json_metadata"{"app":"teamcn-shop bot\/1.0"}"
created2020-06-25 13:07:51
last_update2020-06-25 13:07:51
depth2
children0
net_rshares0
last_payout2020-07-02 13:07:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length176
author_reputation65,900,527,192,856
root_title"[IT] Pairwise 테스트는 MS PICT 로 조합하자~"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@sct.krwp ·
@june0620 transfered 1.0 KRWP to @krwp.burn. voting percent : 0.66%, voting power : 83.99%, steem power : 1825781.57, STU KRW : 1200. 
@june0620 staking status : 50 KRWP
                                @june0620 limit for KRWP voting service : 0.15 KRWP (rate : 0.003)
                                What you sent : 1.0 KRWP
                                Refund balance : 0.85 KRWP [44556602 - a3d5b8b4893d1fd90becb68acbba064fe20badb2]
properties (22)
post_id86,468,951
authorsct.krwp
permlinkre--it-pairwise-ms-pict-20200625t130330103z
categoryhive-101145
json_metadata{"tags":["kr","mini","zzan","dblog","sct-kr","sct-freeboard","automation","sct"]}
created2020-06-25 13:03:33
last_update2020-06-25 13:03:33
depth1
children0
net_rshares0
last_payout2020-07-02 13:03:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length438
author_reputation10,000,000,000,000
root_title"[IT] Pairwise 테스트는 MS PICT 로 조합하자~"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@annepink ·
你怎么都不给自己拍手呢  拍手的likecoin攒到还是蛮抵钱的呢 我有9W枚了还没出手等机会😅
properties (22)
post_id86,515,169
authorannepink
permlinkqcp3nt
categoryhive-101145
json_metadata{"app":"steemcn\/0.1"}
created2020-06-29 16:12:00
last_update2020-06-29 16:12:00
depth1
children0
net_rshares0
last_payout2020-07-06 16:12:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length48
author_reputation160,119,580,804,298
root_title"[IT] Pairwise 테스트는 MS PICT 로 조합하자~"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000