TS 74 CNDfullremote

(Difference between revisions)
(Created page with '==Full Remote Test Specification == '''Author:''' [mailto:Alexander.Pepin@oracle.com Alexander Pepin] <br> '''Version:''' 0.1 <br> '''Lastupdate:''' <br> '''Introduction:''' Tes…')
(Full Remote Test Specification)
 
(7 intermediate revisions not shown)
Line 1: Line 1:
==Full Remote Test Specification ==
==Full Remote Test Specification ==
'''Author:''' [mailto:Alexander.Pepin@oracle.com Alexander Pepin] <br>
'''Author:''' [mailto:Alexander.Pepin@oracle.com Alexander Pepin] <br>
-
'''Version:''' 0.1 <br>
+
'''Version:''' 0.2 <br>
-
'''Lastupdate:''' <br>
+
'''Lastupdate:''' 2013/08/12 <br>
 +
'''Editor:''' [mailto:supunliyanage@netbeans.org Don Liyanage] <br>
'''Introduction:''' Test specification for full remote development feature in CND Pack 7.4.<br>
'''Introduction:''' Test specification for full remote development feature in CND Pack 7.4.<br>
__TOC__
__TOC__
Line 9: Line 10:
Purpose: <br>
Purpose: <br>
Comment: <br>
Comment: <br>
-
Setup: Remote host with compiler collection and ssh-access. <br>
+
Setup: Remote host with GNU compiler collection and ssh access. <br>
-
Remote development requires bash to be installed at the remote host (see [[FaqCplusPlusRemoteInitializeFail | FaqCplusPlusRemoteInitializeFail]]).<br>
+
-
# {{testcase|Build a Project at a Remote Host}}
+
# {{testcase|Create and Build a full remote Project}}
-
##New Project > Sample > C/C++ > Welcome.<br> '''NB:''' Directory where project is created have to be accessible from '''both''' hosts.
+
##Right-click on the main toolbar and switch on Remote toolbar <br> {{result|Remote toolbar appears}}
-
##Right-click on project node and select Remote Development > Manage Hosts... from popup menu <br> {{result|Development Host Manager dialog box appears}}
+
##Expand 'Select Default Host' combobox on the Remote toolbar and choose Manage Hosts from the list <br> {{result|Build Host Manager dialog box appears}}
-
##Click Add button <br> {{result|New Remote Development Host wizard appears }}
+
##Click Add button <br> {{result|New Remote Host Setup wizard appears }}
-
##Step1 (Select Host): type remote host name (e.g. gerta) and click Next button
+
##Step1 (Select Host): type the remote host name (e.g. gerta) and click Next button <br>'''NB:''' Be sure that the host is reachable otherwise check Proxy Settings under the list of hosts. Moreover Please make-sure port 22 is open through the Firewall and NB IDE can access the Port 22 <br>
-
##Step2 (Setup Host): set login and password to access selected host and click Connect <br> '''NB:''' If you get "Reply from SOCKS server has bad version" see  [[FaqCplusPlusRemoteSocketException | FaqCplusPlusRemoteSocketException]]<br>
+
##Step2 (Setup Host): set login and choose Password or SSH Key File authentication type then press Next. If you chose Password then type the password in Authentication dialog. <br>  
-
  [[Image:http://wiki.netbeans.org/attach/TS_67_CNDeasyremote/Screenshot-New Remote Development Host.png]] <br>
+
##Step3 (Summury): Select GNU as Default Tool Collection and choose appropriate 'Access Project Files via' (e.g. Automatic copying) then click Finish button <br>  
-
  <br>
+
##Click on Set As Default button then on OK to close Build Host Manager dialog
-
##Step3 (Summury): Select toolchain and click Finish button
+
##Check that 'gerta' is set as a Default Host on the Remote toolbar.
-
  [[Image:http://wiki.netbeans.org/attach/TS_67_CNDeasyremote/Screenshot-New Remote Development Host-1.png]] <br>
+
##Click 'Create Remote C/C++ Project' on the Remote toolbar and create a new project via Sample > C/C++ > Quote. <br>
-
  <br>
+
##Build the project and verify that the project was created and built on the remote host
-
##Right-click on project node and select Remote Development > 'gerta' to set remote host gerta as target
+
#* {{result|EXPECTED RESULT: the project should be created and built on the remote host}}
-
##Build the project and verify that the project was built for remote platform
+
# {{testcase|Run and Debug a full remote Project}}
-
#* {{result|EXPECTED RESULT: the project should be built for remote platform}}
+
##Run the full remote Quote project, use Output window to intearact with Quote application <br> {{result|Quote runs on the remote host}}
-
  <br>
+
##Open quote.cc in the editor and make some changes in the code (e.g. add a new line containing <pre>cout << "A new line" << endl;</pre> in the beginning of 'main() function) then save changes <br>
-
 
+
##Run Quote again <br> {{result|Quote runs and 'A new line' message appears}}
-
<br>
+
##Right-click on the project node and call Step Into from the context menu <br> {{result|Debugger starts and executions stops in the main function in line 119}}
 +
##Set a Line breakpoint in line 134 and press Continue, enter any name in Output window when you are asked for. <br> {{result|Execution stops at the breakpoint in line 134}}
 +
##Open Variables and check that 'customerName' is the same as was entered.
 +
##Do Step into.  <br> {{result|Debugger steps into 'getDiscountFor' function}}
 +
##Finish debugging. <br> {{result|Debug session finishes}}
 +
# {{testcase|Delete a full remote Project}}
 +
##Right-click on the project node and call Delete. Confirm deletion of the project folder in the Delete Project dialog.
 +
#* {{result|EXPECTED RESULT: The project folder should be deleted on the remote host}}

Current revision as of 14:33, 12 August 2013

Full Remote Test Specification

Author: Alexander Pepin
Version: 0.2
Lastupdate: 2013/08/12
Editor: Don Liyanage
Introduction: Test specification for full remote development feature in CND Pack 7.4.

Contents


Test suite: Full Remote

Purpose:
Comment:
Setup: Remote host with GNU compiler collection and ssh access.

  1. Create and Build a full remote Project
    1. Right-click on the main toolbar and switch on Remote toolbar
      Remote toolbar appears
    2. Expand 'Select Default Host' combobox on the Remote toolbar and choose Manage Hosts from the list
      Build Host Manager dialog box appears
    3. Click Add button
      New Remote Host Setup wizard appears
    4. Step1 (Select Host): type the remote host name (e.g. gerta) and click Next button
      NB: Be sure that the host is reachable otherwise check Proxy Settings under the list of hosts. Moreover Please make-sure port 22 is open through the Firewall and NB IDE can access the Port 22
    5. Step2 (Setup Host): set login and choose Password or SSH Key File authentication type then press Next. If you chose Password then type the password in Authentication dialog.
    6. Step3 (Summury): Select GNU as Default Tool Collection and choose appropriate 'Access Project Files via' (e.g. Automatic copying) then click Finish button
    7. Click on Set As Default button then on OK to close Build Host Manager dialog
    8. Check that 'gerta' is set as a Default Host on the Remote toolbar.
    9. Click 'Create Remote C/C++ Project' on the Remote toolbar and create a new project via Sample > C/C++ > Quote.
    10. Build the project and verify that the project was created and built on the remote host
    • EXPECTED RESULT: the project should be created and built on the remote host
  2. Run and Debug a full remote Project
    1. Run the full remote Quote project, use Output window to intearact with Quote application
      Quote runs on the remote host
    2. Open quote.cc in the editor and make some changes in the code (e.g. add a new line containing
      cout << "A new line" << endl;
      in the beginning of 'main() function) then save changes
    3. Run Quote again
      Quote runs and 'A new line' message appears
    4. Right-click on the project node and call Step Into from the context menu
      Debugger starts and executions stops in the main function in line 119
    5. Set a Line breakpoint in line 134 and press Continue, enter any name in Output window when you are asked for.
      Execution stops at the breakpoint in line 134
    6. Open Variables and check that 'customerName' is the same as was entered.
    7. Do Step into.
      Debugger steps into 'getDiscountFor' function
    8. Finish debugging.
      Debug session finishes
  3. Delete a full remote Project
    1. Right-click on the project node and call Delete. Confirm deletion of the project folder in the Delete Project dialog.
    • EXPECTED RESULT: The project folder should be deleted on the remote host
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo