The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> IBM/Rational Functional Tester - RobotJ

Pages: 1
Lostwords
Member


Reged: 05/14/09
Posts: 33
Enable / disable Log in a class
      #716897 - 09/24/12 05:29 AM

Hi,

I've this question in IBM forum but no one answered . so I am hoping soemone here could point me to the right direction.

I am currently trying to disable the log in a class so that it would not lof all the getProperty stuffs but haviong diffulty in doing it in a class.

I am able to use the following method in any Functions
setCurrentLogFilter(ENABLE_LOGGING);
but ufortunately, when I am trying to use that within a Class, I got Error not recognizing either the ENABLE_LOGGING constants or the setCurrentLogFilter method.

I am able to fix the constants by modifying it to setCurrentLogFilter(*RationalTestScriptConstants*.ENABLE_LOGGING); The remaining problem is the setCurrentLogFilter method not being recognize in the Class.

I further modified the code to RationalTestScript.setCurrentLogFilter(RationalTestScriptConstants.ENABLE_LOGGING); but now it gives me the following error: Cannot make a static reference to the non-static method setCurrentLogFilter(int) from the type RationalTestScript

My class currently have the following imports:
import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.GuiTestObject;
import com.rational.test.ft.object.interfaces.RootTestObject;
import com.rational.test.ft.object.interfaces.TestObject;
import com.rational.test.ft.object.interfaces.TopLevelTestObject;
import com.rational.test.ft.script.SubitemFactory;
import com.rational.test.ft.script.RationalTestScript;
import com.rational.test.ft.script.RationalTestScriptConstants;
import com.rational.test.ft.services.*;

any help on disabling the log in a class is much appreciated.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Sathish804
Member


Reged: 07/17/09
Posts: 351
Loc: Hyderabad,INDIA
Re: Enable / disable Log in a class [Re: Lostwords]
      #716899 - 09/24/12 05:47 AM

Hi,

Open the ivory.properties file available in the \Functional Tester\bin\ directory. Add the following line of code at the end of the file contents:rational.test.ft.log.enhanced=false

Hope this will help you.

Thanks and Regards,
Sathish.

--------------------
Thanks and Regards,
Sathish.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Lostwords
Member


Reged: 05/14/09
Posts: 33
Re: Enable / disable Log in a class [Re: Sathish804]
      #717044 - 09/26/12 05:22 AM

Hi,

What does adding the above line do?

I've edited the file as instructed and it is still does not recognize
setCurrentLogFilter(ENABLE_LOGGING);
or
RationalTestScript.setCurrentLogFilter(RationalTestScriptConstants.ENABLE_LOGGING);
or
rftUtil.setCurrentLogFilter(RationalTestScriptConstants.DISABLE_LOGGING);


Post Extras: Print Post   Remind Me!   Notify Moderator  
Lostwords
Member


Reged: 05/14/09
Posts: 33
Re: Enable / disable Log in a class [Re: Lostwords]
      #717132 - 09/27/12 08:03 AM

ah I see what it does. Thanks Sathish.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 5 anonymous users are browsing this forum.

Moderator:  AJ, AllenGay 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 2615

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5