TSS를 통한 데이터 풀 사용법에 대한 정보는 API 문서를 참조하십시오.
TSS 문서를 표시하려면 다음을 수행하십시오.
Functional Tester와 함께 TestManager 데이터 풀을 사용하려면, Functional Tester 스크립트에 다른 가져오기 명령문을 추가하십시오.
import com.rational.test.tss.*;
Functional Tester와 함께 TestManager 데이터 풀을 사용하려면, 데이터 풀 이름에는 데이터 풀이 상주하는 전체 경로가 이중 백슬래시를 사용하여 포함되어야 합니다. UNIX를 사용하는 경우, 파일 분리 문자는 슬래시입니다.
참고: Rational Functional Tester와 통합할 수 있는 Rational TestManager 버전을 보려면 Rational Functional Tester 버전 8.2 기술 노트의 릴리스별 Functional Test에 대한 지원되는 도메인 목록을 참조하십시오.
예제:
import resources.testOutHelper;
import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
import com.rational.test.tss.*;
public class testOut extends testOutHelper
{
public void testMain (Object[] args)
{
boolean test;
String strval2;
try{
//create datapool object
TSSDatapool dp = new TSSDatapool();
//open datapool named testdpool
dp.open("testdpool");
//Fetch first row of data from datapool
test = dp.fetch();
//Loop 5 times through datapool for(int i = 0; i<5; i++)
{
//Get string value from custname column
DatapoolValue dpv = dp.value("custname");
strval2 = dpv.toString();
System.out.println("Name is " + strval2);
test = dp.fetch();
}
}
catch (Exception e) {
System.out.println("Exception occurred");
}
}
}
}