[wtr-general] Re: Ruby integration with TestLink

2008-10-09 Thread KimBrown

On Oct 8, 2:46 am, Manish Sapariya [EMAIL PROTECTED] wrote:

 I can describe the solution that we have created in great detail
 However I am not sure, if I would be able to share the code.

Perhaps you would be able to post the code if you changed it to be
generic enough to remove any proprietary information?  It would still
be just as effective as an example.


Kim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Ruby integration with TestLink

2008-10-09 Thread Manish Sapariya

Hi,
I shall get back with basic document first,
describing what we have done. I am eager to
share the code as well, that might take little
time.

Thanks for the response.
Regards,
manish

KimBrown wrote:
 On Oct 8, 2:46 am, Manish Sapariya [EMAIL PROTECTED] wrote:
 
 I can describe the solution that we have created in great detail
 However I am not sure, if I would be able to share the code.

 Perhaps you would be able to post the code if you changed it to be
 generic enough to remove any proprietary information?  It would still
 be just as effective as an example.
 
 
 Kim
  
 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Ruby integration with TestLink

2008-10-08 Thread Manish Sapariya

Alister,
I can describe the solution that we have created in great detail
However I am not sure, if I would be able to share the code.

Would it be all right to just describe the approach?

Thanks and Regards,
Manish

Alister Scott wrote:
 Hi Manish,
 
 If you have time, it would be great if you could share your solution
 you talk about on a wiki page.
 You can create a page with the example under:
 http://wiki.openqa.org/display/WTR/Advanced+Examples
 Screenshots would be good too.
 
 Regards,
 Alister Scott
 
 On Oct 7, 4:26 pm, Manish Sapariya [EMAIL PROTECTED] wrote:
 Hi Natasha,
 We have developed a patch and contributed to testlink, which can run
 a test from testlink.

 Please note that this just enables you to RUN the tests, not write and
 maintain them. Please read on for details. This might be little off
 topic but I think it might be still useful to others.

 The idea is simple. We have small CSV based test execution framework
 around watir, which exposes all the tests using xml rpc server.

 One needs to write a test cases in testlink such that the name of
 testcase is exactly the name of test api in the framework. The patched
 testlink provides a execute button, pressing which simply invokes
 the test case using xmlrpc call. There will also be a execute complete
 test plan in this way.

 The testlink patch is already in the trunk and is enabled by some
 config variable, I don't remember the exact name.

 This is very simple and straight forward integration that we have
 tried, but it works for us.

 You may achieve the same thing by writing simple xmlrpc server
 execution engine for your test cases. Best thing would be a
 xmlrpc based runner for runit/testunit. :-)

 Please do let me know if you need more details.
 Regards,
 Manish

 Natasha wrote:
 Hello All,
 Has any tried integrating TestLink with Watir? Basically executing
 watir tests through Testlink.
 If yes, please could you share details about complexity of doing the
 integration.
 If not TestLink, is there any easy integration/support available for
 any other opensource Test case management tool?
 Thanks,
 Natasha
  
 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Ruby integration with TestLink

2008-10-08 Thread Alister Scott

Hi Manish,
For sure, anything is better than nothing.
Regards,
Alister

On Oct 8, 5:46 pm, Manish Sapariya [EMAIL PROTECTED] wrote:
 Alister,
 I can describe the solution that we have created in great detail
 However I am not sure, if I would be able to share the code.

 Would it be all right to just describe the approach?

 Thanks and Regards,
 Manish

 Alister Scott wrote:
  Hi Manish,

  If you have time, it would be great if you could share your solution
  you talk about on a wiki page.
  You can create a page with the example under:
 http://wiki.openqa.org/display/WTR/Advanced+Examples
  Screenshots would be good too.

  Regards,
  Alister Scott

  On Oct 7, 4:26 pm, Manish Sapariya [EMAIL PROTECTED] wrote:
  Hi Natasha,
  We have developed a patch and contributed to testlink, which can run
  a test from testlink.

  Please note that this just enables you to RUN the tests, not write and
  maintain them. Please read on for details. This might be little off
  topic but I think it might be still useful to others.

  The idea is simple. We have small CSV based test execution framework
  around watir, which exposes all the tests using xml rpc server.

  One needs to write a test cases in testlink such that the name of
  testcase is exactly the name of test api in the framework. The patched
  testlink provides a execute button, pressing which simply invokes
  the test case using xmlrpc call. There will also be a execute complete
  test plan in this way.

  The testlink patch is already in the trunk and is enabled by some
  config variable, I don't remember the exact name.

  This is very simple and straight forward integration that we have
  tried, but it works for us.

  You may achieve the same thing by writing simple xmlrpc server
  execution engine for your test cases. Best thing would be a
  xmlrpc based runner for runit/testunit. :-)

  Please do let me know if you need more details.
  Regards,
  Manish

  Natasha wrote:
  Hello All,
  Has any tried integrating TestLink with Watir? Basically executing
  watir tests through Testlink.
  If yes, please could you share details about complexity of doing the
  integration.
  If not TestLink, is there any easy integration/support available for
  any other opensource Test case management tool?
  Thanks,
  Natasha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Ruby integration with TestLink

2008-10-07 Thread Tim Koopmans

Natasha, there's an API already available which you could use as a
client. As Manish has mentioned, it would be relatively simple to
execute test cases. To update, you could just use the sample ruby
client implementation ... Do you have specific functionality in mind
that you're looking to implement? If so, it might be worth mentioning
so some of us can have a hack at it =)

Regards,
Tim Koopmans

snip
#!/usr/bin/env ruby

# Testlink API Sample Ruby Client implementation
require 'xmlrpc/client'

class TestlinkAPIClient
  # substitute your server URL Here
  SERVER_URL = http://qa/testlink_sandbox/api/xmlrpc.php;

  def initialize(dev_key)
@server = XMLRPC::Client.new2(SERVER_URL)
@devKey = dev_key
  end

  def reportTCResult(tcid, tpid, status)
args = {devKey=@devKey, tcid=tcid, tpid=tpid,
status=status}
@server.call(tl.reportTCResult, args)
  end
end

# substitute your Dev Key Here
client = TestlinkAPIClient.new(f2a979d533cdd9761434bba60a88e4d8)
# Substitute for tcid and tpid that apply to your project
result = client.reportTCResult(1132, 56646, f)
# Typically you'd want to validate the result here and probably do
something more useful with it
puts result was: %s %(result)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---