sfresher Posted September 23, 2008 Share Posted September 23, 2008 I was trying to create a test application to auto GUI test, and I want to import all the test variables from a data file (txt, csv, or xls). e.g. I want to test the "add" function of Windows Calculator. Instead of hardcode my script to test 1+5=6, 9+62=71, I can simple import data from a file, contains 1, 5,6, 9, 62, 71. By doing this, I can easily modify my test data in the feature. Should I use any UDF to implement this? Link to comment Share on other sites More sharing options...
Szhlopp Posted September 23, 2008 Share Posted September 23, 2008 I was trying to create a test application to auto GUI test, and I want to import all the test variables from a data file (txt, csv, or xls). e.g. I want to test the "add" function of Windows Calculator. Instead of hardcode my script to test 1+5=6, 9+62=71, I can simple import data from a file, contains 1, 5,6, 9, 62, 71. By doing this, I can easily modify my test data in the feature. Should I use any UDF to implement this? Yeah use a UDF. Use the forum search for finding a UDF to read csv/xls correctly. StringSplit would also help you ALOT... [File.txt] 1,5,2,9,124,7,11,6,7 FileRead StringSplit From help file on StringSplit: the first element ($array[0]) contains the number of strings returned RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
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