Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for issue #520 #527

Merged
merged 2 commits into from
Nov 2, 2015
Merged

Test for issue #520 #527

merged 2 commits into from
Nov 2, 2015

Conversation

mlfreeman2
Copy link
Contributor

Per Daniel D's request in the Google Group thread, here's a test for issue #520

protected void setUp() throws Exception {
String[] commands = {"cmd", "/c", "start", "iexplore.exe","-nohome", "\"http://www.srh.noaa.gov/jax\""};
Runtime.getRuntime().exec(commands);
Thread.sleep(30000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do something a little smarter than a 30 second wait and a browse to a specific website? Maybe launch it via Win32 API and ShellExecute?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I launched IE via Runtime.getRuntime().exec() because it's not the default browser on any of my systems - ShellExecute would open Chrome or Firefox on them.

If this will run only on boxes with IE as the default then I can adapt it accordingly.

As for the 30 second delay, that was the simplest way to give the page a chance to load. I'll change the target URL to "about:blank" - that should load instantly.

@dblock
Copy link
Member

dblock commented Nov 2, 2015

Ok this is good, merging.

dblock added a commit that referenced this pull request Nov 2, 2015
@dblock dblock merged commit a902476 into java-native-access:master Nov 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants