CLI Import and execution

kram_soatestkram_soatest Posts: 14
edited April 4 in SOAtest

I am copying project folder into existing workspace (including .project file) and issuing cli command to import project folder into workspace and then run test command. However still getting missing resource/symbol message
First command after copying folder into existing workspace
soatestcli.exe -data -import
I get below message
soatestcli: Version 9.10.0.20161130 -- Copyright (C) 2016 Parasoft Corporation
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; sup
port was removed in 8.0
Second command to run
soatestcli.exe -data -resource -config:"builtin:DemoConfiguration"
ERROR: Missing Resources: The following symbols/resources were specified, but we
re not found in the workspace. Ensure they are valid and are relative to the wo
rkspace:

Tagged:

Best Answer

Answers

  • kram_soatestkram_soatest Posts: 14

    Yes absolute path is given next to data.
    Whether project directory should exist within workspace directory while doing import?
    I am afraid my project file may be corrupted. I will try again with clean copy and a new workspace directory and see if it works

  • kram_soatestkram_soatest Posts: 14

    @Ireneusz Szmigiel Thank you. I am able to run it without resource option. So import works fine i guess. I will check why i am unable to run particular tst using resource. I have given relative path in resource. Whether i can give absolute path in resource argument when running using config?

  • kram_soatestkram_soatest Posts: 14

    [SOLVED] When i copy eclipse project i create with diff folder name and .project file contains different name. When i run the test with resource after import i used folder name as relative path than .project file name. By changing that i could resolve the issue. Thank you

  • benken_parasoftbenken_parasoft Posts: 566 ✭✭✭
    edited April 4

    Some important things to be aware of:

    • Project location is completely independent of the workspace location. Projects can live anywhere on the file system and don't have to live under the workspace folder.
    • Importing a project (with soatestcli -import) does not involve any copying. Doing so conceptually registers the project with the workspace. The project can live anywhere and be imported (registered, not copied) into the desired workspace. Once imported, you can run any tests in any projects that belong to that workspace.
    • "soatestcli -import" is not used at the same time as running tests. In other words, you run one or more "soatestcli -data workspace_loc -import project_loc" commands first and then run a final "soatestcli -data workspace_loc -config ..." command to execute the tests in any project that belong to the workspace.
    • The -resource argument takes a resource path, which does not necessarily match folder names on the file system. The first path segment is always the project name, as seen in the project's .project file. The project name doesn't have to match the name of the folder on disk that contains the .project file.
  • kram_soatestkram_soatest Posts: 14

    Thank you. my mistake was the last point where I was still referring to folder name instead of project name. Thanks @benken_parasoft for the detailed information

  • ssawalessawale Posts: 2

    @benken_parasoft, could you point us to product documentation where these things are explained with some examples.
    We run into more of cases like reusable elements from one project referenced in other in such cases just registering one project under a workspace to execute tests won't help. How these cases are handled by SOAtestcli or best practices followed to develop frameworks on top of SOAtest that avoids duplication of elements in multiple projects for easy and optimal maintenance?

  • benken_parasoftbenken_parasoft Posts: 566 ✭✭✭
    edited July 16

    could you point us to product documentation where these things are explained with some examples.

    Parasoft Support could probably help you with this. I know Parasoft also offers training opportunities.

    We run into more of cases like reusable elements from one project referenced in other in such cases just registering one project under a workspace to execute tests won't help

    Yes, you would need to import all projects that are needed. You can run "soatestcli -import" multiple times. For test automation, it is common to check out your projects from source control, run "soatestcli -import" however many times to import all your projects, then run "soatestcli" a final time to run tests using the workspace that the projects were imported into.

Sign In or Register to comment.