Demo entry 6354973

example

   

Submitted by anonymous on Apr 12, 2017 at 07:19
Language: RobotFramework. Code size: 3.1 kB.

*** Settings ***
Library  hran_file_operations.interface

*** Variables ***
${ip}  192.168.255.129
${testing_on_sbts17}=  'Yes' #[Yes/Not]
${testing_on_swbt}=  'Not' #[Yes/Not]

*** Test Cases ***
Test one
  rah set connection parameters  target_ip=192.168.255.3  via_ip=10.42.35.170
  run keyword if  ${testing_on_sbts17}=='Yes'  SBTS_TEST_STEPS
  #run keyword if  ${testing_on_swbt}=='Yes'  SWBT_TEST_STEPS

*** Keywords ***
SBTS_TEST_STEPS
    step1.1[Sbts17][Good Data]: check single alarm
    step1.2[Sbts17][Bad Data]: check single alarm
    step2.1[Sbts17][Good Data]: check alarm by full data
    step2.2[Sbts17][Bad Data]: check alarm by full data


SWBT_TEST_STEPS
    step3.1[SWBT][Good Data]: check alarm by id
    step3.2[SWBT][Bad Data]: check alarm by id
    step4.1[SWBT][Good Data]: check alarm by full data
    step4.2[SWBT][Bad Data]: check alarm by full data


step1.1[Sbts17][Good Data]: check single alarm
  log to console  "Step1.1[Sbts17]"
  ${output}=  rah check alarm by id  fault_id=4247  is_active=${True}
  log to console  ${output}
  should be true  ${output}


step1.2[Sbts17][Bad Data]: check single alarm
  log to console  "Step1.2[Sbts17]"
  ${output}=  rah check alarm by id  fault_id==9999  is_active=${True}
  log to console  ${output}
  should not be true  ${output}


step2.1[Sbts17][Good Data]: check alarm by full data
  log to console  "Step2.1[Sbts17]"
  ${output}=  rah check alarm by full data
  ...  fault_id=6500
  ...  name=EFaultId_HighCPULoadAl
  ...  source=/MRBTS-1/RAT-1/BTS_L-1/EQM_L-1/CABINET_L-1/SMOD_L-1/CCU_L-1/SOC_L-1/CPU_L-1
  ...  is_active=${False}
  log to console  ${output}
  should be true  ${output}


step2.2[Sbts17][Bad Data]: check alarm by full data
  log to console  "Step2.2[Sbts17]"
  ${output}=  rah check alarm by full data
  ...  fault_id==9999
  ...  name=abcdefghijklmnopqrstuvwxyz
  ...  source=abcdefghijklmnopqrstuvwxyz
  ...  is_active=${False}
  log to console  ${output}
  should not be true  ${output}


step3.1[SWBT][Good Data]: check alarm by id
  log to console  "Step3.1[Swbt]"
  ${output}=  rah check alarm by id  fault_id=1400  is_active=${True}
  log to console  ${output}
  should be true  ${output}

step3.2[SWBT][Bad Data]: check alarm by id
  log to console  "Step3.2[SWBT]"
  ${output}=  rah check alarm by id  id=9999  is_active=${True}
  log to console  ${output}
  should not be true  ${output}


step4.1[SWBT][Good Data]: check alarm by full data
  log to console  "Step4.1[SWBT]"
  ${output}  rah check alarm by full data
  ...  fault_id=1400
  ...  name=ExtAl0
  ...  source=FSM1
  ...  is_active=${True}
  log to console  ${output}
  should be true  ${output}


step4.2[SWBT][Bad Data]: check alarm by full data
  log to console  "Step4.2[SWBT]"
  ${output}  rah check alarm by full data
  ...  fault_id==9999
  ...  name=abcdefghijklmnopqrstuvwxyz
  ...  source=abcdefghijklmnopqrstuvwxyz
  ...  is_active=${False}
  log to console  ${output}
  should not be true  ${output}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).