ur Posted August 13, 2019 Posted August 13, 2019 Any standards or guidelines you can suggest for ui testing of a product. I have wrote some code with autoit for basic testing.But I want to make it streamlined and more modularized so that we can add more test cases in future and needed we can change it in a simple manner. Any suggestions..
junkew Posted August 13, 2019 Posted August 13, 2019 (edited) see frequently asked question 31 and 40 https://www.autoitscript.com/wiki/FAQ as a start The standards used frequently in Functional (black box) testing are keyworddriven datadriven Gherkin (as used in CUCUMBER/SpecFlow) a variation on keyword and datadriven implementation I did implement in UIAAutomation wrappers a partial framework where I put object identification strings outside your coding by using a cfg file (other tools call this a repository) Many people follow Selenium and WebDriver solutions and there are some implementation frameworks aroudn. Complexity of your framework and modularization will mainly depend on number of GUI screens to automate number of expected testcases number of testenvironments and if testdata is same in all environment or differs technical knowledge or your team. The less programming knowledge the more you want to provide your team with excelsheets where they can put their testdata GUI types of application you have to control. It gets more complex if you deal with HTML, Windows and Java (and worse good old mainframe green screens) to do it all in 1 tool/language .... I have seen many team started with automation and when they succeed they do more or less this First generation framework: Just (hard) coding a script 2nd generation framework: more modularized, 1 module per screen to deal with, some config files 3th generation framework more keyword driven. Tester wrties script in excel. Develop builds tool to process the xls to direct the application GUI 4th generation framework combinations of keyword/datadriven and more flexibility in maintenance .. teams reaching this have similarities with 4th but then you see it really tailored to the skills of the teammembers (including junior people can do it easily) At each level I have teams seen stopping automation as they only focused on the tools and automation instead of the full process reaching quality software. Edited August 13, 2019 by junkew FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
ur Posted October 5, 2020 Author Posted October 5, 2020 Hi @junkew We need to automate a single GUI application, mostly few functionalities. So, I just followed the first approach "keyword driven" and completed the automation. Later, there are many issued and keep on adding the if else blocks. Now, the UI is also changed and new elements added too with new features for the application and need to change all of them. Based on increase in complexity, I guess now I need to change the code to more flexible one like "data driven/Gherkin". Kindly suggest with the relevant resources for it.
junkew Posted October 5, 2020 Posted October 5, 2020 Some tips Align with the developers of the gui on having objects easy recognizable There are not so many public frameworks around. Selenium groups tell some nice tips but also not a complete framework. How many flows you want to automate and calculate your return on investment. Share your coding in the forum you will most likely get feedback from others. The more advanced frameworks are probably only worth the effort and time for enterprises reusing it for multiple projects. What you shortly described looks a script driven framework and it seems you are going to 2nd approach more modular script. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now