You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Phil Scrace <ph...@red-gate.com> on 2009/04/08 09:22:13 UTC

Testing: Simulating multi-user interaction

Hi,

I'm looking to participate in Subversion programme but have a couple of questions first. The main issue is around simulating multiple user interaction; Is there any way of doing this automatically or does anyone have any ideas on how to achieve this?

Are there any sample repositories that I can obtain for testing?

Phil

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1593309

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Re: Testing: Simulating multi-user interaction

Posted by Andy Levy <an...@gmail.com>.
On Wed, Apr 8, 2009 at 06:20,  <we...@tigris.org> wrote:
> Thanks for the response Andy. From an automated testing point of view I'd like to simulate live use of a source control environment automatically. I imagined that there may be a GUI automation framework or commandline tool that may be able to automated check-ins and user operation which basicaly intereacted with one another. I'm new to the Subversion project; any pointers to test repositories, test tools etc would also be greatly appreciated.

Just write wrapper scripts around the svn command-line client. Or use
the Python script suggested by Stephen Butler.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1595602

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


RE: Re: Testing: Simulating multi-user interaction

Posted by we...@tigris.org.
Thanks for the response Andy. From an automated testing point of view I'd like to simulate live use of a source control environment automatically. I imagined that there may be a GUI automation framework or commandline tool that may be able to automated check-ins and user operation which basicaly intereacted with one another. I'm new to the Subversion project; any pointers to test repositories, test tools etc would also be greatly appreciated.

Phil

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1594143

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Testing: Simulating multi-user interaction

Posted by Stephen Butler <sb...@elego.de>.
Quoting Andy Levy <an...@gmail.com>:

> On Wed, Apr 8, 2009 at 05:22, Phil Scrace <ph...@red-gate.com> wrote:
>> Hi,
>>
>> I'm looking to participate in Subversion programme but have a   
>> couple of questions first. The main issue is around simulating   
>> multiple user interaction; Is there any way of doing this   
>> automatically or does anyone have any ideas on how to achieve this?
>
> How do you mean? Does checking out 2 working copies and then using the
> --username Bob switch with svn on one and --username Sue on the other
> not simulate 2 users?
>
>> Are there any sample repositories that I can obtain for testing?
>
> It costs you nothing to create your own repositories.

Hi Phil,

It costs even less (time) to use the Subversion cmdline test framework
A single Python expression creates a generic test repo and checks out
a working copy for you.  Other framework classes handle running svn
commands and comparing the results to your expectations.

See http://subversion.tigris.org/hacking.html#automated-tests for
more info.

If you write a test that reproduces a Subversion bug (a new one or an
existing bug report that has no test yet), by all means submit it to
the dev-list as a patch.

Steve

-- 
Stephen Butler | Software Developer
elego Software Solutions GmbH
Gustav-Meyer-Allee 25 | 13355 Berlin | Germany
fon: +49 30 2345 8696 | mobile: +49 163 25 45 015
fax: +49 30 2345 8695 | http://www.elegosoft.com
Geschäftsführer: Olaf Wagner | Sitz der Gesellschaft: Berlin
Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




Re: Testing: Simulating multi-user interaction

Posted by Andy Levy <an...@gmail.com>.
On Wed, Apr 8, 2009 at 05:22, Phil Scrace <ph...@red-gate.com> wrote:
> Hi,
>
> I'm looking to participate in Subversion programme but have a couple of questions first. The main issue is around simulating multiple user interaction; Is there any way of doing this automatically or does anyone have any ideas on how to achieve this?

How do you mean? Does checking out 2 working copies and then using the
--username Bob switch with svn on one and --username Sue on the other
not simulate 2 users?

> Are there any sample repositories that I can obtain for testing?

It costs you nothing to create your own repositories.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1593990

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].