<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Acceptance Tests</title><link>https://sourceforge.net/p/ndas/wiki/Acceptance%2520Tests/</link><description>Recent changes to Acceptance Tests</description><atom:link href="https://sourceforge.net/p/ndas/wiki/Acceptance%20Tests/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 25 Mar 2013 18:38:13 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ndas/wiki/Acceptance%20Tests/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Acceptance Tests modified by Sam Daignault</title><link>https://sourceforge.net/p/ndas/wiki/Acceptance%2520Tests/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -16,12 +16,7 @@
 2. In the Eclipse Package Explorer, right click on the COSC470Project folder and choose Run As &gt; Android Application.
 If an error appears stating no compatible AVDs were found, click yes, and select the “Launch a new Android Virtual Device” radio button. Then select the previously created AVD. Also check the box at the bottom that says “Use same device for future launches”, and click OK.

-
-
-
-
-
-
+![1.png](https://sourceforge.net/projects/ndas/files/acceptance%20test/1.png)

@@ -52,16 +47,22 @@
 5. Users can also view a history of their sales calls (open and closed) via the main menu.

 #iOS Acceptance Testing
-1. Login to the CISX Server and Launch Xcode
-2. Open the NDAS Project from recent projects. (This is a fully integrated copy of the code. All iOS code has been merged into this trunk).
-3. Select iPhone 6.0 Simulator next to the stop button.  
-4. Click Run  
-5. The Project will build. Click on the Create New Business Button.
-6. Fill out the form.
-7. Click the Register the Business Button
-8. Click Login Button
-9. Enter the information for the account you just created.
-10.    Select Sign in.
-11.    If the code is successful, you will move to a new screen. If not, you will be presented with an error Dialogue.
+1. Login to the CISX Server (10.1.144.8)
+2. Launch XCode
+3. Select ‘Connect to a repository’ if you haven’t already imported the repository 
+4. Enter the URL : git://git.code.sf.net/p/ndas/code 
+5. Save the repository to ~/Documents/ndas 
+6. Once done importing, open a new Finder window, and navigate to ~/Documents/ndas/ios/ndas and open ndas.xcodeproj (this will launch the project in Xcode)
+7. Select iPhone 6.0 Simulator next to the stop button.  ![2.png](https://sourceforge.net/projects/ndas/files/acceptance%20test/2.png)
+
+8. Click Run  ![3.png](https://sourceforge.net/projects/ndas/files/acceptance%20test/3.png)
+
+9. You will see the ‘Log in’. Enter your login credentials.
+10.    Select Create Sales Call &gt; Select a Region &gt; Select a Pharmacy
+11.    Add a new Product to the sales call.
+12.    Close the sales call.
+13.    Select the “View Sales Call History” to confirm the sales call has been closed and sent to the server.
+14.    Log out of the App by selecting the back button in the top left of the screen until you reach the login screen.
+

 [Return Home](https://sourceforge.net/p/ndas/wiki/)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam Daignault</dc:creator><pubDate>Mon, 25 Mar 2013 18:38:13 -0000</pubDate><guid>https://sourceforge.net312d57286c120526307f301a4caafdc1feadfddd</guid></item><item><title>WikiPage Acceptance Tests modified by Sam Daignault</title><link>https://sourceforge.net/p/ndas/wiki/Acceptance%2520Tests/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -7,30 +7,49 @@

 #Android Testing Guide
-Note: This document assumes that you have successfully completed [Android Installation Guide](https://sourceforge.net/p/ndas/wiki/Installation%20Guide/#android-installation-guide)
-##Running Unit Tests
-1. Start Eclipse.
-2. In the Eclipse Package Explorer (Window &gt; Show View &gt; Package Explorer), navigate to COSC470Project &gt; src &gt; test
-3. Right click on TestLogin.java and choose Run As &gt; Run Configurations.
-4. In the left hand column expand JUnit and select TestLogin.
-5. Ensure that JUnit 4 is selected as the Test runner.
-6. Click the Classpath tab at the top.
-7. Select “Google APIs [Android ] and click Remove.
-8. Click Apply then Close.
-9. Right Click on TestLogin.java and choose Run As &gt; JUnit Test
-10.    Check the “Use configuration specific settings” checkbox.
-11.    Select Eclipse JUnit Launcher and click OK.
-12.    If prompted to add Firewall exception, do so. You may need to run the test again if the firewall blocked the test the first time.
-13.    Repeat steps 3 to 11 for all other test files except TestDB.java.
-##Running Acceptance Tests
+The project can be imported to Eclipse using the following SVN repository:
+https://svn.code.sf.net/p/cosc470android/code/trunk
+For instructions on how to run the app, see the Android Installation Guide.
+
+##Part 1 – Starting the Emulator
 1. Start Eclipse.
 2. In the Eclipse Package Explorer, right click on the COSC470Project folder and choose Run As &gt; Android Application.
-3. If an error appears stating no compatible AVDs were found, click Yes, and select the “Launch a new Android Virtual Device” radio button. Then select the previously created AVD. Also check the box at the bottom that says “Use same device for future launches”, and click OK.
-4. Wait for the Emulator to start up (this may take some time).
-5. Click OK if the Auto Monitor Logcat prompt appears
-6. Monitor the Eclipse console (Window &gt; Show View &gt; Console) for a message similar to:
+If an error appears stating no compatible AVDs were found, click yes, and select the “Launch a new Android Virtual Device” radio button. Then select the previously created AVD. Also check the box at the bottom that says “Use same device for future launches”, and click OK.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3. Wait for the Emulator to start up (this may take some time).
+4. Click OK if the Auto Monitor Logcat prompt appears
+5. Monitor the Eclipse console (Window &gt; Show View &gt; Console) for a message similar to:
+[2012-11-02 16:40:54 - COSC470Project] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.cosc470project/gui.Login }
+6. Once you see a similar message switch back to your emulator and the program should be running.
+7. Wait for the Emulator to start up (this may take some time).
+8. Click OK if the Auto Monitor Logcat prompt appears
+9. Monitor the Eclipse console (Window &gt; Show View &gt; Console) for a message similar to:
 [2012-11-02 16:40:54 - COSC470Project] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.cosc470project/gui.Login }
 Once you see a similar message switch back to your emulator and the program should be running.
+##Part 2 – Using the Application
+
+1. User should be able to log into the server via the Android App user interface. If there is no active internet connection, and offline login will be attempted. This will succeed if the user has logged in online successfully with their account within the past three days. If the user provides invalid credentials, or has gone past the three day limit, an error message will be displayed.
+
+2. Upon successful login, the user will be taken to the main menu which contains a list view that is populated with all the functions that user has permissions for. The user should only see what they have access to, which simplifies the GUI and makes it less confusing.
+
+3. The user can log out anytime from the main menu by clicking the Logout button. Also, if the application is closed, they will automatically be logged out.
+
+4. Once a user is logged in they can create a new sales call and save it to the database (local or Amazon). First, they choose “Create Sales Call” from the main menu. Then they selected the region and location for which the sales call will apply to. They then add products to the sales call. They can edit each product in the sales call by selecting it from the list view, making the changes, and clicking add. They can also delete an added product by touching and holding down on the desired product. Each time a product is added to a sales call, it is saved to the local database. If they user abandons the sales call, all the information is stored locally and can be edited from the “Sales Call History” option. When the user finishes with the call, they click “Close”, which submits the data to the server, and removes it from the local database.
+
+5. Users can also view a history of their sales calls (open and closed) via the main menu.

 #iOS Acceptance Testing
 1. Login to the CISX Server and Launch Xcode
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam Daignault</dc:creator><pubDate>Mon, 25 Mar 2013 15:24:00 -0000</pubDate><guid>https://sourceforge.netc432ebcebcd3d8ac5b2ea75ec1745c1fd22ed55f</guid></item><item><title>WikiPage Acceptance Tests modified by Sam Daignault</title><link>https://sourceforge.net/p/ndas/wiki/Acceptance%2520Tests/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -1,3 +1,5 @@
+[Return Home](https://sourceforge.net/p/ndas/wiki/)
+
 **Acceptance Tests**
 ====================
 
@@ -41,5 +43,6 @@
 8.	Click Login Button
 9.	Enter the information for the account you just created.
 10.	Select Sign in.
-11.	If the code is successful, you will move to a new screen. If not, you will be presented with an error Dialog.
+11.	If the code is successful, you will move to a new screen. If not, you will be presented with an error Dialogue.
 
+[Return Home](https://sourceforge.net/p/ndas/wiki/)
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam Daignault</dc:creator><pubDate>Mon, 19 Nov 2012 01:12:57 -0000</pubDate><guid>https://sourceforge.nete28cb2e0aa08460db7fce89ef9bb908aed394372</guid></item><item><title>WikiPage Acceptance Tests modified by Sam Daignault</title><link>https://sourceforge.net/p/ndas/wiki/Acceptance%2520Tests/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -0,0 +1,45 @@
+**Acceptance Tests**
+====================
+
+[TOC]
+
+
+#Android Testing Guide
+Note: This document assumes that you have successfully completed [Android Installation Guide](https://sourceforge.net/p/ndas/wiki/Installation%20Guide/#android-installation-guide)
+##Running Unit Tests
+1.	Start Eclipse.
+2.	In the Eclipse Package Explorer (Window &gt; Show View &gt; Package Explorer), navigate to COSC470Project &gt; src &gt; test
+3.	Right click on TestLogin.java and choose Run As &gt; Run Configurations.
+4.	In the left hand column expand JUnit and select TestLogin.
+5.	Ensure that JUnit 4 is selected as the Test runner.
+6.	Click the Classpath tab at the top.
+7.	Select “Google APIs [Android &lt;version&gt;] and click Remove.
+8.	Click Apply then Close.
+9.	Right Click on TestLogin.java and choose Run As &gt; JUnit Test
+10.	Check the “Use configuration specific settings” checkbox.
+11.	Select Eclipse JUnit Launcher and click OK.
+12.	If prompted to add Firewall exception, do so. You may need to run the test again if the firewall blocked the test the first time.
+13.	Repeat steps 3 to 11 for all other test files except TestDB.java.
+##Running Acceptance Tests
+1.	Start Eclipse.
+2.	In the Eclipse Package Explorer, right click on the COSC470Project folder and choose Run As &gt; Android Application.
+3.	If an error appears stating no compatible AVDs were found, click Yes, and select the “Launch a new Android Virtual Device” radio button. Then select the previously created AVD. Also check the box at the bottom that says “Use same device for future launches”, and click OK.
+4.	Wait for the Emulator to start up (this may take some time).
+5.	Click OK if the Auto Monitor Logcat prompt appears
+6.	Monitor the Eclipse console (Window &gt; Show View &gt; Console) for a message similar to:
+[2012-11-02 16:40:54 - COSC470Project] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.cosc470project/gui.Login }
+Once you see a similar message switch back to your emulator and the program should be running.
+
+#iOS Acceptance Testing
+1.	Login to the CISX Server and Launch Xcode
+2.	Open the NDAS Project from recent projects. (This is a fully integrated copy of the code. All iOS code has been merged into this trunk).
+3.	Select iPhone 6.0 Simulator next to the stop button.  
+4.	Click Run  
+5.	The Project will build. Click on the Create New Business Button.
+6.	Fill out the form.
+7.	Click the Register the Business Button
+8.	Click Login Button
+9.	Enter the information for the account you just created.
+10.	Select Sign in.
+11.	If the code is successful, you will move to a new screen. If not, you will be presented with an error Dialog.
+
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam Daignault</dc:creator><pubDate>Wed, 14 Nov 2012 23:48:17 -0000</pubDate><guid>https://sourceforge.net325179c7086e3b7bba49384ada47ad2656e92dcd</guid></item><item><title>WikiPage Acceptance Tests modified by Sam Daignault</title><link>https://sourceforge.net/p/ndas/wiki/Acceptance%2520Tests/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam Daignault</dc:creator><pubDate>Wed, 14 Nov 2012 22:50:54 -0000</pubDate><guid>https://sourceforge.net0cfaccf75112083acfea21bd223a707e5fa756db</guid></item></channel></rss>