-
Notifications
You must be signed in to change notification settings - Fork 22
Update wd_demo.au3 - __WD_ConsoleWrite() usage - suplement for - output in @compiled mode #540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
See my commment here. Also relevant for this proposal. |
|
|
|
@mlipok, I have to agree with @Danp2. On a second look I do not understand what do you exactly mean by
... which "selected log output"? I am a bit confused to be honest. I reviewed the function: Func __WD_ConsoleWrite($sMsg, $iDebugLevel = Default, $iError = @error, $iExtended = @extended)
If $iDebugLevel = Default Or $_WD_DEBUG >= $iDebugLevel Then
If IsFunc($_WD_CONSOLE) Then
Call($_WD_CONSOLE, $sMsg & $_WD_CONSOLE_Suffix)
ElseIf $_WD_CONSOLE = Null Then
; do nothing
Else
FileWrite($_WD_CONSOLE, $sMsg & $_WD_CONSOLE_Suffix)
EndIf
EndIf
Return SetError($iError, $iExtended)
EndFunc ;==>__WD_ConsoleWriteAre you referring to the Best regards to both of you, |
|
@sven-seyfert I understand what @mlipok wants. However, I don't agree with this change for the reason mentioned above. There are probably a couple of different ways this could be handled, but I'm not sure that it is worth the effort. |
This code is related to the output: Lines 112 to 118 in 1834e95
You can select output for logs. When you test PC machine if all is fine with WebDriver and with this UDF, for the first test, you choose the simplest possible solution, which should work always and everywhere. Therefore, when you use WD_DEMO to test how AutoIt works in this UDF, regardless of whether you test it in the uncompiled or compiled version, you should receive the same messages in the output. This is my approach after my recent experiences with startup problems (as ADMIN and in an environment with some Antiviruses). The proposed changes do not alter the way WebDriver is used per se. They are intended solely to standardize the display of diagnostic messages in both COMPILED and UNCOMPILATED modes. |
|
Understood, thank you @mlipok. |
I think there are some that would disagree with this statement. 😆
The output is already consistent IMO. It just doesn't perform the way that you would prefer. 😉
I still stand by this. Have you considered any other alternatives to achieve the desired outcome? |
Pull request
Proposed changes
Recently I proposed the already merged : #534
Here I propose to continue this topic.
p.s.
As a next step (PR), I'd like to propose using Au3Stripper to handle line numbers in compile mode.
Checklist
Types of changes
Please check
xthe type of change your PR introduces:What is the current behavior?
In compiled mode not all testing informotion are outputed to the selected log output.
What is the new behavior?
In compiled mode all testing informotion are outputed to the selected log output.
Influences and relationship to other functionality
None
Additional context
#534
System under test
not releated