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

Update test for User management section of buildly-react-template #11

Closed
wants to merge 0 commits into from

Conversation

JiseonYu
Copy link
Contributor

@JiseonYu JiseonYu commented Apr 9, 2020

Purpose

Needed to update the test for the user management section.

Approach

Created a test to verify the User management section.

Further Info

Ticket number: #6

@jefmoura

@JiseonYu JiseonYu added the enhancement New feature or request label Apr 9, 2020
Copy link
Member

@jefmoura jefmoura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tests are failing. Please have a look at them:

 ==============================================================================
 Robot-Tests                                                                   
 ==============================================================================
 Robot-Tests.Buildly-React-Template                                            
 ==============================================================================
 Robot-Tests.Buildly-React-Template.Management :: Application Login            
 ==============================================================================
 Verify the user management section                                    | FAIL |
 Text 'Profile' did not appear in 10 seconds.
 ------------------------------------------------------------------------------
 [ WARN ] {'level': 'SEVERE', 'message': 'http://localhost:8080/oauth/token/ - Failed to load resource: net::ERR_CONNECTION_REFUSED', 'source': 'network', 'timestamp': 1586426757011}
 Robot-Tests.Buildly-React-Template.Management :: Application Login    | FAIL |
 1 critical test, 0 passed, 1 failed
 1 test total, 0 passed, 1 failed
 ==============================================================================
 Robot-Tests.Buildly-React-Template                                    | FAIL |
 1 critical test, 0 passed, 1 failed
 1 test total, 0 passed, 1 failed
 ==============================================================================
 Robot-Tests.Buildly-Ui                                                        
 ==============================================================================
 Robot-Tests.Buildly-Ui.Login :: Application Login                             
 ==============================================================================
 Register new user                                                     | FAIL |
 Variable '${BUILDLY_UI_BASE_URL}' not found. Did you mean:
     ${BUILDLY_BASE_URL}
 ------------------------------------------------------------------------------
 Robot-Tests.Buildly-Ui.Login :: Application Login                     | FAIL |
 1 critical test, 0 passed, 1 failed
 1 test total, 0 passed, 1 failed
 ==============================================================================
 Robot-Tests.Buildly-Ui                                                | FAIL |
 1 critical test, 0 passed, 1 failed
 1 test total, 0 passed, 1 failed

@JiseonYu
Copy link
Contributor Author

When I ran the code, it works for my server.
Here are the steps how I'm done.

  1. In order to run buildly-robot, type 'docker-compose up' (~/buildly-robot)
  2. Go to /buildly-robot/robot-tests/buildly-react-template and type robot management.robot
jiseonyu@Jiseons-MacBook-Pro buildly-react-template % robot management.robot
==========================================================================
Management :: Application Login                                               
==========================================================================
Verify the user management section                                    | PASS |
------------------------------------------------------------------------------
Management :: Application Login                                       | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==========================================================================
Output:  /Users/jiseonyu/buildly/buildly-robot/robot-tests/buildly-react-template/output.xml
Log:     /Users/jiseonyu/buildly/buildly-robot/robot-tests/buildly-react-template/log.html
Report:  /Users/jiseonyu/buildly/buildly-robot/robot-tests/buildly-react-template/report.html

@jefmoura
Copy link
Member

@JiseonYu

  1. I used this command and when the tests were done, I got the error I've posted above
  2. The tests should be triggered when executing the command docker-compose -f docker-compose.yaml up. Installing robot framework in a local machine shouldn't be required, so going to the folder buildly-robot/robot-tests/buildly-react-template and running robot management.robot shouldn't be needed.

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

Successfully merging this pull request may close these issues.

2 participants