Contributions
Re: Everytime I send an e-mail I have a smart card windows prompt
I don't have the prompt anymore : I had to delete My personal certificates. Usecertmgr.msc in cmd prompt Go to Personal/Certificates And delete those which makes trouble Hope it will help someone one day Sylvain2.3KViews0likes0CommentsEverytime I send an e-mail I have a smart card windows prompt
Hi I recently needed to install a smart card reader for another project. And now, everytime, I use the sendmail function, I get a windows security prompt saying "connect a smart card". The only way to use the function to send email now is to have the smart card reader connected, which is very inconvenient. I use CDO to send mail. The prompt appears when mMessage.Send() is being processed inthis function : function SendEmail(mFrom, mTo, mSubject, mBody, mAttach) { var schema, mConfig, mMessage; schema = "http://schemas.microsoft.com/cdo/configuration/"; mConfig = getActiveXObject("CDO.Configuration"); mConfig.Fields.$set("Item", schema + "sendusing", 2); // cdoSendUsingPort mConfig.Fields.$set("Item", schema + "smtpserver", "smtp.office365.com"); mConfig.Fields.$set("Item", schema + "smtpserverport", 25); mConfig.Fields.$set("Item", schema + "smtpauthenticate", 1); // Authentication mechanism mConfig.Fields.$set("Item", schema + "sendusername", "my_email_adress.com"); mConfig.Fields.$set("Item", schema + "sendpassword", "***"); mConfig.Fields.$set("Item", schema + "smtpusessl", true); mConfig.Fields.Update(); mMessage = getActiveXObject("CDO.Message"); mMessage.Configuration = mConfig; mMessage.From = mFrom; mMessage.To = mTo; mMessage.Subject = mSubject; mMessage.HTMLBody = mBody; //mMessage.HTMLBody.Charset = "utf-8"; if (mAttach != undefined) { mMessage.AddAttachment(mAttach); } else { mAttach = ""; } mMessage.Send(); Log.Message("Message to <" + mTo + "> was successfully sent"); return true; } Do you have any idea to solve this problem?Solved2.3KViews0likes2CommentsRe: How to get a string value from context.expand path with variables
Thank you for your answer, but it doesn't work. if I replace //ns1:GetHoldingsResponse[1]/ns1:GetHoldingsResult[@.a:AccountTypeTextId=="LongTermLiquidity"]/a:AccountDto[1]/a:AccountTypeTextId[1] by //ns1:GetHoldingsResult/a:AccountDto[@.a:AccountTypeTextId=="LongTermLiquidity"]/a:AccountTypeTextId , I still receive an empty string //ns1:GetHoldingsResult/a:AccountDto[1]/a:AccountTypeTextId doesn't work too the only one that works is//ns1:GetHoldingsResponse[1]/ns1:GetHoldingsResult[1]/a:AccountDto[1]/a:AccountTypeTextId[1]6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1CommentHow to get a string value from context.expand path with variables
Hi I discover Groovy and the context.expand() way to find elements. I want to get the value a:AccountTypeTextId=="LongTermLiquidity" as shown in this copyscreen below If I execute this command , it works : LongTermLiquidity = new String (context.expand( '${GetHoldings#Response#declare namespace ns1=\'http://xxx.com/Schemas/yyy/Operations\'; declare namespace a=\'http://xxx.com/Schemas/yyy/Data/Advice\'; //ns1:GetHoldingsResponse[1]/ns1:GetHoldingsResult[1]/a:AccountDto[1]/a:AccountTypeTextId[1] }' )) But if I execute this line, it doesn't work : LongTermLiquidity = new String (context.expand( '${GetHoldings#Response#declare namespace ns1=\'http://xxx.com/Schemas/yyy/Operations\'; declare namespace a=\'http://xxx.com/Schemas/yyy/Data/Advice\'; //ns1:GetHoldingsResponse[1]/ns1:GetHoldingsResult[@.a:AccountTypeTextId=="LongTermLiquidity"]/a:AccountDto[1]/a:AccountTypeTextId[1] }' )) Can someone explain me how to deal withns1:GetHoldingsResult[@.a:AccountTypeTextId=="LongTermLiquidity"] in order to get a valid result? Thank you Sylvain6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes3CommentsRe: Trouble to use aqString.Find in a if condition
Thank you!It helped me a lot! AndI had to correct this way to solve everything : if (aqString.Find(bLine, "data") != -1) { bLine = aqString.Replace(bLine,"data", "data" + count) } if (aqString.Find(bLine, "idChart") != -1) { bLine = aqString.Replace(bLine,"idChart", "idChart" + count) } if (aqString.Find(bLine, "chart") != -1) { bLine = aqString.Replace(bLine,"chart", "chart" + count) }1.9KViews0likes0CommentsTrouble to use aqString.Find in a if condition
Hello I have a text file, I want to copy it to a new file. I want to modify it by using aqString.Replace with some substrings found by aqString.Find. ButaqString.Find seems to findnothing. At the end, I have the exact copy of my file. Do you have any advice? count = 1; while (foundFiles.HasNext()) { aqFile.Create(fHTMLFile); aFile=foundFiles.Next(); bFile = aqFile.OpenTextFile(aFile.Path, aqFile.faReadWrite, aqFile.ctUTF8); bFile.Cursor = 0; while(! bFile.IsEndOfFile()){ bLine = bFile.ReadLine(); if (aqString.Find(bLine, "data")) { aqString.Replace(bLine,"data", "data" + count) } if (aqString.Find(bLine, "idChart")) { aqString.Replace(bLine,"idChart", "idChart" + count) } if (aqString.Find(bLine, "chart")) { aqString.Replace(bLine,"chart", "chart" + count) } aqFile.WriteToTextFile(fHTMLFile, bLine, aqFile.ctUTF8); } bFile.Close(); count = count+1 ; } Thank you !Solved2KViews0likes2CommentsMy CheckProperty with cmpEqual always return an error when it checks 2 identical texts
Hi My aqObject.CheckProperty always fails. However, the text is strictly the same. I tried with cmpEqual : aqObject.CheckProperty(Aliases.browser.page1000508080FinvestQa31Startse.panelLeftcontainer.panelRiskClassGauge.panelGauge.panelContainer.panelHighcharts0, "contentText", cmpEqual, "Created with Highcharts 4.1.4↴IR7↴Classe de↴risque 2↴Classe de risque 2↴Classe de↴risque 3↴Classe de risque 3↴Classe de↴risque 4↴Classe de risque 4"); and withcmpMatches : aqObject.CheckProperty(Aliases.browser.page1000508080FinvestQa31Startse.panelLeftcontainer.panelRiskClassGauge.panelGauge.panelContainer.panelHighcharts0, "contentText", cmpMatches, "Created with Highcharts 4.1.4↴IR7↴Classe de↴risque 2↴Classe de risque 2↴Classe de↴risque 3↴Classe de risque 3↴Classe de↴risque 4↴Classe de risque 4"); I tried to add aqEnvironment.LanguageForNonUnicodePrograms = "French"; at the beginning of my function, but it doesn't help. Do you have any idea? SylvainSolved2.2KViews0likes5CommentsHow to get the pixel tolerance value?
Hello, I compare 2 files. My goal is to set a warning message if the pixel tolerance is below a certain value. An error message if it is up to this value. How can I get the exact pixelTolerance value? Here is my code. I want to update it and put an If condition before the Log.Warning line if (!pic_1.Compare(pic_2, false, 5, false, 5, 0)) { // Images are differents // Post image differences to the log imgError = pic_1.Difference(pic_2, false, 5, false, 5, 0); Log.Picture(imgMaskError); //png file with errors imgError.SaveToFile(sDirectoryPath + sReportName + "_error_p" + aqConvert.IntToStr(i+1) + ".png"); // Post a warning message Log.Warning("Pages " + aqConvert.IntToStr(i+1) + " are differents."); aqFile.WriteToTextFile(sDirectoryPath + "log.log", "Page " + aqConvert.IntToStr(i+1) + " KO : " + sReportName + "_error_p" + aqConvert.IntToStr(i+1) + ".png created.\r\n", aqFile.ctANSI, false); } else { // Pages are equals Log.Message("Pages " + aqConvert.IntToStr(i+1) + " are equals.") aqFile.WriteToTextFile(sDirectoryPath + "log.log", "Page " + aqConvert.IntToStr(i+1) + " OK.\r\n", aqFile.ctANSI, false); }Solved1.4KViews0likes1Comment