cancel
Showing results for 
Search instead for 
Did you mean: 

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

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,

Tags (1)
6 REPLIES 6
Community Hero

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

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

New Contributor

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

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

 

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.

Community Hero

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

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

New Contributor

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

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

Senior Member

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

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 Smiley Happy .

Community Manager

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

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 Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Top Kudoed Authors