0

セルフテストを実行していると、インスタンス メッセージ「global name 'parser' is not defined」でいくつかのエラーが発生します。

Python用にすべてのパッケージをインストールし(Ubuntuでバージョン2.7を使用)、スイートのupdateTestContent部分のテストだけが失敗しました。

このエラーを修正する方法について何か提案はありますか?

出力の例: (ただし、UpdateTestContent テストでこのまったく同じエラーが約 30 回発生します)

停止 UpdateTestContent test_combinatorial_get_test_content_173616823212099076936397683973588533375 (mediaCollection){ id = "top" itemType = "container" displayType = "list" title = "HitsNL top30" canPlay = True canEnumerate = True albumArtURI = " https://external.unplug.de/img_top_hitsnl_ .png " }

インスタンス メッセージ:
global name 'parser' is not defined

2016-06-27 16:42:08,503 [情報] SONOS.sonos.workflow.fixture.UpdateTestContent - テスト ケース: 1 UpdateTestContent test_combinatorial_get_test_content_173616823212099076936397683973588533375

(mediaCollection){
    id = "top"
    itemType = "container"
    displayType = "list"
    title = "HitsNL top30"
    canPlay = True
    canEnumerate = True
    albumArtURI = "https://external.unplug.de/img/hitsnl_top_30.png"
})

2016-06-27 16:42:08,503 [PASS] SONOS.sonos.workflow.fixture.UpdateTestContent - テスト コンテンツを更新する必要はありません。(式はTrue)

2016-06-27 16:42:08,503 [停止] SONOS.sonos.workflow.fixture.UpdateTestContent - グローバル名「パーサー」が定義されていません

2016-06-27 16:42:08,503 [停止] SONOS.sonos.workflow.fixture.UpdateTestContent - 1 UpdateTestContent test_combinatorial_get_test_content_173616823212099076936397683973588533375

2016-06-27 16:42:08,504 [デバッグ] SONOS.sonos.workflow.fixture.UpdateTestContent - [('../../sonos-1.1.0.dev_r248336-py2.7.egg/sonos/workflow/ Fixture.py'、2483、'_run_test_iteration'、'testMethod(factoryTestValues)')、('/home/zazell/Applications/sonos/smapi/content_workflow/updatetestcontent.py'、90、'test_combinatorial_get_test_content'、'self.smapiservice. init (self.smapiservice.configfile、parser.wsdl、CRAWLER_DISABLE)')]

2016-06-27 16:42:08,504 [情報] SONOS.sonos.workflow.fixture.UpdateTestContent - - - - - - - - - - - - - - - - - - - - - -

2016-06-27 16:42:08,505 [INFO] SONOS.sonos.workflow.result - 2016 年 6 月 27 日月曜日 04:42 PM にテスト ケース test_combinatorial_get_test_content のテスト イテレーション0 を終了します

4

1 に答える 1