--- title: "MLアサーションの「対象のテキストが○○であることを確認する」ステップで実行時のテキストの値が異なっても成功することがあるのはなぜですか?" slug: "ml-assert-element-text-should-be" updated: 2023-04-12T04:04:20Z published: 2023-04-12T04:04:20Z canonical: "help.autify.com/ml-assert-element-text-should-be" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # MLアサーションの「対象のテキストが○○であることを確認する」ステップで実行時のテキストの値が異なっても成功することがあるのはなぜですか? MLアサーションの **「対象のテキストが○○であることを確認する」** 検証で、下記の例のように、期待値とテスト結果のテキストの差分がわずかな場合、Autifyがテキストの違いを判断することが出来ずテストが成功する場合があります。 - 期待値のテキスト:`hogehoge 123456` - テスト結果のテキスト:`hogehoge 123457` 対象のテキストが短い場合や、期待値とテスト結果のテキストの違いが大きい場合は正しく違いを判断し、テストが失敗します。 - **対象のテキストが短い** - 期待値のテキスト:`hogehoge 1` - テスト結果のテキスト:`hogehoge 2` - **期待値とテスト結果のテキストの違いが大きい** - 期待値のテキスト:`hogehoge 12345` - テスト結果のテキスト:`hogehoge 67890` 期待値とテスト結果のテキストの違いがわずかで、MLアサーションのテストが成功となってしまう場合は、MLアサーションではなく、アサーションをご利用ください。 ![image](https://cdn.document360.io/a099d8a2-cfd2-42ca-9906-68b4a337f4a5/Images/Documentation/Screenshot%202023-03-20%20at%2012.56.33.png?sv=2026-02-06&spr=https&st=2026-11-27T19%3A41%3A54Z&se=2026-11-27T20%3A41%3A54Z&sr=b&sp=r&sig=uoklHWsNMRx9MP6aIyTOuTKs5vU3x65u53AlGgs9mBc%3D) ## 関連記事 - [Machine Learning(ML) アサーション](/mobile/docs/ja/ml-assertion)