Ask a Question

How to pass IPv6 address in Browsers.Item().Run()?

firdosh
New Contributor

How to pass IPv6 address in Browsers.Item().Run()?

Hi,

I am trying to pass a IPv6 address as "https://[<IPv6_addr>]:<port_num>" to Browsers.Item().Run(). Getting an error as "The parameter in incorrect". What is the correct way to pass an IPv6 address.

 

Regards,

6 REPLIES 6
shankar_r
Community Hero

Hi,

 

You missed to mention on which browser it should run.

 

 Ex: Browsers.Item(btIExplorer).Run("https://[<IPv6_addr>]:<port_num>")

 

ref: https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/web/general/browsers...


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

Here, I just the mentioned the routine which I am using. And of course, I have mentioned the browser type in my script 🙂

 

var natIP = "x:x:x:x:x:x:x:x";

natIP = "[" + natIP + "]"; // IPv6 address needs to be enclosed within []

var loginURLStr = "https://" + natIP + ":5480";
Browsers.Item(btIExplorer).Run(loginURLStr);

The above snippet works fine for an IPv4 address, but throws error message for an IPv6 address.

 

Regards,

Mohammed Firdosh Nasim.

Hi,

 

This is just a guess, Can you try chr function instead of using [].

 

Ex:

natIP = chr(91) + natIP + chr(93); // IPv6 address needs to be enclosed within []

 

i'm not having web module to check this

 


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

Tried as suggested, but still seeing the same error. Basically when it encounters a colon (:) in IPv6 address format, it throws the error. Tried to replace : with chr(58), but no luck.

Hi,

 

Did u get solution for this error. Use IPv6 in testcomplete is very minimal itseems. Hope u have got resolved it. If so, share ur solution. It will be help others including myself 🙂 .

TanyaYatskovska
SmartBear Alumni (Retired)

Hi @vijayababuj,

 

I've just checked this on my computer - I get the "The parameter is incorrect" error also. Actually, I'm not sure if TestComplete supports this. I suggest that you resend this question to our Support Team so that they could investigate it. You can reach out to them here: https://support.smartbear.com/message/?prod=TestComplete

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: