'Occurs error TypeError: 'Database' object is not callable" when I try connect to MongoDB from robot framwwork

I have installed

  • pip install robotframework-mongodb-library
  • pip install pymongo
  • npm install mongodb

I have a testcase and import library like image enter image description here

But It gets error TypeError: 'Database' object is not callable". Anyone help me?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source