2016-06-28 6 views
0

자기 테스트를 실행하고 그래서 내가 인스턴스 메시지와 함께 몇 가지 실패 가져 오는 중 : "전역 이름 '파서가 정의되지 않았습니다"'글로벌 이름'파서 '정의되지 않은 파이썬 오류와 자체 테스트가 실패했습니다'

저는 파이썬 (우분투 버전 2.7 사용)에 설치된 모든 패키지와 실패한 스위트의 updateTestContent 부분에 대한 테스트 만 있습니다.

누구든지이 오류를 수정하는 방법에 대한 제안 사항이 있습니까?

출력의 예는, (그러나 IM이 정확히 동일 UpdateTestContent 시험에서 30 회에 대한 오류 점점)

중지 UpdateTestContent의 test_combinatorial_get_test_content_173616823212099076936397683973588533375 (mediaCollection) {ID = "상부"ItemType은 = "용기"를 여기서 displaytype = "목록"제목 = "HitsNL top30"canPlay = 진정한 canEnumerate = 진정한 albumArtURI = "https://external.unplug.de/img/hitsnl_top_30.png"}

인스턴스 메시지 :
global name 'parser' is not defined

,

2016년 6월 27일 16 : 42 : 08503 [INFO] 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년 6월 27일 16시 42분 : 08,503 [PASS] SONOS.sonos.workflow.fixture.UpdateTestContent - 테스트 내용을 업데이트 할 필요가 없습니다. 글로벌 이름 '파서 "정의되지

2016년 6월 27일 16 - 08,503 [STOP] SONOS.sonos.workflow.fixture.UpdateTestContent : 42 :

2016년 6월 27일 16 (발현은 참이다) 42 : 08503 [STOP] SONOS.sonos.workflow.fixture.UpdateTestContent - 1 UpdateTestContent test_combinatorial_get_test_content_173616823212099076936397683973588533375

2016년 6월 27일 16 : 42 : 08504 [DEBUG] 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/응용 프로그램/sonos/smapi/content_workflow/updatetestcontent.py ', 90,'test_combinatorial_ge t_test_content ','self.smap 서비스. INIT (self.smapiservice.configfile, parser.wsdl, CRAWLER_DISABLE) ')]

2016년 6월 27일 16 : 42 : 08504 [INFO] SONOS.sonos.workflow.fixture.UpdateTestContent - - - - -

2016-06-27 16 : 42 : 08,505 [INFO] SONOS.sonos.workflow.result - End 테스트 반복 6월 27일 (월요일)에서 테스트 케이스 test_combinatorial_get_test_content의 0, 오후 4시 42분

답변

0

2016 드디어 를 추가하여이 문제를 해결하기 위해 관리 ~ init 올바르게 실행되는 UpdateTestContent 클래스의 메서드입니다.

관련 문제