0
文字列にアポストロフィがあり、条件付きの場合は「キーワードを実行する」必要がある場合は、異常な状況に陥りました。以下は私のコードです:特殊文字を使用した文字列の条件設定
*** Variables ***
${myVar} = Joe's test
*** Test Cases ***
Testing a true IF statement
Run Keyword If '${myVar}' == 'Joe's test' Keyword 1
*** Keywords ***
Keyword 1
Log to Console VALUE: ${myVar}
私は次のエラーを取得する:私は、文字列にアポストロフィが、まだ運を処理するために「\のようなスイッチを使用してみました
Evaluating expression 'Joe's test == 'Joe's test'' failed: SyntaxError: invalid syntax (<string>, line 1).
。どんな助けにも感謝!