Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Feature request for MongoDBQueryTool Connection details

Parasofttoudaya
Parasofttoudaya Posts: 232 ✭✭

Hi Team,

Please include export/import connection option for MongoDBQueryTool

Issue: We have used same connection in multiple locations, where we cant refer the connection information from file. Facing issues in updating the userName and password.

**Work Around: **
We tried referring from environment variable still we faced below issues
1. Password is explicit, so we were not able to refer env variable
2. Multiple variable were created to connected 3 different set of connection .

Any valuable inputs are appreciable.

Regards
Udaya

Comments

  • benken_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭
    edited September 2017

    Environment variables are the way to go.

    Password is explicit, so we were not able to refer env variable

    How do you mean? You should be able to use an environment variable in the password field. Just type ${var_name} as usual. It is also possible to mask the value of environment variables so they aren't visible as plain text in the UI. This is commonly done for passwords or other sensitive values.

  • Parasofttoudaya
    Parasofttoudaya Posts: 232 ✭✭

    Thanks for providing the masking information, Still it would be better save as files.
    When we have multiple databases connecting in a project.

  • benken_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭
    edited September 2017

    Thanks for providing the masking information

    No problem.

    Still it would be better save as files

    In case this helps you, you can also save environment configurations as external files and reference them. Your environment variables don't have to be saved directly in the tst file this way. soatestcli also has a -environmentConfig argument that you can use to dynamically configure environment variables, even ones that weren't originally saved or referenced in the tst file.