Christoph - AndroidGuitar
Posted by matthew.green on 2012-03-12 07:31
Hey,
Attached is the first stage of the AndroidGuitar command line interface. All you have to do is the run ./AndroidGuitar (I've attached the necessary files for it to run). For now just look the code over or just test it out yourself. On tuesday i can provide you with my diagrams and psuedo code to assist you in testing. At this juncture, it's pretty small, so shouldn't have much trouble navigating it.
Note In the files you will see run_cmds.txt and app_list.txt. They need to be hidden for them to work. Just type mv filename .filename
Green
Attached is the first stage of the AndroidGuitar command line interface. All you have to do is the run ./AndroidGuitar (I've attached the necessary files for it to run). For now just look the code over or just test it out yourself. On tuesday i can provide you with my diagrams and psuedo code to assist you in testing. At this juncture, it's pretty small, so shouldn't have much trouble navigating it.
Note In the files you will see run_cmds.txt and app_list.txt. They need to be hidden for them to work. Just type mv filename .filename
Green
run_cmds.txt | 143 Bytes | |
AndroidGuitar.sh | 8.18 KB | |
app_list.txt | 16 Bytes |
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Androidguitar is powered by Assembla.
21 Comments
By cschulze.usa on 2012-03-16 20:13
By cschulze.usa on 2012-03-16 20:17
I probably won't be able to finish all the test documentation for Phase three before Tuesday morning, sorry for the delay.
By matthew.green on 2012-03-17 00:25
By matthew.green on 2012-03-17 00:27
By cschulze.usa on 2012-03-17 08:24
By cschulze.usa on 2012-03-17 09:43
Is it supposed to stop after typing Help?
When you open a file and press enter without entering any characters you get stuck. (The program doesn't recognize your commands anymore)
After you entered all the information to create a new project the ryb_cmds.txt file becomes visible again.
By cschulze.usa on 2012-03-17 10:10
{
wflag2=0
while [ $wflag2 -eq 0 ]; do
echo "Please enter file name"
read name
grep -w -q $name runcmds.txt
I guess the last part should be run_cmds.txt ?
Also it seems that the run_cmds.txt needs to be visible for that part otherwise it complains.
At the moment it is not deleting any project that I created from the .txt file
By matthew.green on 2012-03-18 00:02
Would it be a lot of effort to make the commands non case sensitive? E.g instead of Yes it would also accept yes, or just y, Y.
Right now, some do , some dont. I'm working on a cleaner way of implementing this without a thousand if else statements.
Can you also check that into svn?
Let me clean up some of the bugs that you sent me and i'll commit it myself.
By brownm04 on 2012-03-18 03:04
This checks the input and ignores case sensitivity. The first option matches y, Y, yes, yeS, etc, as well as no input (defaults to yes if nothing entered). The second one requires a n or a no to be explicitly stated, and * is for anything else obviously. Of note, the '' in the y|yes|'' is two single quotes, not a double quote. Afterwards if you want to retain case sensitivity I believe you can add a
Hope this helps.
By cschulze.usa on 2012-03-19 21:29
By matthew.green on 2012-03-20 00:38
By cschulze.usa on 2012-03-20 14:10
They will be textual test cases that look like this:
Test Case: CLI 1, New Project
Tested Requirements : N/A
Tester Christoph
Date 2/20/2012
Pass / Fail Pass
Description Create a new Android Guitar project with correct input value. Tests that the project is created correctly.
Pre-condition The Android Guitar CLI is started and the main menu is shown to the user.
Steps
1. Type on “New ” in console and press enter
2. [Check that the following text appears: “Please enter name of your app’s folder and press [Enter]”]
3. Enter valid application name and press enter
4. [Check that the following text appears: "Please enter the path of your app's main class file and press [Enter]"]
5. Enter valid path and press enter
6. [Check that the following text appears: "Please enter the name of your app's main class [Enter]"]
7. Enter valid class
Expected Results
• The entered data from step 3,5 and 7 appears correctly in the following format:
./adr-sample-workflow-nofaults.sh “application name from step 3” “path from step 5” “class from step 7”
I'll also keep working on the test cases for the code.
By cschulze.usa on 2012-03-20 14:44
By cschulze.usa on 2012-03-20 15:20
E.g. it would show the following
1. Spinner com.aut SpinnnerActivity
2. Spinnerooni com.aut SpinnnerooniActivity
"Enter the number of the project to open it"
By matthew.green on 2012-03-20 15:21
By matthew.green on 2012-03-20 15:28
By cschulze.usa on 2012-03-20 15:40
By matthew.green on 2012-03-20 15:59
By matthew.green on 2012-03-20 16:01
By cschulze.usa on 2012-03-20 16:04
"Are you sure want to delete this command? Yes/No"
-> Suggested alternative: "Are you sure that you want to delete this project? Yes/No"
By cschulze.usa on 2012-03-20 17:08
BUILD FAILED
/home/user/Desktop/android/guitar/build-adr.xml:153: The following error occurred while executing this line:
/home/user/Desktop/android/guitar/build-utils.xml:180: The following error occurred while executing this line:
/home/user/Desktop/android/guitar/build-utils.xml:183: The following error occurred while executing this line:
/home/user/Desktop/android/guitar/build-utils.xml:203: The following error occurred while executing this line:
/home/user/Desktop/android/guitar/build-module-common.xml💯 Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-sun-1.6.0.26/jre"
Sould the script take care of this or do I have to do that manually?