Forum Discussion

itaykaldi's avatar
itaykaldi
Contributor
13 years ago

Log Message in Keyword Test

Hey,

How can i write to Log Message variable (in keyword test)?



10x.







  • lordsivan's avatar
    lordsivan
    Occasional Contributor
    How to use Variable in Log Message in keyword test in Test complete?

    1. Drag and drop Log message

    2. Fill the message content.

    3. Press next.

    4. Now In message Text [..] Click that and you can enter the Variable.



    A Video showing how to do this is posted in




    http://www.appcrowdtest.com/?page_id=56

  • Hi!


     


    You can edit the Operation Parameters of Log Message operation and in MessageText parameter, click in ..., select Mode = Variable and indicate the desired variable.

  • but if i wan't to add extra text i can't,

    like:

    log.message("my text" + virable);



  • If you want to put text with the variable, you can post the MessageText as a code expression like this:



    "Message " + KeywordTests.testeLog.Variables.test