For instance for driving web-apps there are also different
possibilities to drive your application: ie. through selenium or
through watri etc...
However I don't know what remoting api you would use in your case.
Why can't you deploy the specflow-tests and the ui on the same machine
for testing?
Regards
jonas
On Thu, Jan 13, 2011 at 10:22 AM, psn <knka...@gmail.com> wrote:
> I tried SpecFlow and was successful in automating our UI application
> which is in WPF. Here I installed the application also in the same PC
> where SpecFlow Test environment was setup and got the UI Automation to
> work.
>
> Buf if the UI application is in a remote PC and SpecFlow Test System
> is in the Test PC, is there any way that I can automate the UI
> application remotely. Is there any way to automate the UI application
> and send the UI event clicks using some server/client configuration.
>
> Thanks,
> psn
>
--
mail: jonas...@gmail.com
web: www.jonasbandi.net
blog: blog.jonasbandi.net
twitter: twitter.com/jbandi
If this is a question about running the SpecFlow scenarios on a build
server, without VisualStudio, then of course you can and should do
this. There is a MSBuild task for SpecFlow that you can use to
generate the code behind.
Since the scenarios are pure NUnit/MSTests at runtime you can automate
them on your build-server as any other tests with the given framework.
But this has nothing to do with running steps and app on defferent PCs...
We think it is a reduction of accidental complexity that you dont need
any server and communication (wire protocol) compared to Cuke4Nuke.
On Fri, Jan 14, 2011 at 7:13 AM, psn <knka...@gmail.com> wrote:
> Initially we tried to do UI automation using Cuke4Nuke and white
> server.
> Here the Feature Files are written in Ruby and the StepDefinitions are
> written in C# on VS environment.Cucumber.wire was used to communicate
> to the Target Instrument using Wireprotocol over the network.Hence the
> application was present in the instrument while the Test System was
> present in the PC. Specific dll's of the compiled Step Definition
> files were loaded in the Target instrument to communicate with the
> test PC.
>
> After coming across SpecFlow where in the Feature Files and Step
> Definitions are in VS environment we are in the process of discussions
> to finalize as to whether we need to migrate to VS environment.Our
> intention is have something similar to Cuke4Nuke server and retain the
> Test environment in the PC and perform UI Automation.
>
> Hence I am looking out for similar support in SpecFlow
> environment.Please let me know if there is any method which I can
> explore in SpecFlow Setup
>
> Thanks,
> psn
>
> On Jan 13, 5:39 pm, Jonas Bandi <jonas.ba...@gmail.com> wrote:
>> This is not a typical usage scenario.
>> Basically SpecFlow is only responsible for the "literal automation" of
>> your test steps.
>> If you have a programmatic api for driving you UI on the remote PC,
>> you can implement your steps with that.
>>
>> For instance for driving web-apps there are also different
>> possibilities to drive your application: ie. through selenium or
>> through watri etc...
>>
>> However I don't know what remoting api you would use in your case.
>>
>> Why can't you deploy the specflow-tests and the ui on the same machine
>> for testing?
>>
>> Regards
>> jonas
>>
>> On Thu, Jan 13, 2011 at 10:22 AM, psn <knkavi...@gmail.com> wrote:
>> > I tried SpecFlow and was successful in automating our UI application
>> > which is in WPF. Here I installed the application also in the same PC
>> > where SpecFlow Test environment was setup and got the UI Automation to
>> > work.
>>
>> > Buf if the UI application is in a remote PC and SpecFlow Test System
>> > is in the Test PC, is there any way that I can automate the UI
>> > application remotely. Is there any way to automate the UI application
>> > and send the UI event clicks using some server/client configuration.
>>
>> > Thanks,
>> > psn
>>
>> --
>> mail: jonas.ba...@gmail.com
--
mail: jonas...@gmail.com
Still, you have to deploy the steps and white to the remote PC ... so
you could also deploy mstest (or Nunit) along with it and run the
specflow tests (which could be generatd and compiled on another
machine), could you not?
--
With NUnit you can run the SpecFlow Tests on any machine, you only
have to deploy NUnit itself (standalone dlls and exe), the test-dlls
and the application under test (of course).
You then can run the SpecFlow tests with NUnit via simple execution of
the exe (or any automation of that, ie. via build-server)
I actually expect this should be equally simple with MSTest. MSTest
also gives you the MSTest.exe. I expect that to work standalone too,
but I never actually checked.
I never heard of the Visual Studio Team Agent. But judging from the
name I think this is only needed if you want to run the remotely
deployed tests from your local Visual Studio... which I think is not
your initial scenario, or is it?
--
mail: jonas...@gmail.com
specflow.exe generateall BookShop.AcceptanceTests.csproj
However you need the whole project for this to work, not only
stand-alone feature files.
There is also a MSBuild Task in the specflow distribution that lets
you automate this task.
--
mail: jonas...@gmail.com