Bryan_Nahrwold
16 years agoContributor
Global ENDPOINT for manual testing
I have need to execute test cases of individual soap operations manually to verify behavior. As a result, when I change an endpoint, I have to go to each operation in each test case and point to the new one. Likewise I have some other properties that need to be defined once and accessed in multiple locations.
I ended up using this for the endpoint:
https://${EndPointProperty#ENDPOINT}:8092/LicensingService/
I tried first to define a Test Property for the LicensingServiceJBIPortBinding TestSuite by highlighting the TestSuite, then highlighting the "Test Properties" tag, and creating an ENDPOINT property with a value something like 192.168.2.1. I then tried the following endpoint entry:
https://${LicensingServiceJBIPortBinding TestSuite#ENDPOINT}:8092/LicensingService/
for the endpoint for each testcase. The operations would all fail with:
Error getting response; java.net.ConnectionException: Connection refused: connect.
I then changed this using an Properties File:
EndPointProperty#ENDPOINT which resulted in an endpoint configuration of:
https://${EndPointProperty#ENDPOINT}:8092/LicensingService/
Where this property file was read from a configuration file containing:
ENDPOINT=192.168.2.1
This works but I can only do this by defining an EndPointProperty property step in each testcase. Because I am reading from disk, a change in directory means I have to change each ane every EndPointProperty property step for the location of the file to read.
I would really like to be able to define a property value in one location, and then use it across individual test cases. In fact, I would really like to be able to use this across multiple projects.
Is there a way to create a properly value that can be accessed from any test case, in any test suite, in any project, and done in a way so that changes to that property and/or the file location of the property value can be made in one location?
Thanks,
Bryan
I ended up using this for the endpoint:
https://${EndPointProperty#ENDPOINT}:8092/LicensingService/
I tried first to define a Test Property for the LicensingServiceJBIPortBinding TestSuite by highlighting the TestSuite, then highlighting the "Test Properties" tag, and creating an ENDPOINT property with a value something like 192.168.2.1. I then tried the following endpoint entry:
https://${LicensingServiceJBIPortBinding TestSuite#ENDPOINT}:8092/LicensingService/
for the endpoint for each testcase. The operations would all fail with:
Error getting response; java.net.ConnectionException: Connection refused: connect.
I then changed this using an Properties File:
EndPointProperty#ENDPOINT which resulted in an endpoint configuration of:
https://${EndPointProperty#ENDPOINT}:8092/LicensingService/
Where this property file was read from a configuration file containing:
ENDPOINT=192.168.2.1
This works but I can only do this by defining an EndPointProperty property step in each testcase. Because I am reading from disk, a change in directory means I have to change each ane every EndPointProperty property step for the location of the file to read.
I would really like to be able to define a property value in one location, and then use it across individual test cases. In fact, I would really like to be able to use this across multiple projects.
Is there a way to create a properly value that can be accessed from any test case, in any test suite, in any project, and done in a way so that changes to that property and/or the file location of the property value can be made in one location?
Thanks,
Bryan