convert integer to corresponding ascii value [message #1070209] |
Wed, 17 July 2013 08:59  |
Eclipse User |
|
|
|
Hi,
I am quite new to Jubula and setting up my first Jubula- Test-Project.
The target of the testing is a Java -Swing-Application.
One step to test is the proper functioning of a mnemonic: the label for a test field has a mnemonic (pressing this key leads to getting the focus to this field).
To find out the mnemonic, I am using the "Store Property" - Action Type. The PROPERTY NAME is "displayedMnemonic". I store the property to a variable called "myMnemonic". This works fine.
Unfortunately, the "displayedMenmonic" property in Java is an Integer value: Java converts it , when using, to the corresponding letter ((f.e. 69 => "E")).
Therefore, the "myMnemonic" variable contains now "69" instead of "E".
To test the functioning of the Mnemonic, I use the "Key Combination" - Action Type. This Action Type takes as Input the parameter "BASE KEY". I use in my tests the content of "myMnemonic" as "$myMnemonic".
Because Jubula the "hits the keys "69" instead of "E", the step fails.
My Question:
- Can the input for BASE_KEY somehow masked to tell Jubula to use the char according to the ascii table instead of the decimal "69" ?
- Among the (unfortunately only few) internal functions , called by ? (f.e. ?add(var1, var2)) I could not find any type conversion. If I would write a short function, how could I integrate it to Jubula, in order to get it called by ?myFunction ?
- Is there any other possibility in Jubula to convert integer to char ?
Thank you in advance for your help and support.
Best regards
Susanne
|
|
|
|
Re: convert integer to corresponding ascii value [message #1086744 is a reply to message #1070604] |
Wed, 14 August 2013 13:01  |
Eclipse User |
|
|
|
Hallo Alex.
Thank you a lot for your answer.
In the meantime I got time to try the example out (JSLider).
I installed the toolkit plugin and the fragment.
And tried it with the JSLider AUT.
Unfortunately, after starting of the AUT agent and the AUT I could not start the observation mode /mapping mode. (Both buttons stay "gray").
Unfortunately , I could not find any error message.
Where may I search for the error ?
Thank you a lot in advance for your help.
Best regards
Susanne
|
|
|
Powered by
FUDForum. Page generated in 0.05683 seconds