DevOps Automation

 View Only
  • 1.  Jenkins RPT Logs Not Displaying All Data

    Posted Mon January 04, 2021 04:25 PM

    We typically use Jenkins to run our RPT tests automatically, but I’ve come across an issue when running an RPT 10.1 test with Jenkins. Normally when running RPT 9.2 tests with Jenkins we can see the logs and also see any error messages that Jenkins might give us. When opening the logs when running an RPT 10.1 test I do not see all the messages that I normally see, only a few messages. I was wondering if anyone knows why this might be occurring? The log is the CommandLineLog.txt file that Jenkins mentions when you start to run a test.


    #RationalPerformanceTester
    #SupportMigration
    #Support


  • 2.  RE: Jenkins RPT Logs Not Displaying All Data

    Posted Tue January 05, 2021 06:38 PM

    Hi, It's not clear whether this refers to not seeing messages on the Jenkins build console or the CommandLineLog.txt which would be on the Jenkins agent machine where RPT is installed.

    One option they have to troubleshoot is to run the command on the RPT Commandline directly

    The Jenkins build console log has the command that is used to invoke the RPT command line. This can be copied and run it in a cmd window on the RPT machine (that Jenkins uses) and see what happens.

    Let us know the results

    Thank you


    #Support
    #RationalPerformanceTester
    #SupportMigration


  • 3.  RE: Jenkins RPT Logs Not Displaying All Data

    Posted Tue January 05, 2021 06:48 PM

    Hi,

    This is an issue with the CommandLineLog.txt on the Jenkins machine where RPT is installed. How would I find the command on the Jenkins build console log and run it with my RPT machine? Or if there is any documentation you could point me to I would appreciate it. Thanks for your help.


    #SupportMigration
    #RationalPerformanceTester
    #Support


  • 4.  RE: Jenkins RPT Logs Not Displaying All Data

    Posted Tue January 05, 2021 08:25 PM

    I wish these forums allowed screen shots....


    1. log into Jenkins
    2. on left hand side click Build History
    3. shows table with columns "Build", "Time Since", "Status", and an icon for the console
    4. click on the console icon


    Example of one I ran:


    Started by user admin

    Running as SYSTEM

    Building in workspace C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\MyFirstRPTJob

    [Checks API] No suitable checks publisher found.


    Performance Tester Build test : MyFirstRPTJob

    Master/Slave details

    Test execution on machine : COMP-77-1/10.134.57.226

    Windows OS


    Printing Config Properties...

    workspace = D:\IBM\00000-000-000-Fibonacci

    project = OpenMic

    suite = Recordings\Calculator_Add_423.testsuite

    imsharedloc = D:\Program Files (x86)\IBM\IMShared

    varfile =

    configfile =

    results =

    overwrite = true

    quiet = false

    users =

    vmargs =

    swapdatasets =

    overridermlabels =

    exportstats =

    exportstatreportlist =

    exportstatshtml = C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\MyFirstRPTJob\temp\Recordings\Calculator_Add_423.testsuite\exportstatshtml

    usercomments =

    OUTPUT_PROPS = C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\MyFirstRPTJob\temp\Recordings\Calculator_Add_423.testsuite.output.props

    exportlog C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\MyFirstRPTJob\temp\Recordings\Calculator_Add_423.testsuite.exportlog.log

    Deleted existing exportlog file true


    eclipsehome D:\Program Files\IBM\SDP

    imsharedloc D:\Program Files (x86)\IBM\IMShared

    cmdline directory path D:\Program Files\IBM\SDP\cmdline



    Running test..

    Command : "D:\Program Files\IBM\SDP\cmdline\cmdline.bat" -workspace D:\IBM\00000-000-000-Fibonacci -project OpenMic -plugins "D:\Program Files (x86)\IBM\IMShared\plugins" -eclipsehome "D:\Program Files\IBM\SDP" -suite Recordings\Calculator_Add_423.testsuite -exportlog C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\MyFirstRPTJob\temp\Recordings\Calculator_Add_423.testsuite.exportlog.log -exportstatshtml C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\MyFirstRPTJob\temp\Recordings\Calculator_Add_423.testsuite\exportstatshtml -overwrite true


    D:\Program Files\IBM\SDP\cmdline>"D:\Program Files\IBM\SDP\jdk\bin\java" -cp cmdlineexecute.jar com.ibm.rational.test.lt.cmdlineexecute.CmdLineExecute -workspace D:\IBM\00000-000-000-Fibonacci -project OpenMic -plugins "D:\Program Files (x86)\IBM\IMShared\plugins" -eclipsehome "D:\Program Files\IBM\SDP" -suite Recordings\Calculator_Add_423.testsuite -exportlog C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\MyFirstRPTJob\temp\Recordings\Calculator_Add_423.testsuite.exportlog.log -exportstatshtml C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\MyFirstRPTJob\temp\Recordings\Calculator_Add_423.testsuite\exportstatshtml -overwrite true


    EclipseHome: D:\Program Files\IBM\SDP

    Workspace: D:\IBM\00000-000-000-Fibonacci

    Project: OpenMic

    Schedule/Test: Recordings\Calculator_Add_423.testsuite

    Plugins: D:\Program Files (x86)\IBM\IMShared\plugins

    Overwrite Results: true

    VMARGS: -Djdk.nativeDigest=false


    October 29, 2020 10:32:24 AM EDT

    Parameters accepted, starting the test run.


    Further information about execution can be found in : C:\WINDOWS\TEMP\CommandLineLog.txt


    October 29, 2020 10:33:04 AM EDT

    Test execution completed in 39.816 seconds.

    Test Result = PASS

    [Checks API] No suitable checks publisher found.

    Finished: SUCCESS



    #Support
    #SupportMigration
    #RationalPerformanceTester


  • 5.  RE: Jenkins RPT Logs Not Displaying All Data

    Posted Tue January 19, 2021 01:32 PM

    Hi,


    Thanks for the response. Did you copy and paste the bolded part of the text above into the command line on the virtual machine?


    #Support
    #RationalPerformanceTester
    #SupportMigration


  • 6.  RE: Jenkins RPT Logs Not Displaying All Data

    Posted Tue January 19, 2021 02:40 PM

    this is how to run a test or schedule from the command line, don't need all the arguments

    this would suffice:


     "D:\Program Files\IBM\SDP\cmdline\cmdline.bat" -workspace D:\IBM\00000-000-000-Fibonacci -project OpenMic -plugins "D:\Program Files (x86)\IBM\IMShared\plugins" -eclipsehome "D:\Program Files\IBM\SDP" -suite Recordings\Calculator_Add_423.testsuite


    Example and all the arguments are here:


    https://help.blueproddoc.com/rationaltest/rationalperformancetester/10.1.2/com.ibm.rational.test.lt.common.doc/topics/truncmdln.html?hl=cmdline



    #Support
    #RationalPerformanceTester
    #SupportMigration