I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the methods that have this characters absent. Also, I need to change the case of the first letter of the method following 'test'.
for eg:
Please help me in accomplishing this task and thank you for your help.
Last edited by royalibrahim; 08-23-2012 at 07:38 AM..
hi,
I am new to this forum and this is my first post. I am not too familiar with scripting so I will be spending a lot of time here.
I am trying to understand a ksh script.
NSCA=/bin/send_nsca
if ]
What does the -e check for? (3 Replies)
How do I ignore the case in an if condition..?
EDIT: I put this in the wrong board...this is a linux script.
if
then
echo "Same name."
else
echo "Different name."
fi (1 Reply)
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Hello,
I need help in creating a PERL script for parsing test result files to get the results (pass or fail). Each test case execution generates a directory with few files among which we are interested in .result file.
Lets say Testing is home directory. If i executed 2 test cases. It will... (4 Replies)
I want to locate directories that are upper, lower or have both upper and lower cases.
What I have is:
find /tmp/$var2 -type d' " ); && echo "host case is incorrect" || echo "host case is correct"
This actually is part of a larger script and it does work but the problem is that it... (3 Replies)
I am trying to get a script to print out whether a directory is lowercase uppercase or both. This is what I've got so far:
echo -e read "enter name"
read server
for DIR in $(find /tmp/$server -type d -prune | sed 's/\.\///g');do if expr match "$server" "*$" > /dev/null; then echo "$server -... (7 Replies)
Hi,
I want to do caseless string comparision using test command
for eg: Ind_f="y"
test "$Ind_f" == "y|Y"
i tried , ** , nothing worked.
any thoughts on how to do case insensitive string comparison using test command without converting to any particular case using typeset or tr? (8 Replies)
Hello,
I am testing a new software and i need to run also one test case to prove that the device is resistant to DOS attack. I tried using some tools to perform attacks to the machine but i am a little bit confused what i really have to check to prove that the machine have protection against... (0 Replies)
Discussion started by: @dagio
0 Replies
LEARN ABOUT OPENSOLARIS
test-speech
test-speech(1) User Commands test-speech(1)NAME
test-speech - a test application provided by gnome-speech
DESCRIPTION
test-speech is a simple test application provided by gnome-speech. It is used to verify the driver for a speech engine, e.g., freetts-syn-
thesis-driver, is funcioning properly, in order to make sure users can activate and interact with the gnome-speech driver successfully.
GNOME Speech aims to be a general interface to various text-to-speech engines for the GNOME desktop. It allows the simple speaking of text,
as well as control over various speech parameters such as speech pitch, rate, and volume.
FILES
The following files are used by this application:
/usr/bin/test-speech a test application provided by gnome-speech
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-a11y-speech |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO libgnomespeech(3), attributes(5)NOTES
gnome-speech is written by Marc Mulcahy and Michael Meeks.
SunOS 5.11 3 Dec 2006 test-speech(1)