我无法通过 JScript 更新 TestComplete 中的 .xlsx 工作表,因为我收到以下错误“没有为一个或多个必需参数提供值”。
connStr = Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\TestComplete 9 Projects\AWS-R Project Suite\TestData\TS_003.xlsx;Extended Properties="Excel 12.0;ReadOnly=False;HDR=Yes;"
sSQLQuery = UPDATE [TC_PlaceVectorOrder_001$] SET [Result] = Pass where [No] = 1;
objConn = Sys.OleObject("ADODB.Connection");
objConn.Open(connStr);
recset = objConn.Execute(sSQLQuery); ///this line throws the exception
objConn.Close();