ContributionsMost RecentMost LikesSolutionsRe: java.net.UnknownHostException error REST API I did ask what you meant by service, if you are talking about the genderize api endpoint than no I don't think it is running locally on my laptop/pc. Re: java.net.UnknownHostException error REST API When you say service do you mean the genderize api endpoint? Also could you provide an example of when it would be possible to use a REST API without internet? java.net.UnknownHostException error REST API Hi, I'm using the open source (free) SaopUI and I am attempting to connect to the api: https://api.genderize.io When I run the tests with internet connection it works fine but when I run without internet connection I get the error:java.net.UnknownHostException. I've been told that APIs shouldn't be affected by internet access, I am relatively new to REST APIs so can someone confirm whether internet access is required for REST APIs and if so why my test isn't working when I turn my internet off? Thanks SolvedRe: Retrieving data from website without going to it. HiMarsha_R I couldn't find an API for BBC website unforunately but I would still like to learn how to use an API so I got the Weather API (free weather api I found online) and now I got an API key and all that. How would I go about using this in a TestComplete Test? Retrieving data from website without going to it. Hi, I want to read some data from the BBC Website such as today's weather and store it in a variable. I know this can be done by recording a test going to the website and saving the value on the screen. Is there a way to do this without having to go directly to the website (without having to do all the clicks and typing to get to the website). I was thinking an API or Web-Service is the right call but I don't know of an API that can connect to any website and a web-service requires a WSDL document which I don't quite understand. Can anyone point me in the right direction? Re: Automatically storing property file contents. Hi Vinnie, Apologies, I see I am making this unnecessarily confusing. The property file has to be a text-file (.txt) for other uses. I know I can read data from the property file using the code mentioned previously. I'm just curious if there is another way to read data from a text-file and store it in a variable without having to put that lengthy piece of code at the beginning of every script. Sort of like making it into an environment variable for all scripts to use. Thanks. Re: Automatically storing property file contents. Hi Vinnie, I'm going on the scenario that the key-value pairs do change often or the values at least do. The problem with Stores is that it seems to only involves checking and comparing and updating the contents of the file, I just want to use(not check or change) the data in UI tests, similarly to a data-driven loop using Excel but with a text file containing key-value pairs. The problem with parametrization is that I would have to manually change the data for every test to run with the desired info, I would much rather the variables/data be in a text-file to read from for efficiency. What I want is to not have to have this long line of code at the beginning of ever script test to get a variable: functionReadFile(AFileName) { constForReading = 1; constForWriting = 2; constForAppending = 8; letFS = getActiveXObject("Scripting.FileSystemObject"); letF = FS.OpenTextFile(AFileName, ForReading); while(! F.AtEndOfStream){ lets = F.ReadLine(); Log.Message(s); } F.Close(); } Automatically storing property file contents. Hi, I was curious, I know there are ways to read files like text files and xml files from a script test, I wanted to ask if there was a way to automatically read from the file and store its contents elsewhere in TestComplete so that I wouldn't have to get/read the file at the beginning of every script test? (The property file in question will simply hold a key-value pair). Thanks Re: Test runner exit code: -10 (Unable to create a user session) Thank you Vinnie, That did work, I'll admit I am/was a bit confused as to what credentials it was talking about so if anyone who has the same issue as me reads this, the credentials I used where the username and password to log into my windows desktop. Thanks again Vinnie. Finally got Jenkins all set up and running recorded TestComplete tests periodically. 🙂 Re: Test runner exit code: -10 (Unable to create a user session) Hi Vinnie, When I run the command:TestComplete.exe "C:\Jenkins\TestCompleteExampleTest\TestCompleteExampleTest.pjs" /run in the command line the tests run and for the project suit file path I used the same pathso I'm sure the directory is correct. I am executing the entire suit. In the advanced section I have: Test Runner: TestComplete Version: Latest Action on warnings: none Actions on Error: Mark as FAILED Use test timeout: Unchecked Run interactive user session (TestComplete/TestExecute 10.6 or later is required): Checked Credentials: None Use Active session: Checked Session screen resolution: 1280x1024 Generate MHT log file: Unchecked Generate JUnit-style report: Checked The user I have used I can't say if I have done it correctly but I thought I had. ~I followed the steps in the documentation: On your Jenkins node, set theSystem properties > Remote > Remote Desktopoption to: In Windows 10 and Windows 8 –Allow remote connections to this computer. In Windows 7 –Allow connections from computers running any version of Remote Desktop (less secure). Add a user account under which you will run tests on the node to theRemote Desktop Usersgroup. Make sure that the user account has a non-empty password. For the user account I used the MyPCName\Steven, not sure what the last point about non-empty password meant though. Hope this helps.