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 8438719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:47:34+00:00 2026-06-10T07:47:34+00:00

When I try this test case: $sel->is_text_present_ok(foo, ($testname: line , __LINE__)); I want to

  • 0

When I try this test case:

$sel->is_text_present_ok("foo", ("$testname: line ", __LINE__));

I want to get this in the log:

ok 1 - is_text_present, "foo", Testcase-881: line 54

But I get chided on the command line:

You named your test ’54’. You shouldn’t use numbers for your test
names. Very confusing.

I figure I should be interpolating that literal into the string somehow, but I can’t get to the bottom of it. I’ve tried all sorts of configurations with the comma and quotation marks.

Is there any way to get the result I’m looking for?

  • 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-10T07:47:36+00:00Added an answer on June 10, 2026 at 7:47 am

    Simply use the concatenation operator . :

    $sel->is_text_present_ok("foo", "$testname: line " . __LINE__);

    Just FYI, you can interpolate it like this: "$testname: line ${\(__LINE__)}"

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

Sidebar

Related Questions

i got this error when i try to run this test case: WHICH IS
this error arises when i try to run the following test case which is
I want to make this 1332251639632 to this 1332251639 I try this code, but
This code, a test case for a custom component using JSF2 Just for the
I've got this test case here that compiles with g++ theFile.cc -lboost_thread. When running
I am running this test case using NUNIT and attaching the NUNIT to the
I try to set up a Junit test case for my dao layer. However,
I want to write a test case for a case class , that has
When I try this code: a, b, c = (1, 2, 3) def test():
I've managed to reduce this to a simple test case. An exception is thrown

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.