Adding ElasticsearchAppenderClass & longevitytests
[integration/test.git] / csit / suites / test / Check_JVM_Resource.robot
1 *** Settings ***
2 Library           ${CURDIR}/../../libraries/Appenders/ElasticsearchAppender.py    ${ODL_SYSTEM_IP}    ${ELASTICPORT}
3 Variables         ${CURDIR}/../../variables/Variables.py
4
5 *** Test Cases ***
6 Test JVM Keywords
7     [Documentation]    Call get_jvm methods for ${DURATION} s with ${STEP} s interval.
8     ${DURATION}=    Convert To Integer    ${DURATION}
9     : FOR    ${INDEX}    IN RANGE    0    ${DURATION+1}    ${STEP}
10     \    ${threading}=    Get Jvm Threading
11     \    Log    ${threading}
12     \    ${memory}=    Get Jvm Memory
13     \    Log    ${memory}
14     \    ${classload}=    Get Jvm Classloading
15     \    Log    ${classload}
16     \    ${operatingsystem}=    Get Jvm operatingsystem
17     \    Log    ${operatingsystem}
18     \    Sleep    ${STEP}
19
20 Test Plot Points Call
21     [Documentation]    Draw Resource usage plot using plot_points method.
22     Plot Points    JVM ThreadCount    threadcount.png    'Threading'    'TotalStartedThreadCount'
23     Plot Points    JVM Heap Memory    heapmemory.png    'Memory'    'HeapMemoryUsage'    'used'
24     Plot Points    JVM LoadedClassCount    class_count.png    'ClassLoading'    'TotalLoadedClassCount'
25     Plot Points    JVM CPU Usage    cpu_usage.png    'OperatingSystem'    'ProcessCpuLoad'