Recognition of different SQL Management versions : General Questions

Recognition of different SQL Management versions

Ask general questions here.

Recognition of different SQL Management versions

Postby leon » Tue Aug 16, 2011 9:58 am

I am struggling to have 1 set script running for identifying, recognising or selecting items in the tree in the different versions of SQL Management Studio.

Eg:
The Object Explorer of SQL Server2008R2 is mapped as : container[@caption='Object Explorer']/container[@caption='']/tree/tree/treeitem/treeitem[@accessiblename='Security'] level and

SQL Server 2008 is mapped as: container[@caption='Object Explorer']/container[@caption='']/container/tree/tree/treeitem/treeitem[@accessiblename='Security'] and extra level = container. The 2 versions are thus not mapped the same.

How do I get around this without so many "continue fail" actions because when I have to validate if a certain Login user has been created the one fails and the one passes due to this problem which results in my script showing a Fail
leon
 
Posts: 12
Joined: Fri Jul 22, 2011 9:12 am

Re: Recognition of different SQL Management versions

Postby sdaly » Tue Aug 16, 2011 11:26 am

Use a double forward slash in your path //
User avatar
sdaly
 
Posts: 213
Joined: Mon May 10, 2010 12:04 pm
Location: Dundee, Scotland

Re: Recognition of different SQL Management versions

Postby Support Team » Tue Aug 16, 2011 11:29 am

Hi,
leon wrote:How do I get around this without so many "continue fail" actions because when I have to validate if a certain Login user has been created the one fails and the one passes due to this problem which results in my script showing a Fail

As scott suggested you can use a relative RxPath. I would suggest you to read following blog
http://www.ranorex.com/blog/ranorexpath-tips-and-tricks
In this blog will be explained what's possible with the RxPath.

In Ranorex 3.1 there will be a setting to change the Report Level for the "Continue on Fail" action. Then you can set the Report Level to Success even the Test Case failed.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Recognition of different SQL Management versions

Postby leon » Tue Aug 16, 2011 12:03 pm

Aah thx Scott, you're a star. Seems to be working now.
leon
 
Posts: 12
Joined: Fri Jul 22, 2011 9:12 am


Return to General Questions

Who is online

Users browsing this forum: No registered users and 0 guests