Contributions
Re: Variables Not Passed From Batch File
Oh, my goodness. /facepalm Yes. It does help if I actually point to the right directory. Once that was fixed I was able to solve the OpenTextFile error I was trying to get to. I needed to have ctANSI as the third parameter. I think I am working! Thank you so much.836Views0likes0CommentsRe: Variables Not Passed From Batch File
Finally. I got a chance to look at this again. What I am showing in this screen shot is that I have a variable called fileListPath I am hard coding the path, and the following if block is able to find the file and verify that it exists. in the Watch List, I show the values of the suite variable, as well as the fileListPath variable. It works and finds the file. In this attempt I concatenate the suite variable to fileslist.txt It doesn't find the file and fails, although the Watch List shows what appears to be the same values I am assuming that I need to do something to the variable when I am concatenation. Is this enough for an expert to see why it is failing? // Batch File command TestComplete.exe "C:\dev\TestComplete\PDFCompare_DiffPdf\PDFCompare_DiffPdf.pjs" /r /p:PDFCompare_DiffPdf /psv:p_FilesStoreDirectory="I:\QC\3E Optimize\707\" /psv:p_FilesNewDirectory="I:\QC\3E Optimize\2021\mss\"848Views0likes0CommentsRe: Variables Not Passed From Batch File
Hey! Thanks for being on top of this. I apologize for not answering sooner. It's crazy here and I get pulled in a lot of different directions so I usually don't get the time I'd like on any given topic. Pretty sure that's the same for a lot of us. I did confirm my variable names matched in response to the second question. I copied and pasted them to be certain. How I got around it was to take the variables out of the .bat file and simply modified the .mds file to set the values of the parameters prior to launching TE. That worked perfectly for the testers. That being said I have the email flagged and when I can get back to this I will try passing simplified values (for the first question) instead of paths and see if maybe the value is causing a problem. Best Regards, Joe [Logo, icon Description automatically generated with medium confidence]<> Joseph Rogers Senior QA Analyst P +1.330.236.4863 E joseph.rogers@3eco.com LinkedIn<> | Twitter <> | YouTube<> ________________________________ This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error.942Views1like0CommentsVariables Not Passed From Batch File
CD "C:\Program Files (x86)\SmartBear\TestExecute 15\x64\Bin" TestExecute.exe "C:\dev\TestComplete\PDFCompare_DiffPdf\PDFCompare_DiffPdf.pjs" /r /p:PDFCompare_DiffPdf /pv:p_FilesStoreDirectory="I:\QC\3E Generate\2201\220101_21Q4\Archived MSS PDFs\" /pv:p_FilesNewDrectory="I:\QC\3E Generate\7.07\Optimize 2021Q3\Archived MSS PDFs\" I have a user with a TestExecute license that is attempting to launch a project using the above .bat file. Looking in the log, the paths don't get assigned to the variables. I thought maybe I had the wrong syntax for variables. Would someone be so kind as to look at that and tell me if it's correct or not?Solved973Views0likes7CommentsRe: Files.Remove in Javascript
Sorry it took me so long to respond. When I got the Store Files Count from outside the for loop (decrementing the total file count until no files existed) it would get 'about' half through the files and fail with an index out of bounds error. Meaning if I had 330 Stored Files then it would get to 165 give or take a few and fail. If I got the file count from within the for loop, then I was able to remove each store file index = to the Count. This hasn't given me an error yet. I never did figure out why I was having index out of bounds errors, but the solution I came up with works reliably, even though it's not the way I'd write code normally. Thanks!740Views0likes0CommentsFiles.Remove in Javascript
Hello All, First time here. I am studying the Udemy course currently. Very excited to learn as much as I can about Test Complete. I have a question about Files.Remove. The screenshot below provides most of the question. I have to be doing something elementary incorrect, but I am not seeing it. Files.NameByFileName does not return the file, but the path is correct. It exists in the specified location, and it does exist in the store too. I am simply trying to remove the file from the Stores, then I was going to add a different version of the same file. Does my mistake jump out at anyone? Thank you so much, BouzoukiSolved800Views0likes3Comments