CiaronJohn Posted January 10, 2020 Share Posted January 10, 2020 (edited) Hi All, I have this autoIT script. Which will be build in jenkins. If i just run it manually, it works, but in jenkins, the control send is not working. expandcollapse popupFunc _JMI_jnknsInitLog($sSpiderTitle) Local $sSpider_F5_Class = $g_iJM_Spider_F5_Class, _ ; Class value depending in the AutoIt v3 Window info $sSpider_File_Class = $g_iJM_Spider_File_Class, _ ; Class value depending in the AutoIt v3 Window info $sSpider_Software_Path_Class = $g_iJM_Spider_Software_Path_Class, _ ; Class value depending in the AutoIt v3 Window info $sSpider_Run_Class = "テスト実行中", _ ; Class value depending in the AutoIt v3 Window info $sSpider_Path = "", _ ; Setting initial value to null $sSpider_Software_Path = "", _ ; Setting initial value to null $sSSpider_Local = "", _ ; Setting initial value to null $sSpider_Log_TxtFile = "", _ ; Setting initial value to null $sUnitTest_Log_TxtFile = "" Local $iReturnF5 $iReturnF5 = 0 $sSpider_Software_Path = ControlGetText($sSpiderTitle,"",$sSpider_Software_Path_Class) $sSpider_Path = StringTrimRight($sSpider_Software_Path,21) $sUnitTest_Log_TxtFile = $sSpider_Path & "\UnitTest\log.txt" $sSpider_Log_TxtFile = @ScriptDir & '\Log.txt' ; Copy the test Design File ClipPut($g_sJMI_TestDesign_File) WinActivate($sSpiderTitle) Sleep(200) ; Send Keys ControlSend($sSpiderTitle, "", $sSpider_File_Class, "!aft") ;~ Send("{ALT}") ;~ Send("{F}") ;~ Send("{T}") ; Wait for 1 second WinWait("","",1) ; Pastes the copied test design file path ControlSend($sSpiderTitle, "", $sSpider_File_Class, "^v", 1) ControlSend($sSpiderTitle, "", $sSpider_File_Class, "{ENTER}", 0) ;~ Send("^v") ;~ Send("{ENTER}") WinWait("","",5) ; Save the configuration of the DSpider ControlSend($sSpiderTitle, "", $sSpider_File_Class, "^s", 0) ;~ Send("^s") WinWait("","",5) Sleep(2000) _JEH_jnknsCreateLogFile("0", "Starting", $sSpider_Log_TxtFile) EndFunc ;==>_JMI_jnknsInitLog This is how i run it in jenkins Thanks, Edited January 10, 2020 by CiaronJohn Link to comment Share on other sites More sharing options...
CiaronJohn Posted January 10, 2020 Author Share Posted January 10, 2020 SOLVED no need to reply thanks Link to comment Share on other sites More sharing options...
jackth2929 Posted December 8, 2020 Share Posted December 8, 2020 (edited) Hi,CiaronJohn I use selenium Python to do automated UI testing. There is a test case for uploading attachments, and autoit is needed. Currently in the local machine can run, but in order to do the CI process, autoit exe cannot be run in Jenkins. so,l want to ask how do you solve this problem ? could you share the ways you solved run autoIT exe in Jenkins. Many thanks. Jack Spoiler Spoiler Edited December 21, 2020 by jackth2929 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