Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8711531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:54:02+00:00 2026-06-13T04:54:02+00:00

In robot framework I am loading a library as keywords. Those keywords are methods

  • 0

In robot framework I am loading a library as keywords.

Those keywords are methods in the library.

I know that I can send information directly to the Robot Framework Log file with a simple print statement.

But when my method creates a file, in the same directory as the Log file, how can I create a link to it in the log file?

Example:

Robot Framework file:

| *Setting* |
| Library | Testtools
| *Test Case* |
|                   | LogMe

Library file: TestTools.py

def LogMe(self):
    file = open('testfile.txt', 'w+')
    file.write("Line of text")
    file.close()
    print "The test file is found at http://testfile.txt"   #This line is where I need help

I need to know how to put a link to my freshly created file in the log that robot framework will create.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:54:03+00:00Added an answer on June 13, 2026 at 4:54 am

    Turns out to be very simple. Just by adding HTML to the printed string, robot framework will treat it as preformatted text.

    All I need to do is change the last line of my code to this:

    print "*HTML* The test file is found at <a href=testfile.txt>this location</a>"
    

    And it all works.

    Yah!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody know how to use the REST Library for Robot Framework? The library
I have been using Selenium Library with Robot Framework for writing automated tests for
Suppose I'm designing a robot that can pickup various tools and use them. I
I'm using Frontier::Daemon to build a test library server for Robot Framework test automation
I have a nested list that I am using in Robot Framework. I would
Is there any open source tool/framework that is written in Java that can be
I am writing robot tests for web testing using Google's Robot Framework with SeleniumLibrary
Since Robot.createScreenCaputure() method is slow, I decided to use native library. I searched and
I have a robot that I need to write an autonomous program for. The
I'm trying to integrate Robot Framework (an acceptance testing framework) with TeamCity. In order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.