|
简介RFT实现 ITCL (或者IBM) 框架
IBM的这一篇。
我按照上面的操作,提示找不到类,
Exception occurred during playback of script [AppObject.Getter] [CRFCN0544E: RationalTestScriptError on line 41 of script AppObject.Getter: [java.lang.NoClassDefFoundError] - com.rational.test.ft.script.RationalTestScript.].
代码为:
package AppObject;
import ibm.tools.ClassGenerator;
import java.util.Vector;
import resources.AppObject.GetterHelper;
import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.*;
import com.rational.test.ft.object.interfaces.SAP.*;
import com.rational.test.ft.object.interfaces.WPF.*;
import com.rational.test.ft.object.interfaces.dojo.*;
import com.rational.test.ft.object.interfaces.siebel.*;
import com.rational.test.ft.object.interfaces.flex.*;
import com.rational.test.ft.object.interfaces.generichtmlsubdomain.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
import com.ibm.rational.test.ft.object.interfaces.sapwebportal.*;
/**
* Description : Functional Test Script
* @author Administrator
*/
public class Getter extends GetterHelper
{
/**
* Script Name : <b>Getter</b>
* Generated : <b>2012-5-23 上午10:32:05</b>
* Description : Functional Test Script
* Original Host : WinNT Version 5.1 Build 2600 (S)
*
* @since 2012/05/23
* @author Administrator
*/
public void testMain(Object[] args)
{
//WRITE DOWN THE BELOW CODE IN TESTMAIN FUNCTION
Vector<Login> v = new Vector<Login>();
v.addElement(new AppObject.Login ());
//ADD ELEMENT FOR ALL THE scrīptS YOU HAVE IN YOUR AppObject
new ClassGenerator().updateScripts(v);
}
}
41行就是
new ClassGenerator().updateScripts(v);
发现ClassGenerator()这个类引入这个包:
com.rational.test.ft.script.RationalTestScript
提示找不到RationalTestScript
有些人说重新建一个工程,我重新建了N个。都不管用。希望已经解决的同行们解决一下吧。。。。。。。。。 |
|