SOAPUI - How could I use relative path in the Schema compliance assertion?












0















I created a lot of Schema compliance assertions and set one wadl file for all of them.
I put it in GIT and my teammate take it.



He has problem because at his PC he has another path to the repository directory.



How could I set a unique path to the project directory?



That was I tried without success:




  1. Set Project property with path
    wadlSource = 'D:reposoapuiAPI.wadl'
    and then set to the Configure Schema Compliance Assertion path = '${#Project#wadlSource}'


  2. Set to the Project parameter Resource Root = '${projectDir}'
    Set to the Configure Schema Compliance Assertion path = 'API.wadl'


  3. Set to the Configure Schema Compliance Assertion path = '${projectDir}API.wadl'



These variants don't work, could anybody help me?










share|improve this question





























    0















    I created a lot of Schema compliance assertions and set one wadl file for all of them.
    I put it in GIT and my teammate take it.



    He has problem because at his PC he has another path to the repository directory.



    How could I set a unique path to the project directory?



    That was I tried without success:




    1. Set Project property with path
      wadlSource = 'D:reposoapuiAPI.wadl'
      and then set to the Configure Schema Compliance Assertion path = '${#Project#wadlSource}'


    2. Set to the Project parameter Resource Root = '${projectDir}'
      Set to the Configure Schema Compliance Assertion path = 'API.wadl'


    3. Set to the Configure Schema Compliance Assertion path = '${projectDir}API.wadl'



    These variants don't work, could anybody help me?










    share|improve this question



























      0












      0








      0








      I created a lot of Schema compliance assertions and set one wadl file for all of them.
      I put it in GIT and my teammate take it.



      He has problem because at his PC he has another path to the repository directory.



      How could I set a unique path to the project directory?



      That was I tried without success:




      1. Set Project property with path
        wadlSource = 'D:reposoapuiAPI.wadl'
        and then set to the Configure Schema Compliance Assertion path = '${#Project#wadlSource}'


      2. Set to the Project parameter Resource Root = '${projectDir}'
        Set to the Configure Schema Compliance Assertion path = 'API.wadl'


      3. Set to the Configure Schema Compliance Assertion path = '${projectDir}API.wadl'



      These variants don't work, could anybody help me?










      share|improve this question
















      I created a lot of Schema compliance assertions and set one wadl file for all of them.
      I put it in GIT and my teammate take it.



      He has problem because at his PC he has another path to the repository directory.



      How could I set a unique path to the project directory?



      That was I tried without success:




      1. Set Project property with path
        wadlSource = 'D:reposoapuiAPI.wadl'
        and then set to the Configure Schema Compliance Assertion path = '${#Project#wadlSource}'


      2. Set to the Project parameter Resource Root = '${projectDir}'
        Set to the Configure Schema Compliance Assertion path = 'API.wadl'


      3. Set to the Configure Schema Compliance Assertion path = '${projectDir}API.wadl'



      These variants don't work, could anybody help me?







      soapui web-api-testing






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 14 '16 at 7:57









      albciff

      14.5k44864




      14.5k44864










      asked Sep 14 '16 at 7:35









      VladimirVladimir

      111




      111
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Seems that Schema compliance assertion doesn't support property expansion. I create a wadlSource property in the Project level and then I put as a path ${#Project#wadlSource} for the Schema compliance assertion, but looking in the SOAPUI log you can see:



          10:39:13,993 ERROR [SoapUI] An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionEx
          ception], see error log for details
          java.io.FileNotFoundException: C:ProgramariSoapUI-5.0.0bin${#Project#wadlSource} (The system cannot find the file specified)
          at java.io.FileInputStream.open(Native Method)
          at java.io.FileInputStream.<init>(Unknown Source)
          at java.io.FileInputStream.<init>(Unknown Source)
          at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
          at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)


          You can try to open a feature-request with SOAPUI.



          Anyway to bypass this there are a few options, a possible workaround could be to serve the wadl file as static content from your own WS (this is the most common way to do so) and configure the Schema compliance assertion to this URL.



          If this is not an option you can put in some internal http server like for example apache-httpd where you and your teammate have access an configure the Schema compliance assertion to this URL.



          UPDATE:



          I also try with SOAPUI version 5.1.2 and the same error happens, seems that property expansion doesn't work in Schema compilance assertion url also for this version.






          share|improve this answer


























          • Thank you for advice. I have asked the same question on SOAP UI community, maybe they can suggest how to use variables or relative path.

            – Vladimir
            Sep 15 '16 at 11:11











          • @Vladimir due to the evidences use variable with property expansion at least right now it's not possible... maybe with a newer version or with a feature request.

            – albciff
            Sep 15 '16 at 11:18



















          0














          I'm working around this by serving up the schema files using WireMock, which we were using anyway. You could probably also create a Virtual Service (mock) within SoapUI itself, and start that up to serve the schema files.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39484891%2fsoapui-how-could-i-use-relative-path-in-the-schema-compliance-assertion%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Seems that Schema compliance assertion doesn't support property expansion. I create a wadlSource property in the Project level and then I put as a path ${#Project#wadlSource} for the Schema compliance assertion, but looking in the SOAPUI log you can see:



            10:39:13,993 ERROR [SoapUI] An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionEx
            ception], see error log for details
            java.io.FileNotFoundException: C:ProgramariSoapUI-5.0.0bin${#Project#wadlSource} (The system cannot find the file specified)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(Unknown Source)
            at java.io.FileInputStream.<init>(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)


            You can try to open a feature-request with SOAPUI.



            Anyway to bypass this there are a few options, a possible workaround could be to serve the wadl file as static content from your own WS (this is the most common way to do so) and configure the Schema compliance assertion to this URL.



            If this is not an option you can put in some internal http server like for example apache-httpd where you and your teammate have access an configure the Schema compliance assertion to this URL.



            UPDATE:



            I also try with SOAPUI version 5.1.2 and the same error happens, seems that property expansion doesn't work in Schema compilance assertion url also for this version.






            share|improve this answer


























            • Thank you for advice. I have asked the same question on SOAP UI community, maybe they can suggest how to use variables or relative path.

              – Vladimir
              Sep 15 '16 at 11:11











            • @Vladimir due to the evidences use variable with property expansion at least right now it's not possible... maybe with a newer version or with a feature request.

              – albciff
              Sep 15 '16 at 11:18
















            0














            Seems that Schema compliance assertion doesn't support property expansion. I create a wadlSource property in the Project level and then I put as a path ${#Project#wadlSource} for the Schema compliance assertion, but looking in the SOAPUI log you can see:



            10:39:13,993 ERROR [SoapUI] An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionEx
            ception], see error log for details
            java.io.FileNotFoundException: C:ProgramariSoapUI-5.0.0bin${#Project#wadlSource} (The system cannot find the file specified)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(Unknown Source)
            at java.io.FileInputStream.<init>(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)


            You can try to open a feature-request with SOAPUI.



            Anyway to bypass this there are a few options, a possible workaround could be to serve the wadl file as static content from your own WS (this is the most common way to do so) and configure the Schema compliance assertion to this URL.



            If this is not an option you can put in some internal http server like for example apache-httpd where you and your teammate have access an configure the Schema compliance assertion to this URL.



            UPDATE:



            I also try with SOAPUI version 5.1.2 and the same error happens, seems that property expansion doesn't work in Schema compilance assertion url also for this version.






            share|improve this answer


























            • Thank you for advice. I have asked the same question on SOAP UI community, maybe they can suggest how to use variables or relative path.

              – Vladimir
              Sep 15 '16 at 11:11











            • @Vladimir due to the evidences use variable with property expansion at least right now it's not possible... maybe with a newer version or with a feature request.

              – albciff
              Sep 15 '16 at 11:18














            0












            0








            0







            Seems that Schema compliance assertion doesn't support property expansion. I create a wadlSource property in the Project level and then I put as a path ${#Project#wadlSource} for the Schema compliance assertion, but looking in the SOAPUI log you can see:



            10:39:13,993 ERROR [SoapUI] An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionEx
            ception], see error log for details
            java.io.FileNotFoundException: C:ProgramariSoapUI-5.0.0bin${#Project#wadlSource} (The system cannot find the file specified)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(Unknown Source)
            at java.io.FileInputStream.<init>(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)


            You can try to open a feature-request with SOAPUI.



            Anyway to bypass this there are a few options, a possible workaround could be to serve the wadl file as static content from your own WS (this is the most common way to do so) and configure the Schema compliance assertion to this URL.



            If this is not an option you can put in some internal http server like for example apache-httpd where you and your teammate have access an configure the Schema compliance assertion to this URL.



            UPDATE:



            I also try with SOAPUI version 5.1.2 and the same error happens, seems that property expansion doesn't work in Schema compilance assertion url also for this version.






            share|improve this answer















            Seems that Schema compliance assertion doesn't support property expansion. I create a wadlSource property in the Project level and then I put as a path ${#Project#wadlSource} for the Schema compliance assertion, but looking in the SOAPUI log you can see:



            10:39:13,993 ERROR [SoapUI] An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionEx
            ception], see error log for details
            java.io.FileNotFoundException: C:ProgramariSoapUI-5.0.0bin${#Project#wadlSource} (The system cannot find the file specified)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(Unknown Source)
            at java.io.FileInputStream.<init>(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)


            You can try to open a feature-request with SOAPUI.



            Anyway to bypass this there are a few options, a possible workaround could be to serve the wadl file as static content from your own WS (this is the most common way to do so) and configure the Schema compliance assertion to this URL.



            If this is not an option you can put in some internal http server like for example apache-httpd where you and your teammate have access an configure the Schema compliance assertion to this URL.



            UPDATE:



            I also try with SOAPUI version 5.1.2 and the same error happens, seems that property expansion doesn't work in Schema compilance assertion url also for this version.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 15 '16 at 13:14

























            answered Sep 14 '16 at 8:46









            albciffalbciff

            14.5k44864




            14.5k44864













            • Thank you for advice. I have asked the same question on SOAP UI community, maybe they can suggest how to use variables or relative path.

              – Vladimir
              Sep 15 '16 at 11:11











            • @Vladimir due to the evidences use variable with property expansion at least right now it's not possible... maybe with a newer version or with a feature request.

              – albciff
              Sep 15 '16 at 11:18



















            • Thank you for advice. I have asked the same question on SOAP UI community, maybe they can suggest how to use variables or relative path.

              – Vladimir
              Sep 15 '16 at 11:11











            • @Vladimir due to the evidences use variable with property expansion at least right now it's not possible... maybe with a newer version or with a feature request.

              – albciff
              Sep 15 '16 at 11:18

















            Thank you for advice. I have asked the same question on SOAP UI community, maybe they can suggest how to use variables or relative path.

            – Vladimir
            Sep 15 '16 at 11:11





            Thank you for advice. I have asked the same question on SOAP UI community, maybe they can suggest how to use variables or relative path.

            – Vladimir
            Sep 15 '16 at 11:11













            @Vladimir due to the evidences use variable with property expansion at least right now it's not possible... maybe with a newer version or with a feature request.

            – albciff
            Sep 15 '16 at 11:18





            @Vladimir due to the evidences use variable with property expansion at least right now it's not possible... maybe with a newer version or with a feature request.

            – albciff
            Sep 15 '16 at 11:18













            0














            I'm working around this by serving up the schema files using WireMock, which we were using anyway. You could probably also create a Virtual Service (mock) within SoapUI itself, and start that up to serve the schema files.






            share|improve this answer




























              0














              I'm working around this by serving up the schema files using WireMock, which we were using anyway. You could probably also create a Virtual Service (mock) within SoapUI itself, and start that up to serve the schema files.






              share|improve this answer


























                0












                0








                0







                I'm working around this by serving up the schema files using WireMock, which we were using anyway. You could probably also create a Virtual Service (mock) within SoapUI itself, and start that up to serve the schema files.






                share|improve this answer













                I'm working around this by serving up the schema files using WireMock, which we were using anyway. You could probably also create a Virtual Service (mock) within SoapUI itself, and start that up to serve the schema files.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 '18 at 19:42









                cwbarbercwbarber

                535




                535






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39484891%2fsoapui-how-could-i-use-relative-path-in-the-schema-compliance-assertion%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Guess what letter conforming each word

                    Port of Spain

                    Run scheduled task as local user group (not BUILTIN)