Errors exist in required project

Hi

I get the following message when running tests on Windows 10

"Errors exist in required project:

C%%Users%jason%katalon-project%test.prj

Proceed with launch?"

The project executes fine, but not sure what this error means or if its anything to be concerned about.

Thanks.

Hi Jason

Usually, when this happens, there is some kind of syntax error in one of your scripts. You may find the culprit by taking a look in the “Problem” panel (which is usually situated below your TestCase window:

Hope that helps you find it.

Russ

image.png

1 Like

Hi Russ

Thanks for pointing me to the Problems panel; there are 2 errors but none are displayed under the Description heading.

However, in the Console panel i have the following:

Starting ChromeDriver 2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73) on port 4807
Only local connections are allowed.
Apr 19, 2018 9:03:54 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
04-19-2018 09:03:55 AM - [RUN_DATA] - Logging run data 'sessionId' with value 'da0fe74457bd3c973d07c84e33ef6134'
04-19-2018 09:03:56 AM - [RUN_DATA] - Logging run data 'browser' with value 'Chrome 65.0.3325.181'
04-19-2018 09:03:56 AM - [RUN_DATA] - Logging run data 'platform' with value 'Windows 10'
04-19-2018 09:03:56 AM - [RUN_DATA] - Logging run data 'seleniumVersion' with value '3.7.1'
04-19-2018 09:03:56 AM - [RUN_DATA] - Logging run data 'proxyInformation' with value 'ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}'

After googling:

“Starting ChromeDriver 2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73) on port 4807 Only local connections are allowed.”

I came across Only local connections are allowed Chrome & Selenium webdriver, the issue dosnt seem to be an error but more informational.

As this seems like an issue that needs fixing, has anyone come across this and resolved? It may be worth me installing the latest version of Selenium to see if it resolves.

Thanks.

I came across Update or Replace Web Browser Drivers and Selenium

which recommends not to update Selenium or WebDrivers so decided to see if the new version ( 5.4 ) would resolve the issue, but no luck. Is anyone else having this issue?

Any help on this would be great.

Jason, does this only happen when running with Chrome? Did you try Firefox?

Thanks Russ,

With Firefox i get a different message in the Console tab - below are the last 15 or so lines:

1524578786796	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1524578786796	addons.xpi	DEBUG	Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1524578786796	addons.xpi	DEBUG	getInstallState changed: false, state: {}
1524578786928	Marionette	INFO	Listening on port 50024
1524578786970	Marionette	WARN	TLS certificate errors will be ignored for this session
1524578786976	Marionette	INFO	Proxy settings initialised: {"proxyType":"direct"}
Apr 24, 2018 3:06:27 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2018-04-24 15:06:27.446 plugin-container[38322:1117437] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa937, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
04-24-2018 03:06:28 PM - [RUN_DATA] - Logging run data 'sessionId' with value '6b5c71d6-6ab4-f246-8ea1-09f9aedb939f'
04-24-2018 03:06:29 PM - [RUN_DATA] - Logging run data 'browser' with value 'Firefox 59.0'
04-24-2018 03:06:29 PM - [RUN_DATA] - Logging run data 'platform' with value 'Mac OS X'
04-24-2018 03:06:29 PM - [RUN_DATA] - Logging run data 'seleniumVersion' with value '3.7.1'
04-24-2018 03:06:29 PM - [RUN_DATA] - Logging run data 'proxyInformation' with value 'ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}'

I get tests failing in Firefox which do not in Chrome and im not too sure why, id expect the same test cases to work cross browser, am i missing something ( setting / code ) ?

But do you see the original complain about “Errors exist in required project…” ?

Here’s my FF run for comparison…

1524580255366	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1524580255366	addons.xpi	DEBUG	Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1524580255366	addons.xpi	DEBUG	getInstallState changed: false, state: {}
1524580255496	Marionette	INFO	Listening on port 62218
1524580255684	Marionette	WARN	TLS certificate errors will be ignored for this session
1524580255690	Marionette	INFO	Proxy settings initialised: {"proxyType":"direct"}
Apr 24, 2018 9:30:55 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
04-24-2018 09:30:55 AM - [RUN_DATA] - Logging run data 'sessionId' with value 'e6d30f5f-854e-419b-a7ca-f36d7001bf7a'
04-24-2018 09:30:55 AM - [RUN_DATA] - Logging run data 'browser' with value 'Firefox 59.0'
04-24-2018 09:30:55 AM - [RUN_DATA] - Logging run data 'platform' with value 'Windows 7'
04-24-2018 09:30:55 AM - [RUN_DATA] - Logging run data 'seleniumVersion' with value '3.7.1'
04-24-2018 09:30:55 AM - [RUN_DATA] - Logging run data 'proxyInformation' with value 'ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}'
04-24-2018 09:30:55 AM - [PASSED] - Browser is opened with url: ''


Any idea why yours is talking about com.apple?

2018-04-24 15:06:27.446 plugin-container[38322:1117437] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa937, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.


Apologies the “Errors exist in required project…” message appears on Windows 10, i have since moved onto Mac.

I didnt know whether any of the above messages relate to the problems im having with unexpected errors with Firefox - are you able to record tests in Chrome and run them in Firefox without error?

The object in the Object repository is the exact same one used in Chrome and Firefox, whats even more confusing is the object passes in some tests, fails in others.

**The object in the Object repository **

id("appflow")/div[@class="width10 background form-screen"]/div[@class="btn-group add-row1 width10 appflow-controls align-right hideon-vkb"]/button[@class="action-next btn btn-link widthauto"][count(. | //button[(text() = 'sign in' or . = 'sign in')]) = count(//button[(text() = 'sign in' or . = 'sign in')])]

**
The click that fails in some and passes in others**

WebUI.click(findTestObject('Common_Items/button_sign in'))

Happy to move this to another post as this looks like a separate issue.

Happy to move this to another post as this looks like a separate issue.

I think so. But, since we’re here…

Apologies the “Errors exist in required project…” message appears on Windows 10…

Windows 10 is an error B)

are you able to record tests in Chrome and run them in Firefox without error?

I don’t “record tests”. I write them by hand, in “Script” view, 100%.

The object in the Object repository
followed by an unreadable, noisy line of who-knows-what created by the Record Web tool

Which is why I don’t use it. Shrug.

Jason, take a step back and ask yourself if you want to continue working this way. If you want to find a better, more robust, more reasonable (as in “can be reasoned about”) set of tests, switch to creating your own test objects (in code) and stop using the recorder (and the Object Repository - mine is empty).

Yeah… another thread…

Russ

Thanks for the advice Russ, ill start up a new thread regarding creating your own test objects as this seems like a more sane way to go about testing.

Cheers.