Odin Technology - Automated Software Testing

Axe Test Automation Platform

General discussion relating to the Axe Test Automation Platform from Odin Technology

Posts by Odin employees marked:

Max length of test names using Selenium & Java?

Hi

I am using AXE v3.1 and have come up against the following error during the build process at compilation stage:

40_04_08_01_7.java:11: <identifier> expected
public class 40_04_08_01_7

This seems to only affect test names of length 13 characters and above - is there a restriction in this regard?  12 characters seems a bit short to me - is there another issue I can look at to investigate further?

Many thanks

Mark
Mark Winspear Send private email
Wednesday, July 20, 2011
 
 
Hi Mark,

There is no restriction in Axe on the length of the test id. However, since the test id is used for the class name your test id must conform to the rules of the underlying language i.e. Java. Java identifiers must start with a letter.
See http://stackoverflow.com/questions/65475/valid-characters-in-a-java-class-name for more info.

Sam
Sam Warwick Send private email
Thursday, July 21, 2011
 
 
Thanks Sam - adding an alpha character to the 'id' in the test file did the trick as suggested
Mark Winspear Send private email
Thursday, July 28, 2011
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics