farnking / Test-Dragon-Forum-of-TBots

a fuzzer lab
1 stars 1 forks source link

gAutoMan seman can not be called #18

Open SYuan0314 opened 11 months ago

SYuan0314 commented 11 months ago

Describe the bug when I use any API about 'gAutoMan' (or 'seman') it returns has no attribute 'gAutoMan' (or 'seman')

Project ID 111,

Name of App under Test pcgamer.com

Type of App under Test windows(firefox)

URL https://forums.pcgamer.com/

To Reproduce Steps to reproduce the behavior:

just call self.API.gAutoMan....... or call self.API.seman.....

Dumping text from terminal or console

debug console ```bash self.API.gAutoMan.getNextMostLikelyAction() Traceback (most recent call last): File "", line 1, in AttributeError: 'CnTestDragonAPI_CnTestDragonAPI' object has no attribute 'gAutoMan' ```
debug console ```bash self.API.seman.queryHottestFormTopic() Traceback (most recent call last): File "", line 1, in AttributeError: 'CnTestDragonAPI_CnTestDragonAPI' object has no attribute 'seman' ```

Your diagnosis these two API name may be changed

farnking commented 11 months ago

書沅,你可以說明你是在什麼情況下去呼叫這個API呢? 因為這個API應該是要先呼叫了self.API.gAutoMan.getMostLikelyAction(),才能呼叫這個self.API.gAutoMan.getNextMostLikelyAction(),否則行為可能無法預測。 而且要能呼叫self.API.gAutoMan.getMostLikelyAction(),可能也有些特殊的use case才能,也就是要先能夠建立generalized automata後。

因此我們確實應該要送出警告訊息panel, 你可以幫忙的就是告訴我你是在什麼情況下去呼叫這個API,請說明。 譬如,請你把你寫的程式碼放在下面,讓我看你整個程式碼怎麼執行,我試著執行一遍,才好複製這著錯誤。