Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RPT script with datapool can not be run correctly from RQM

Hi there!

Problem background:

1) Integrate RQM 2.0 with RPT 8.0.0.3;
Congfigure and start performance adapter in the RPT machine;
RPT agent can be seen in the RQM adapter console
2) Create two similar scripts: one with datapool, the other is not; copy them into the shared directory.
3) Import the two RPT scripts into RQM from the shared directory, and attach them with test cases.

Problem description:
1) Running script without datapool from the test case;
Result: test finished successfully.
check the workspace in RPT server, test script is copied to the RPT workspace, and result file is there.
2) Running script with datapool from the test case;
Result: test failed with the following error message:
The following message was reported by the adapter engine:

Error executing script. Reason: Unable to import remote project to Adapter workspace: org.eclipse.core.internal.resources.ResourceException: Errors occurred while refreshing resources with the local file system.. The project in the shared location

check the workspace in RPT server, test is copied into the workspace, but datapool can not found there.

Question:
So can anyone provide me the guideline about how to run the RPT scripts with datapool or custom code from the RQM, which are imported from the shared location of RQM?

0 votes



4 answers

Permanent link
One guidance would be to ensure the datapool or custom code is in the same relative path in the shared location as it is in the project that created the datapool or custom code. This can be done by copying the entire project to the base of the shared location. For instance, if you created a workspace in c:\WS and created a RPT project Test which had the following configuration
    Test\mytest.testsuite (which uses datapool dp.datapool)
    Test\DataPools\dp.datapool

and you created a shared location \\9.1.1.1\RPTSharedLocation, you would want the following files visible off the share
    \\9.1.1.1\RPTSharedLocation\Test\mytest.testsuite
    \\9.1.1.1\RPTSharedLocation\Test\DataPools\dp.datapool

The way I accomplish this is by copying the entire Test folder to the \\9.1.1.1\RPTSharedLocation

Another mistake I have seen is when the adapter workspace (the one which connects to RQM) is physically at the same location as the shared location. The adapter workspace should never overlap the shared location, they should be at different locations. For instance,
    1. User creates a workspace at c:\ws
    2. User creates an RPT project Test, creates dp/cc etc.
    3. From the same workspace c:\ws, the user connects to RQM
    4. The user shares c:\ws and defines it in RQM as \\mymachine\ws
    5. From RQM user launches tests


Besides these two items everything should work correctly. The datapool should be downloaded along with the test or schedule. I just tested the basic configuration (RQM 2.0 with RPT 8.0.0.3) and everything worked as expected.

The only other issue I can think of is maybe there is an unexpected internationalization issue. My tests were run on English to English systems, what is your configuration? Do any of the paths/assets names contain non-ascii characters?

Richard

    0 votes


    Permanent link
    I did copy the whole folder of the project into the shared directory.

    Both the RQM machine an RPT machine are English systems

    ******************************************************
    The Adapter log in the RPT server

    Start of RPT project resolve. Repository=<URL>, Bootstrap=<RPT_Share>
    Attempting to resolve asset=<RPT_Share>
    Downloaded asset /RPT_Share/TestWithDatapool/Tests/TestW3.testsuite from remote repository, local asset created.
    RPT testsuite=<RPT_Share> found the following dependencies=</TestWithDatapool>
    Attempting to resolve asset=</TestWithDatapool>
    Unable to download remote asset internalID.datapool into local workspace. Remote repository URL=https://perfrt1032vm01.bto.ibm.com:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resource?resourceURN=, LSH=\\172.16.4.61\d$\, Browse=https://perfrt1032vm01.bto.ibm.com:9443/jazz/service/com.ibm.rqm.executionframework.common.service.rest.IResourceBrowserRestService/ResourcesInfo?dataStorePath=. Ensure RQM system has connectivity to the remote repository and the file exists.
    Start RQM Execution Request Project=RPT_Share Name=TestWithDatapool\Tests\TestW3.testsuite
    Launch was aborted: Error executing script. Reason: Unable to import remote project to Adapter workspace: java.io.IOException. The project in the shared location may have been improperly configured in RQM.
    End RQM Execution Request

    0 votes


    Permanent link
    It appears the shared location you define in RQM is incorrect. The location you specify in RQM must map to the equivalent workspace level on the UNC share. This means RPT projects must exist directly under the shared location. In your case you just need to change the shared location from \\machine\D$ to \\machine\D$\RQM_Share

    You will also need to redefine the test scripts in RQM.

    One way to ensure you have correctly defined your shared location in RQM is when you first browse the shared resource in RQM (when you create a test script), you see RPT projects at the first level. In your case you would want to see TestWithDatapool instead of RQM_Share.

    Another common mistake is the shared location includes the project name (\\machine\D$\RQM_Share\TestWithDatapool). This too will cause confusing error messages.

    0 votes


    Permanent link
    Thanks a lot! It works!

    The problem is caused by the wrong shared directory, I changed it to the direct parent directory, the script with datapool is able to run from the RQM. :D

    0 votes

    Your answer

    Register or log in to post your answer.

    Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

    Search context
    Follow this question

    By Email: 

    Once you sign in you will be able to subscribe for any updates here.

    By RSS:

    Answers
    Answers and Comments
    Question details

    Question asked: Dec 09 '09, 1:22 a.m.

    Question was seen: 8,954 times

    Last updated: Dec 09 '09, 1:22 a.m.

    Confirmation Cancel Confirm