See3PO Image Transferring Testing

1 view
Skip to first unread message

Nick Wang

unread,
May 2, 2010, 3:53:22 PM5/2/10
to see...@googlegroups.com


> Hi, guys,
>
> I added something to See3PO project Host.cs.
> (1) public Host() //A constructor without UI
> (2) some if (m_UI != null) to make testing work without UI
> (3) A code section between
> //
> ***
> ***
> ***
> ***
> ***
> **********************************************************************
> // Image Transferring
> //
> ***
> ***
> ***
> ***
> ***
> **********************************************************************
> Codes about image transferring
> //
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> *********************************************************************
> // Private Attributes
> //
> ***
> ***
> ***
> ***
> ***
> ***
> ***
> **********************************************************************
>
> (4) a testing project See3POTest
> (4.1) HostTest.cs includes RequestImageTest() method.
> The method first use Host() to initialize a instance of host,
> ToggleConnection(), (but actually start listening, not connecting)
> Since we need to click "Connections->Connect to Remote Brain" in
> localbrainwin UI,
> System.Threading.Thread.Sleep(5000); is used to allow you to click
> it in 5 secs.
> Then RequestImage() is executed.
> We also need to give it some time to receive image (Thread.Sleep
> (5000); )
> Finally, ToggleConnection() is used again and localbrainwin UI go
> back to Idle.
>
> The image file could be found in See3PO\TestResults\... (the testing
> Out folder)
>
> I didn't commit it to SVN. (it's in attachment)
> Frank/Jacky:
> Could you test it and make sure that I didn't screw up anything?
>
> Thanks
>
> Nick
>
> --
> Hsueh-Cheng Wang,
> PhD Candidate,
> Department of Computer Science,
> University of Massachusetts at Boston, MA,
> USA
See3PO.rar

Frank Marino

unread,
May 2, 2010, 4:02:15 PM5/2/10
to see...@googlegroups.com
Nick, could you commit this to SVN so that I can merge the files? 

On Sun, May 2, 2010 at 3:53 PM, Nick Wang <hchen...@gmail.com> wrote:
Hi, guys,

I added something to See3PO project Host.cs.
(1) public Host() //A constructor without UI
(2) some if (m_UI != null) to make testing work without UI
(3) A code section between
      //*************************************************************************************
      //       Image Transferring
      //*************************************************************************************
Codes about image transferring
//************************************************************************************************
//       Private Attributes
//*******************************************************************************************

(4) a testing project See3POTest
(4.1) HostTest.cs includes RequestImageTest() method.
The method first use Host() to initialize a instance of host,
ToggleConnection(), (but actually start listening, not connecting)
Since we need to click "Connections->Connect to Remote Brain" in
localbrainwin UI,
System.Threading.Thread.Sleep(5000); is used to allow you to click it in 5 secs.
Then RequestImage() is executed.
We also need to give it some time to receive image (Thread.Sleep(5000); )

Nick Wang

unread,
May 2, 2010, 4:31:34 PM5/2/10
to see...@googlegroups.com
The files are in attachment. I just wanna make sure that none modify See3PO project in the past a few days. 

Frank Marino

unread,
May 2, 2010, 4:53:48 PM5/2/10
to see...@googlegroups.com
Right, but it's easier to merge conflicting files though SVN than it is manually. 

Frank Marino

unread,
May 2, 2010, 4:53:59 PM5/2/10
to see...@googlegroups.com
I've committed all of my changes, so it shouldn't be a problem. 

Nick Wang

unread,
May 2, 2010, 10:27:08 PM5/2/10
to see...@googlegroups.com
When I tried to commit the code.
I got the following message:

Modified: F:\Nick\UMassBoston\CS682\SVN\SourceCode\See3PO\Host\Host.cs
Error: Commit failed (details follow):
Error: File or directory 'Host\Host.cs' is out of date; try updating
Error: resource out of date; try updating

I guess SVN is not smart enoght to merge two versions of files.

Frank,
Do you want me to add the codes regarding file transferring to the
current Host.cs now?

Nick

Frank Marino

unread,
May 3, 2010, 8:12:46 AM5/3/10
to see...@googlegroups.com
I'll take a look. 

Frank Marino

unread,
May 3, 2010, 9:26:45 AM5/3/10
to see...@googlegroups.com
Alright, I updated Host to include Nick's changes. Nick, we can't have a Host constructor with no UI, since there are calls to the UI in Host, and allowing an empty constructor would cause crashes. I added an "EmptyUI" class that does nothing, and used this in your test cases. 
Reply all
Reply to author
Forward
0 new messages