Skip to main content

Distributed test samples for review

3 replies [Last post]
Anonymous

Alexander, team,

Could you please review the update for our "Simple TestSuite" that
includes support for distributed tests.

http://fisheye4.cenqua.com/changelog/cqme/?cs=1173

Basically, two new distributed tests were added:

1. Very simple one: sample/distributed/index.html#Test1
It just sends a command to the remote "CalculatorRemoteServer"
to add 5 to 5. And then verifies that it's 10. :)

2. More advanced one: sample/distributed/index.html#Test2
The test first sends "serverUp" message to the remote component on
Java SE side, then receives the port on where the server has
started, connects to the server and then reads the server
message. Finally, the test compares the received message with the
expected value, and sends "serverDown" message to shut down the
remote server.

Along the way, I updated the build, the READMEs, and removed all the
workarounds and extra files that are not needed for ME FW 1.2.

I verified that the sample works fine on both platforms, MIDP and CDC.

Thanks,
--Vladimir

---------------------------------------------------------------------
To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: meframework-help@cqme.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Alexander Alexeev

Vladimir,

looks good. Is it true that now we have to support two versions of
SimpleTestSuite, one for 1.1.1 and 1.1.2 and another for 1.2?

Thanks,
Alexander

Vladimir Sizikov wrote:
> Alexander, team,
>
> Could you please review the update for our "Simple TestSuite" that
> includes support for distributed tests.
>
> http://fisheye4.cenqua.com/changelog/cqme/?cs=1173
>
> Basically, two new distributed tests were added:
>
> 1. Very simple one: sample/distributed/index.html#Test1
> It just sends a command to the remote "CalculatorRemoteServer"
> to add 5 to 5. And then verifies that it's 10. :)
>
> 2. More advanced one: sample/distributed/index.html#Test2
> The test first sends "serverUp" message to the remote component on
> Java SE side, then receives the port on where the server has
> started, connects to the server and then reads the server
> message. Finally, the test compares the received message with the
> expected value, and sends "serverDown" message to shut down the
> remote server.
>
> Along the way, I updated the build, the READMEs, and removed all the
> workarounds and extra files that are not needed for ME FW 1.2.
>
> I verified that the sample works fine on both platforms, MIDP and CDC.
>
> Thanks,
> --Vladimir
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
> For additional commands, e-mail: meframework-help@cqme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: meframework-help@cqme.dev.java.net

Vladimir Sizikov

Alexander,

Thanks for the review!

On Wed, Jun 06, 2007 at 04:17:38PM +0400, Alexander Alexeev wrote:
> looks good. Is it true that now we have to support two versions of
> SimpleTestSuite, one for 1.1.1 and 1.1.2 and another for 1.2?

Yes, there could be differences. But since the samples are now
effectively bound to particular ME Framework (being inside the FW
branches), I don't see big problems with that.

Those who use FW 1.1.2 will pick up the samples from ME FW 1.1.2
branch (once we create samples in ME FW 1.1.2), and those who use FW
1.2 (trunk), will pick up the samples from the trunk.

I think it's better that way rather then keep forever workarounds and quick
fixes needed by older ME FW versions.

Do I understand the situation correctly, you ARE going to create
samples in ME FW 1.1.2 branch too, aren't you?

Thanks,
--Vladimir

>
> Thanks,
> Alexander
>
> Vladimir Sizikov wrote:
> >Alexander, team,
> >
> >Could you please review the update for our "Simple TestSuite" that
> >includes support for distributed tests.
> >
> >http://fisheye4.cenqua.com/changelog/cqme/?cs=1173
> >
> >Basically, two new distributed tests were added:
> >
> >1. Very simple one: sample/distributed/index.html#Test1
> > It just sends a command to the remote "CalculatorRemoteServer"
> > to add 5 to 5. And then verifies that it's 10. :)
> >
> >2. More advanced one: sample/distributed/index.html#Test2
> > The test first sends "serverUp" message to the remote component on
> > Java SE side, then receives the port on where the server has
> > started, connects to the server and then reads the server
> > message. Finally, the test compares the received message with the
> > expected value, and sends "serverDown" message to shut down the
> > remote server.
> >
> >Along the way, I updated the build, the READMEs, and removed all the
> >workarounds and extra files that are not needed for ME FW 1.2.
> >
> >I verified that the sample works fine on both platforms, MIDP and CDC.
> >
> >Thanks,
> > --Vladimir
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
> >For additional commands, e-mail: meframework-help@cqme.dev.java.net
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: meframework-help@cqme.dev.java.net

Alexander Alexeev

Vladimir,

> Do I understand the situation correctly, you ARE going to create
> samples in ME FW 1.1.2 branch too, aren't you?

Sure.

Thanks,
Alexander

Vladimir Sizikov wrote:
> Alexander,
>
> Thanks for the review!
>
> On Wed, Jun 06, 2007 at 04:17:38PM +0400, Alexander Alexeev wrote:
>> looks good. Is it true that now we have to support two versions of
>> SimpleTestSuite, one for 1.1.1 and 1.1.2 and another for 1.2?
>
> Yes, there could be differences. But since the samples are now
> effectively bound to particular ME Framework (being inside the FW
> branches), I don't see big problems with that.
>
> Those who use FW 1.1.2 will pick up the samples from ME FW 1.1.2
> branch (once we create samples in ME FW 1.1.2), and those who use FW
> 1.2 (trunk), will pick up the samples from the trunk.
>
> I think it's better that way rather then keep forever workarounds and quick
> fixes needed by older ME FW versions.
>
> Do I understand the situation correctly, you ARE going to create
> samples in ME FW 1.1.2 branch too, aren't you?
>
> Thanks,
> --Vladimir
>
>> Thanks,
>> Alexander
>>
>> Vladimir Sizikov wrote:
>>> Alexander, team,
>>>
>>> Could you please review the update for our "Simple TestSuite" that
>>> includes support for distributed tests.
>>>
>>> http://fisheye4.cenqua.com/changelog/cqme/?cs=1173
>>>
>>> Basically, two new distributed tests were added:
>>>
>>> 1. Very simple one: sample/distributed/index.html#Test1
>>> It just sends a command to the remote "CalculatorRemoteServer"
>>> to add 5 to 5. And then verifies that it's 10. :)
>>>
>>> 2. More advanced one: sample/distributed/index.html#Test2
>>> The test first sends "serverUp" message to the remote component on
>>> Java SE side, then receives the port on where the server has
>>> started, connects to the server and then reads the server
>>> message. Finally, the test compares the received message with the
>>> expected value, and sends "serverDown" message to shut down the
>>> remote server.
>>>
>>> Along the way, I updated the build, the READMEs, and removed all the
>>> workarounds and extra files that are not needed for ME FW 1.2.
>>>
>>> I verified that the sample works fine on both platforms, MIDP and CDC.
>>>
>>> Thanks,
>>> --Vladimir
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
>>> For additional commands, e-mail: meframework-help@cqme.dev.java.net
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
> For additional commands, e-mail: meframework-help@cqme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: meframework-help@cqme.dev.java.net