0

ZTL issues

asked 2011-10-04 07:17:40 +0000

halyph gravatar image halyph
24 1

Hi All,

I'd like to clarify several ZTL related issues:

1. What's the official ZTL home page?
a) http://code.google.com/p/zk-ztl/
or
b) https://github.com/zkoss/ztl
2. What's the official ZTL issue tracker:
a) Jira - http://tracker.zkoss.org/browse/ZTL
or
b) GitHub issue page - https://github.com/zkoss/ztl/issues

3. Can I somehow record ZK UI actions via Selenium to automate this routine process?

4. What's the official ZTL related communication channel? (I guess this forum :-)

delete flag offensive retag edit

30 Replies

Sort by ยป oldest newest

answered 2011-10-04 10:14:24 +0000

crc83 gravatar image crc83
45

I have some issues with this.
I made fork from repo on http://code.google.com/p/zk-ztl/
han I made fork from repo on https://github.com/zkoss/ztl
What fork should I support to be up to date with you?

link publish delete flag offensive edit

answered 2011-10-06 03:57:16 +0000

matthewgo gravatar image matthewgo
375

@ halyph

The ztl in google code is the old version for Selenium-RC .
and jira is the official ZTL issue tracker.
About third question ,do you mean that you want to test automatically everyday?

link publish delete flag offensive edit

answered 2011-10-06 06:58:33 +0000

halyph gravatar image halyph
24 1

@matthewgo
I need to get ZTL compatible jq selectors. But, plain Selenium doesn't work well for this purpose.

link publish delete flag offensive edit

answered 2011-10-06 09:06:47 +0000

crc83 gravatar image crc83
45

@matthewgo
So I should follow repository on github to up to date with you?

link publish delete flag offensive edit

answered 2011-10-06 20:35:16 +0000

matthewgo gravatar image matthewgo
375

@crc83

google code is ztl 1.0.0 for selenium rc
github is ztl 2.0.0 for selenium web driver

Whether to choose goodlecode or github will depend on your requirement and the use case.

link publish delete flag offensive edit

answered 2011-10-06 22:41:18 +0000

crc83 gravatar image crc83
45

@matthewgo
Is there some reqirements for thouse, who whant to contribute in a project?

link publish delete flag offensive edit

answered 2011-10-07 04:21:03 +0000

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi All,

Let me clarify the confusion for you

1. What's the official ZTL home page?

http://www.zkoss.org/product/ztl

2. What's the official ZTL issue tracker:

Jira - http://tracker.zkoss.org/browse/ZTL

3. What's the differences between the two source code repositories.

* ZTL 1.0.0 (with our own vision test) for Selenium RC
- http://code.google.com/p/zk-ztl/

* ZTL 2.0.0 for Selenium Web driver
- https://github.com/zkoss/ztl/

The reason we keep both repositories is that the Selenium Web driver does not support the vision test well,
and currently the web driver version is not stable for all of the browsers. But for ZK app developer they can choose which version is suitable to their requirement.

In ZK framework development environment, we use two repositories at the same time, ZTL 1.0.0 for our vision test and ZTL 2.0.0 for our function test.

link publish delete flag offensive edit

answered 2011-10-07 06:35:15 +0000

crc83 gravatar image crc83
45

can I help you to migrate vision tests from ZTL 1.0.0 to ZTL 2.0.0?
maybe some inputs from your sied can help me to start faster.

link publish delete flag offensive edit

answered 2011-10-12 20:19:36 +0000

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

That means we have to change selenium-server (2.x) source code?
I tried before to use the official selenium web driver API, but in IE it will snapshot the different scene from the original screen that is the reason I went back to use the ZTL 1.0.0 version.
And the selenium web driver doesn't support Safari browser yet. From the functional-wise the vision test in ZTL 1.0.0 is more power than that Selenium 2.x provided.
If you can solve those issues for us that would be great. :D

link publish delete flag offensive edit

answered 2011-10-13 02:25:27 +0000

crc83 gravatar image crc83
45

updated 2011-10-13 02:28:40 +0000

I'm using Selenium 2.7 and corresponding IE Web Driver. I made some fixes in ZTL so captureScreenshot works fine with IE.
You could see https://github.com/crc83/ztl/commit/67896fe35ffed40096e4e7ce96eeb048bda5cd2e
file : ztl/ztl/src/main/java/org/zkoss/ztl/ZKTestCase.java

	public void captureScreenshot(String filename) {
		try {
			if (isIE()) {
				File screenshot = ((InternetExplorerDriver) getWebDriver()).getScreenshotAs(OutputType.FILE);
            	File dest = new File(filename);
            	if (dest.exists()) {
            		dest.delete();
            	}
            	screenshot.renameTo(dest);
        	} else {
        		getCurrent().captureScreenshot(filename);
        	}
            System.err.println("Saved screenshot " + filename);
        } catch (Exception e) {
            System.err.println("Couldn't save screenshot " + filename + ": " + e.getMessage());
            e.printStackTrace();
        }
	}

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-10-04 07:17:40 +0000

Seen: 2,132 times

Last updated: Aug 01 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More