Open Side Menu
Skip to contentBrand Logo
Products
Resources
Join Us
RegisterSign In
  1. SmartBear Community
  2. TestComplete
  3. TestComplete Questions

Forum Discussion

EkremMese1's avatar
EkremMese1
Contributor
1 year ago

Is there a way to fail the test by matching 2 strings?

Hi everyone,  I want to compare 2 strings and if they are not matching I want my test to fail? Is there a method to that with TestComplete & Javascript ? 
rraghvani's avatar
rraghvani
Icon for Champion Level 3 rankChampion Level 3
1 year ago

See https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/compare.html

 

Recent Discussions

  • TestComplete cannot create sessions from Jenkins

    3 days ago
    Michael_B
  • TestComplete Support Plugin Compatibility Issue

    3 days ago
    Srikanth9864
  • ModuleNotFoundError. Python Runtime error only on other machine but not mine

    12 days ago
    BD_Geoactive
Related Content
  • Autocomplete API :-Check a string parameter in the request matches the string value in the response?

    8 years ago
    bmcim123
  • How to get the matched string

    11 years ago
    mustak_m
  • How to generate a random Number, String, AlphaNumeric string

    4 years ago
    HimanshuTayal
© 2025 SmartBear Software. All Rights Reserved.
  • Privacy
  • |
  • Terms of Use
  • |
  • Site Map
  • |
  • Website Terms of Use
  • |
  • Security
  • |
  • Community Terms of Service