Loading execOverFolder.sh +1 −1 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,7 @@ if [ "$1" != "" ]; then for file in $DIR/*.robot; do for file in $DIR/*.robot; do filename=$(basename "$file") filename=$(basename "$file") if [[ $filename != *"$EXCLUDE"* ]]; then if [[ $filename != *"$EXCLUDE"* ]]; then python robot2doc/main.py $file "${filename%.*}.docx" $COMMIT python robot2doc/main.py $file "${filename%.*}.docx" "${filename%.*}" $COMMIT else else echo "excluded file: $filename" echo "excluded file: $filename" fi fi Loading robot2doc/testspec.py +4 −3 Original line number Original line Diff line number Diff line Loading @@ -121,11 +121,12 @@ class TestSpec(): file, according to the configured URL prefix configured. file, according to the configured URL prefix configured. ''' ''' empty_par = self.doc.add_paragraph("") empty_par = self.doc.add_paragraph("") note_par = self.doc.add_paragraph("NOTE: Robot code can be found at ") hyperlink = add_hyperlink(note_par, commit + robot_file, commit + robot_file, None, True) commit_url="https://forge.etsi.org/gitlab/nfv/api-tests/raw/"+commit+"/SOL00Y/AAA-API/"+robot_file note_par = self.doc.add_paragraph("NOTE: Robot code can be found at ") note_par.style = self.doc.styles["NO"] note_par.style = self.doc.styles["NO"] hyperlink = add_hyperlink(note_par, commit_url, commit_url, None, True) def add_tp(self, fields, testbehaviour): def add_tp(self, fields, testbehaviour): table = self.doc.add_table(cols=2, rows=1) table = self.doc.add_table(cols=2, rows=1) Loading Loading
execOverFolder.sh +1 −1 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,7 @@ if [ "$1" != "" ]; then for file in $DIR/*.robot; do for file in $DIR/*.robot; do filename=$(basename "$file") filename=$(basename "$file") if [[ $filename != *"$EXCLUDE"* ]]; then if [[ $filename != *"$EXCLUDE"* ]]; then python robot2doc/main.py $file "${filename%.*}.docx" $COMMIT python robot2doc/main.py $file "${filename%.*}.docx" "${filename%.*}" $COMMIT else else echo "excluded file: $filename" echo "excluded file: $filename" fi fi Loading
robot2doc/testspec.py +4 −3 Original line number Original line Diff line number Diff line Loading @@ -121,11 +121,12 @@ class TestSpec(): file, according to the configured URL prefix configured. file, according to the configured URL prefix configured. ''' ''' empty_par = self.doc.add_paragraph("") empty_par = self.doc.add_paragraph("") note_par = self.doc.add_paragraph("NOTE: Robot code can be found at ") hyperlink = add_hyperlink(note_par, commit + robot_file, commit + robot_file, None, True) commit_url="https://forge.etsi.org/gitlab/nfv/api-tests/raw/"+commit+"/SOL00Y/AAA-API/"+robot_file note_par = self.doc.add_paragraph("NOTE: Robot code can be found at ") note_par.style = self.doc.styles["NO"] note_par.style = self.doc.styles["NO"] hyperlink = add_hyperlink(note_par, commit_url, commit_url, None, True) def add_tp(self, fields, testbehaviour): def add_tp(self, fields, testbehaviour): table = self.doc.add_table(cols=2, rows=1) table = self.doc.add_table(cols=2, rows=1) Loading