Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PreTag Test Automation Basic Code clean-up needed #9

Closed
gkeishin opened this issue Jun 15, 2016 · 2 comments
Closed

PreTag Test Automation Basic Code clean-up needed #9

gkeishin opened this issue Jun 15, 2016 · 2 comments

Comments

@gkeishin
Copy link
Member

  1. tests/test_fan.robot

*** Settings ***
Documentation This testsuite is for testing fan interface for openbmc
Suite Teardown Delete All Sessions
Resource ../lib/rest_client.robot

*** Test Cases ***
~

~

Shouldn't leave it empty with *** Test cases ****

[ ERROR ] Suite 'Test Fan' contains no tests.

  1. tests/security/test_ssl.robot

Remove : Library RequestsLibrary.RequestsKeywords

The Library RequestsLibrary.RequestsKeywords is already include in the lib/rest_client.robot so no need to add redundant code here

  1. tests/test_association.robot
    Remove : Library BuiltIn
    The built In doesn't need to be explicitly included

Probably a good idea if we could do this two combo in Test Suite Setup

Clear all logs
Open Connection And Log In

  1. tests/test_bootpolicy.robot

Remove :
${SYSTEM_SHUTDOWN_TIME} ${5}
${WAIT_FOR_POWER_OPERATION} 30sec

This variable is not used anywhere in this suite, probably a copy paste left over code.

  1. tests/test_eventlog.robot

Remove : Library BuiltIn
The built In doesn't need to be explicitly included

Typo : making NOT makeing in test case "makeing new log after obmc-phosphor-event.service restart"

Suggestion : Example, its good to verify the execute command to stop continue and fail latter if the command returns errors
${output}= Execute Command /sbin/reboot
To
${output} ${stderr}= Execute Command /sbin/reboot return_stderr=True
Should Be Empty ${stderr}

This would save time and error catching more better
Do for all the execute command in the code

@gkeishin
Copy link
Member Author

Will fix this as well using this ticket.

PreTag test_power_restore.robot': Non-existing setting '[Documentation]' #8

@gkeishin
Copy link
Member Author

Code pushed for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant