Exporting variable to CVS file to use in a later test
Hi All. I am generating a variable in Test1, that I would like to write/output to a CSV file (or even Excel would work) for use in Test2. Does anyone know of an easy way to do this? Or can provide some information on where to look on how to write to specific fields in a CSV/Excel file? Thanks.Solved1.2KViews0likes3CommentsData source error using gitlab
Hello, While writing my tests, I import from csv.file data that are used in request (body) but when launched through GitLab, in allure reports my tests failed with : Error:java.io.FileNotFoundException: /projectDir/file.csv (No such file or directory) ----------------- Messages ------------------------------ Could you help me find the right way to write the path? The csv files are in /projectDir/TestSuite/file.csv I tried with ${projectDir}/TestSuiteName ${workspaceDir}/TestSuiteName /branch/projectName/TestSuiteNameSolved1.3KViews0likes4CommentsI am using a CSV for a Data-Driven loop but it's not working with a numeric option list
I'm testing a web application and I've created a csv for my Data-Driven loop. It was working great until I tried to populate a numeric option list (a list of about 60 four digit branch numbers). Instead of using the value from the csv to set the option list text, it is attempting to set the option list index. As a result it throws an index out of bounds error. For example: if the branch number in the csv is 1500, rather than selecting 1500 from the option list values, it tries to set the index to 1500. This happens in both IE and Chrome. I haven't tested Firefox yet, but I suspect it will do the same thing. If I use a variable, parameter or a constant rather than using the csv, it selects the numeric value. It only fails when loading data from a csv. Any ideas how to get around this? Thanks, JudySolved2.9KViews0likes8CommentsDDT.CurrentDriver' is null or not an object
i keep getting this error on my testing using javascript. I have looked all materials within smart bear...not sure what else to do. This is what i have so far. function DriveMyTest() { var mycsv; mycsv = DDT.CSVDriver("C:\\TestComplete\Book1.csv"); mycsv.DriveMethod("ScriptTest.Test1"); } function Test1() { textbox = panel.textboxClaimLabOrderId; textbox.Click(72, 1); textbox.SetText(DDT.CurrentDriver.Value("textboxClaimLabOrderId")); }Solved1.6KViews0likes5CommentsWhy did my steps not separate into their own "step" after importing a CSV file?
I imported a CSV file from Excel. In the Excel spreadsheet, (before converting to CSV), all my steps were in one cell with a carriage return after each step so that each step would display on its own line inside the cell. During import, I chose Step_Steps so that each step would be its own "step" But that didn't happen. All 5 steps were listed as 1 step after import. What did I do wrong?Solved2.3KViews0likes1CommentWhy Dots are replaced by '#' when getting column names from csv file
Does anybody know, why "." is replaced by "#" when getting column names from CSV file? I have WPF grid which is empty by default and it is possible to add columns with names as specified in Schema.ini: [Myfile.csv] Format=CSVDelimited ColNameHeader=True MaxScanRows=0 Col1=ProductText Col2="Price Abs. Change"Double And I have the following function to add these columns which is working OK: function PopulateColumnsFromFile(FileName) { var CSV = DDT.CSVDriver(Project.Path + "\\Data Files\\" + FileName + ".csv"); var i = 0; for (i = 0; i < CSV.ColumnCount; i++) { AddColumn(); ChooseColumn(CSV.ColumnName(i).replace("#", ".")); } DDT.CloseDriver(CSV.Name); } So initiallyCSV.ColumnName(i) brings me "Price Abs# Change" instead of "Price Abs. Change". The question is why "." sign is seen like "#" sign, and I have to use '.replace("#", ".")' to get correct value of column name? Any links to the answer would be appreciated.Solved1.5KViews0likes3Comments