Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
definite committed Jan 29, 2013
1 parent 3c96b77 commit 6f2fef9
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 15 deletions.
14 changes: 7 additions & 7 deletions concordion/src/GlossaryUpload.txt
Expand Up @@ -21,20 +21,20 @@
== notes
Propose: Glossarist should be able to upload the glossary

Feature to Be Tested:
* Glossary list.
* Glossary upload with csv.
* Glossary upload with po.
=== Feature to Be Tested
* Glossary list.
* Glossary upload with csv.
* Glossary upload with po.

Feature NOT to Be Tested:
=== Feature NOT to Be Tested
* Glossary delete.

== setup

=== Requires
* A glossarist role account.
* A po formatted glossary file for Lang1 (e.g c:set="#Lang1"[zh_TW] )
* A CSV formatted glossary file that contains Lang2 and Lang3 (eg
* A po formatted glossary file for Lang1 (e.g c:set="#Lang1"[zh_TW] )
* A CSV formatted glossary file that contains Lang2 and Lang3 (eg
c:set="#Lang2"[es_ES],
c:set="#Lang3"[zh_CN])

Expand Down
73 changes: 73 additions & 0 deletions concordion/src/client/ClientProjectCreate.txt
@@ -0,0 +1,73 @@
= Client:Project:Create
:email: dchen@redhat.com
:revdate: 2013/01/29
:revnumber: 2.2

== attributes
:priority: P3
:status: CONFIRMED
:automated:
:testplan_reference: Zanata-full
:categoryname: Functional
:component:
:defaulttester:
:role: user
:tag:
:impact: Medium
:probability: Medium
:risk: 4
:taxonomy: 10100

== notes
Propose: Any user should be able to create any project and user with
@client@.

=== Feature to Be Tested
* Create project.

=== Feature NOT to Be Tested

== setup

=== Requires
* A user role account.
* An API key is generated for the user.
* $HOME/.config/zanana.ini is NOT setup.
* Project Id such as @PROJ1@
* Project name such as @PROJ1NAME@
* Project description such as @PROJ1DESC@

== action

In command line:

=== Authentation
1. Create project without any
2. Click "More" -> "Glossary"
exp: Page "Glossary" should be loaded.

=== Upload PO Glossary file
1. Click "Upload".
2. Upload the po file using the file dialog.
exp: Upload should be succeed.
3. Look at the Glossary List.
exp: Glossary should have Langauage c:assertEquals="hasGlossary(#Lang1)"[zh_TW].

=== Upload CSV Glossary file
1. Click "Upload".
2. Upload the csv file using the file dialog.
exp: Upload should be succeed.
3. Look at the Glossary List.
$$$$
Glossary should have Langauage c:assertEquals="hasGlossary(#Lang2)"[es_ES].
and c:assertEquals="hasGlossary(#Lang3)"[zh_CN].
$$$$

== expectedresults
Proceed as described in Action.

== breakdown


// vim: set syntax=asciidoc:

16 changes: 8 additions & 8 deletions concordion/txt2html.sh
Expand Up @@ -49,20 +49,20 @@ if [ -z $target ];then
exit -1
fi

if [ -z $forceOverwrite ];then
if [ ! -r $src ];then
echo "Cannot read $src" > /dev/stderr
exit -1
fi
if [ ! -r $src ];then
echo "Cannot read $src" > /dev/stderr
exit -1
fi

if [ -d $target ];then
target="$target/$name.html"
fi

if [ -e $target ];then
echo "Target file $target already exists" > /dev/stderr
exit -2
if [ -z $forceOverwrite ];then
if [ -e $target ];then
echo "Target file $target already exists" > /dev/stderr
exit -2
fi
fi

scriptDir=`dirname $0`
Expand Down

0 comments on commit 6f2fef9

Please sign in to comment.