TSS를 통한 데이터풀 사용법에 대한 정보는 API 문서를 참조하십시오.
TSS 문서를 표시하려면 다음을 수행하십시오.
Functional Tester와 함께 TestManager 데이터풀을 사용하려면, Functional Tester 스크립트에 다른 가져오기 명령문을 추가하십시오.
import com.rational.test.tss.*;
Functional Tester와 함께 TestManager 데이터풀을 사용하려면, 데이터풀 이름에는 데이터풀이 상주하는 전체 경로가 이중 백슬래시를 사용하여 포함되어야 합니다. UNIX®를 사용하는 경우, 파일 분리 문자는 슬래시입니다.
TestManager 통합에 대한 주의사항: Functional Tester는 Rational TestManager 버전 7.0.1.2와 통합됩니다. TestManager의 7.0.1.2 버전이 설치된 경우 Functional Tester 및 TestManager의 통합 기능을 사용할 수 있습니다. 제품을 함께 사용하는 것에 대한 중요한 정보는 Functional Tester 통합 이해를 참조하십시오.
예제:
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");
}
}
}
}