testing - AutoIt best practices / coding style -
testing - AutoIt best practices / coding style -
i maintain autoit project used automated testing of swing app. tests have 70 files. it's pretty hard maintain code without next "best practices" i'm trying create much functions possible (because of duplicate code) , constants (frequent changes) bud doesn't seem enough.
i have types of functions:
some general functions (insert text logging, select or read combobox.. ) some screen specific functions (fill 1 form.. ) some data/logic function - testing of app logic , info processing test case functions - combines previous 3 implement test scenarioautoit not have classes => no inheritance => oop principles hard aplicate ( :d clearly)
does have experince larger applications written in autoit? sentiment is, autoit scripts < 500 lines , wasn't selection big project.
it's shame, autoit doesn't have useful ide.
autoit developers want create sure functions written in autoit part of core library (in short: udfs) subject code style. can find standard here: http://www.autoitscript.com/autoit3/udfs/udf_standards.htm many programmers in community write autoit code in standard.
on subject of ide. scite time-tested code editor, ide performs adequate. there 2 other ides developed , maintained community:
a graphical debugger (f10 step next functionality) http://www.autoitscript.com/forum/topic/21834-graphical-autoit-debugger/
isn autoit studio http://www.autoitscript.com/forum/topic/136766-isn-autoit-studio/
the lastly 1 new, looks extremely promising , may work improve project.
finally, have note of warning. "oop principles hard apply", oo programmer should have strong core thought of how write non-oo code before learned oop. oo languages imperative @ core, should first-class imperative coder already. autoit imperative well.
a useful ide not solve problems! create them slightly easier manage.
i don't know heard autoit performs scripts under 500 lines, every time #include 1 of default libraries adding ~10000 lines of code. if can write proper code, build own libraries without adding complexity rest of code.
testing coding-style autoit
Comments
Post a Comment