2010-05-18 6 views
0

변수에 체크 박스 값을 저장해야하고 "on"이면 함수를 호출해야합니다. 다른 함수를 호출해야합니다.storeValue in Selenium IDE

+0

(이 행을 실행을 중지하고)하지만 "를 지원하고있다 :

주어진 예

입니다 storetextpresent "는 아니지만"저장된 값 " –

답변

2

흐름 제어 확장 프로그램/플러그인 및 storeChecked 명령을 사용해야합니다.

예를 들어 다음을 참조하십시오 다음

<tr> 
    <td>storeChecked</td> 
    <td>id=myCheckbox</td> 
    <td>isChecked</td> 
</tr> 
<tr> 
    <td>gotoIf</td> 
    <td>${isChecked} == true</td> 
    <td>isChecked</td> 
</tr> 
<tr> 
    <td>echo</td> 
    <td>Checkbox is NOT checked</td> 
    <td></td> 
</tr> 
<tr> 
    <td>goto</td> 
    <td>done</td> 
    <td></td> 
</tr> 
<tr> 
    <td>label</td> 
    <td>isChecked</td> 
    <td></td> 
</tr> 
<tr> 
    <td>echo</td> 
    <td>Checkbox is checked</td> 
    <td></td> 
</tr> 
<tr> 
    <td>label</td> 
    <td>done</td> 
    <td></td> 
</tr> 
<tr> 
    <td>echo</td> 
    <td>Done!</td> 
    <td></td> 
</tr> 
0

다음 블로그 게시물 실패한 시험 후 행을 건너 뛸 수있는 방법 세부 사항 (예를 들어입니다 확인란이 선택)하고 나중에 지점에서 다시 시작합니다. 하나는 검사 용이고 다른 하나는 검사되지 않은 것입니다. FitNesse에서 테스트 흐름을 제어

|Skip Subsequent Rows If A Step Fails| 
|Do Something|Funny| 
|Check|Is|Everyone|Laughing|true| 
|Do Something|Hilarious| 
|Check|Is|Everyone|Laughing|true| 
|Do Something|Mean| 
|Check|Is|Everyone|Laughing|true| 
|This row would be skipped| 
|So would this one| 
|Resume| 
|This row will be executed now| 
|And so on...| 

내가 gotoif 프로토 타입 노력

http://theroamingcoder.com/node/3

관련 문제