Share via


WebTestRequest.Outcome 속성

업데이트: 2007년 11월

웹 테스트 요청의 결과(Pass 또는 Fail)를 가져오거나 설정합니다.

네임스페이스:  Microsoft.VisualStudio.TestTools.WebTesting
어셈블리:  Microsoft.VisualStudio.QualityTools.WebTestFramework(Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

구문

Public Property Outcome As Outcome

Dim instance As WebTestRequest
Dim value As Outcome

value = instance.Outcome

instance.Outcome = value
public Outcome Outcome { get; set; }
public:
property Outcome Outcome {
    Outcome get ();
    void set (Outcome value);
}
public function get Outcome () : Outcome
public function set Outcome (value : Outcome)

속성 값

형식: Microsoft.VisualStudio.TestTools.WebTesting.Outcome

웹 테스트 요청의 결과입니다.

설명

WebTestRequest.Outcome을 설정하는 주된 이유는 오류가 예상되더라도 WebTestRequest가 성공으로 표시되도록 예상되는 오류를 무시하기 위해서입니다.

웹 테스트 코드에서 WebTestRequest의 결과를 설정하는 경우 이를 PostRequest 이벤트 처리기에서 수행해야 하는데, 이는 결과를 이전에 설정한 경우 웹 테스트 런타임에서 설정한 값을 재정의할 수 있기 때문입니다.

권한

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

WebTestRequest 클래스

WebTestRequest 멤버

Microsoft.VisualStudio.TestTools.WebTesting 네임스페이스