Java Vs JavaScript for automation?<\/p>\n
Here are a few factors I would consider:<\/p>\n
– Community support: much more for Java<\/p>\n
– Ease of coding: JavaScript code will be short and easier. However Java would be more capable to scale for very complex and large frameworks.<\/p>\n
– Ease of learning: JavaScript. It’s a procedural language, Java would require learning OOP concepts.<\/p>\n
– Learning content availibility: Java, since it’s the most popular language for automation<\/p>\n
– Integrations: Java, most automation related open source libraries would interface with Java code<\/p>\n
– Interfacing with AUT front end: (this means accessing front end AUT methods, running JQuery \/ JavaScript commands directly). JavaScript would win here naturally. However Java wouldn’t be that difficult either.<\/p>\n
– Long term perspective: learning Java will create more career opportunities because of its wide use<\/p>\n
At the end I must add, depending on how comfortable you are with programming, it’s a good idea to start with a simpler language like JavaScript and python, then move your way up.<\/p>\n
You’ll never (or should never) get stuck with any one language. So pick the one that suits your current situation.<\/p>\n<\/div>